master
c 33 lines 769 Bytes
Raw
1 /*
2 * Host IOMMU device abstract
3 *
4 * Copyright (C) 2024 Intel Corporation.
5 *
6 * Authors: Zhenzhong Duan <zhenzhong.duan@intel.com>
7 *
8 * This work is licensed under the terms of the GNU GPL, version 2. See
9 * the COPYING file in the top-level directory.
10 */
11
12 #include "qemu/osdep.h"
13 #include "system/host_iommu_device.h"
14
15 OBJECT_DEFINE_ABSTRACT_TYPE(HostIOMMUDevice,
16 host_iommu_device,
17 HOST_IOMMU_DEVICE,
18 OBJECT)
19
20 static void host_iommu_device_class_init(ObjectClass *oc, const void *data)
21 {
22 }
23
24 static void host_iommu_device_init(Object *obj)
25 {
26 }
27
28 static void host_iommu_device_finalize(Object *obj)
29 {
30 HostIOMMUDevice *hiod = HOST_IOMMU_DEVICE(obj);
31
32 g_free(hiod->name);
33 }