]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Categorize devices: iommu
authorErnest Esene <eroken1@gmail.com>
Wed, 27 Mar 2019 17:05:18 +0000 (18:05 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 25 Apr 2019 17:52:28 +0000 (14:52 -0300)
Set category and description for iommu devices.

Signed-off-by: Ernest Esene <eroken1@gmail.com>
Message-Id: <20190327170518.GA16887@erokenlabserver>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
[ehabkost: edited commit message]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/i386/amd_iommu.c
hw/i386/intel_iommu.c

index 6eabdf99172ac725742cd45a275dad7ccaa5d3fb..4a4e2c7fd46b32ab04793e530d93674a9f898324 100644 (file)
@@ -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 = {
index 2558f48fe65a41b5020ac248fff06b3de0063eb4..44b12311579bfdfaff7bc852dc9939851f38c1c6 100644 (file)
@@ -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 = {