host_iommu_device.c 763 B

123456789101112131415161718192021222324252627282930313233
  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. #include "qemu/osdep.h"
  12. #include "system/host_iommu_device.h"
  13. OBJECT_DEFINE_ABSTRACT_TYPE(HostIOMMUDevice,
  14. host_iommu_device,
  15. HOST_IOMMU_DEVICE,
  16. OBJECT)
  17. static void host_iommu_device_class_init(ObjectClass *oc, void *data)
  18. {
  19. }
  20. static void host_iommu_device_init(Object *obj)
  21. {
  22. }
  23. static void host_iommu_device_finalize(Object *obj)
  24. {
  25. HostIOMMUDevice *hiod = HOST_IOMMU_DEVICE(obj);
  26. g_free(hiod->name);
  27. }