]> git.proxmox.com Git - qemu-server.git/commit
fix #3784: config: Parameter for guest vIOMMU + test-cases
authorMarkus Frank <m.frank@proxmox.com>
Thu, 11 Apr 2024 10:48:20 +0000 (12:48 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Apr 2024 14:40:17 +0000 (16:40 +0200)
commit2db4c27283e34652f60ceb2f39e13f3e616cb561
tree118c1c363521e36ecb1149320808c8cc86be4999
parent8082eb8ca1c5ca4cd0e86d713faf22bc31b6db69
fix #3784: config: Parameter for guest vIOMMU + test-cases

vIOMMU enables the option to passthrough pci devices to L2 VMs in L1
VMs via Nested Virtualisation and adds an extra isolation.

Uses the new property-string from the "config: define machine schema
as property-string"-commit to add the viommu option to the machine
parameter.

Currently there are two vIOMMU implementation in QEMU to choose:
intel or virtio

Virtio-iommu is more recent but less used in production than intel-iommu.

The assert_valid_machine_property function prevents using intel-iommu with
i440fx.

Signed-off-by: Markus Frank <m.frank@proxmox.com>
 [ TL: tiny coding style fix to extract variable inside if expr ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu.pm
PVE/QemuServer.pm
PVE/QemuServer/Machine.pm
test/cfg2cmd/i440fx-viommu-intel.conf [new file with mode: 0644]
test/cfg2cmd/i440fx-viommu-virtio.conf [new file with mode: 0644]
test/cfg2cmd/i440fx-viommu-virtio.conf.cmd [new file with mode: 0644]
test/cfg2cmd/q35-viommu-intel.conf [new file with mode: 0644]
test/cfg2cmd/q35-viommu-intel.conf.cmd [new file with mode: 0644]
test/cfg2cmd/q35-viommu-virtio.conf [new file with mode: 0644]
test/cfg2cmd/q35-viommu-virtio.conf.cmd [new file with mode: 0644]