mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
q35: Check propery to determine if iommu is set
The helper function machine_iommu() isn't necesary. We can directly check for the property. Signed-off-by: Bandan Das <bsd@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Bandan Das <bsd@redhat.com>
This commit is contained in:
parent
dc3db6adde
commit
1f8431f42d
3 changed files with 1 additions and 7 deletions
|
@ -506,7 +506,7 @@ static void mch_realize(PCIDevice *d, Error **errp)
|
|||
PAM_EXPAN_BASE + i * PAM_EXPAN_SIZE, PAM_EXPAN_SIZE);
|
||||
}
|
||||
/* Intel IOMMU (VT-d) */
|
||||
if (machine_iommu(current_machine)) {
|
||||
if (object_property_get_bool(qdev_get_machine(), "iommu", NULL)) {
|
||||
mch_init_dmar(mch);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue