summaryrefslogtreecommitdiffstats
path: root/scripts/qapi/common.py
diff options
context:
space:
mode:
authorPeter Xu2019-09-16 10:07:17 +0200
committerMichael S. Tsirkin2019-09-16 12:57:24 +0200
commitc6cbc29d36fe8df078776ed715c37cebac582238 (patch)
treeb2e49962a3fd20c243d72b052717ce422e89f048 /scripts/qapi/common.py
parentqdev/machine: Introduce hotplug_allowed hook (diff)
downloadqemu-c6cbc29d36fe8df078776ed715c37cebac582238.tar.gz
qemu-c6cbc29d36fe8df078776ed715c37cebac582238.tar.xz
qemu-c6cbc29d36fe8df078776ed715c37cebac582238.zip
pc/q35: Disallow vfio-pci hotplug without VT-d caching mode
Instead of bailing out when trying to hotplug a vfio-pci device with below configuration: -device intel-iommu,caching-mode=off With this we can return a warning message to the user via QMP/HMP and the VM will continue to work after failing the hotplug: (qemu) device_add vfio-pci,bus=root.3,host=05:00.0,id=vfio1 Error: Device assignment is not allowed without enabling caching-mode=on for Intel IOMMU. Reviewed-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20190916080718.3299-4-peterx@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/qapi/common.py')
0 files changed, 0 insertions, 0 deletions