blob: 8f2dda1beb9bbea27a61c17d439aeb19ec26cc90 [file] [log] [blame]
Zhenzhong Duan1f94b212024-06-05 16:30:27 +08001/*
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
15OBJECT_DEFINE_ABSTRACT_TYPE(HostIOMMUDevice,
16 host_iommu_device,
17 HOST_IOMMU_DEVICE,
18 OBJECT)
19
20static void host_iommu_device_class_init(ObjectClass *oc, void *data)
21{
22}
23
24static void host_iommu_device_init(Object *obj)
25{
26}
27
28static void host_iommu_device_finalize(Object *obj)
29{
30 HostIOMMUDevice *hiod = HOST_IOMMU_DEVICE(obj);
31
32 g_free(hiod->name);
33}