[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 3/4] Categorize devices: iommu
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PULL 3/4] Categorize devices: iommu |
Date: |
Thu, 25 Apr 2019 15:13:41 -0300 |
From: Ernest Esene <address@hidden>
Set category and description for iommu devices.
Signed-off-by: Ernest Esene <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
[ehabkost: edited commit message]
Signed-off-by: Eduardo Habkost <address@hidden>
---
hw/i386/amd_iommu.c | 2 ++
hw/i386/intel_iommu.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c
index 6eabdf9917..4a4e2c7fd4 100644
--- a/hw/i386/amd_iommu.c
+++ b/hw/i386/amd_iommu.c
@@ -1601,6 +1601,8 @@ static void amdvi_class_init(ObjectClass *klass, void*
data)
dc_class->int_remap = amdvi_int_remap;
/* Supported by the pc-q35-* machine types */
dc->user_creatable = true;
+ set_bit(DEVICE_CATEGORY_MISC, dc->categories);
+ dc->desc = "AMD IOMMU (AMD-Vi) DMA Remapping device";
}
static const TypeInfo amdvi = {
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index 2558f48fe6..44b1231157 100644
--- a/hw/i386/intel_iommu.c
+++ b/hw/i386/intel_iommu.c
@@ -3741,6 +3741,8 @@ static void vtd_class_init(ObjectClass *klass, void *data)
x86_class->int_remap = vtd_int_remap;
/* Supported by the pc-q35-* machine types */
dc->user_creatable = true;
+ set_bit(DEVICE_CATEGORY_MISC, dc->categories);
+ dc->desc = "Intel IOMMU (VT-d) DMA Remapping device";
}
static const TypeInfo vtd_info = {
--
2.18.0.rc1.1.g3f1ff2140
- [Qemu-devel] [PULL 0/4] x86 queue, 2019-04-25, Eduardo Habkost, 2019/04/25
- [Qemu-devel] [PULL 1/4] i386: Add new Hygon 'Dhyana' CPU model, Eduardo Habkost, 2019/04/25
- [Qemu-devel] [PULL 2/4] Categorize devices: IGD passthrough ISA bridge, Eduardo Habkost, 2019/04/25
- [Qemu-devel] [PULL 3/4] Categorize devices: iommu,
Eduardo Habkost <=
- [Qemu-devel] [PULL 4/4] Pass through cache information for TOPOEXT CPUs, Eduardo Habkost, 2019/04/25
- Re: [Qemu-devel] [PULL 0/4] x86 queue, 2019-04-25, Peter Maydell, 2019/04/27