forked from libvirt/libvirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qemu: Validate address type for virtio-iommu
virtio-iommu is a PCI device and attempts to use a different address type should be rejected. Signed-off-by: Andrea Bolognani <[email protected]> Reviewed-by: Ján Tomko <[email protected]>
- Loading branch information
1 parent
f119336
commit fc6cde6
Showing
4 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/qemuxml2argvdata/virtio-iommu-invalid-address-type.x86_64-latest.err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
unsupported configuration: IOMMU device: 'virtio' needs a PCI address |
20 changes: 20 additions & 0 deletions
20
tests/qemuxml2argvdata/virtio-iommu-invalid-address-type.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<domain type='qemu'> | ||
<name>QEMUGuest1</name> | ||
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid> | ||
<memory unit='KiB'>219100</memory> | ||
<vcpu placement='static'>1</vcpu> | ||
<os> | ||
<type arch='x86_64' machine='q35'>hvm</type> | ||
</os> | ||
<features> | ||
<acpi/> | ||
</features> | ||
<devices> | ||
<emulator>/usr/bin/qemu-system-x86_64</emulator> | ||
<controller type='usb' model='none'/> | ||
<memballoon model='none'/> | ||
<iommu model='virtio'> | ||
<address type='virtio-mmio'/> | ||
</iommu> | ||
</devices> | ||
</domain> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters