diff options
| author | Peter Xu <peterx@redhat.com> | 2016-07-14 13:56:10 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2016-07-20 19:30:27 +0300 |
| commit | 1c7955c4503211f45a83e6480bd876f079ba5cd8 (patch) | |
| tree | ae84c09c78af0b270955bcba5789445fe79bf8ea /include/hw/i386/intel_iommu.h | |
| parent | b1af7959a66610669e1a019b9a84f6ed3a7936c6 (diff) | |
| download | focaccia-qemu-1c7955c4503211f45a83e6480bd876f079ba5cd8.tar.gz focaccia-qemu-1c7955c4503211f45a83e6480bd876f079ba5cd8.zip | |
x86-iommu: introduce parent class
Introducing parent class for intel-iommu devices named "x86-iommu". This is preparation work to abstract shared functionalities out from Intel and AMD IOMMUs. Currently, only the parent class is introduced. It does nothing yet. Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/i386/intel_iommu.h')
| -rw-r--r-- | include/hw/i386/intel_iommu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/i386/intel_iommu.h b/include/hw/i386/intel_iommu.h index b024ffa720..680a0c4e5e 100644 --- a/include/hw/i386/intel_iommu.h +++ b/include/hw/i386/intel_iommu.h @@ -23,6 +23,7 @@ #define INTEL_IOMMU_H #include "hw/qdev.h" #include "sysemu/dma.h" +#include "hw/i386/x86-iommu.h" #define TYPE_INTEL_IOMMU_DEVICE "intel-iommu" #define INTEL_IOMMU_DEVICE(obj) \ @@ -90,7 +91,7 @@ struct VTDIOTLBEntry { /* The iommu (DMAR) device state struct */ struct IntelIOMMUState { - SysBusDevice busdev; + X86IOMMUState x86_iommu; MemoryRegion csrmem; uint8_t csr[DMAR_REG_SIZE]; /* register values */ uint8_t wmask[DMAR_REG_SIZE]; /* R/W bytes */ |