xref: /openbmc/qemu/backends/host_iommu_device.c (revision 9dbab31d)
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 "sysemu/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, 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 }
34