Categorize devices: iommu
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>
This commit is contained in:
parent
965242dbf4
commit
1ec202c9be
@ -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 = {
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user