diff options
| author | Peter Xu <peterx@redhat.com> | 2019-09-16 16:07:17 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2019-09-16 06:57:24 -0400 |
| commit | c6cbc29d36fe8df078776ed715c37cebac582238 (patch) | |
| tree | b2e49962a3fd20c243d72b052717ce422e89f048 /scripts/qapi/common.py | |
| parent | d2321d31ff98b75b652c2b1594f00a4cfd48102a (diff) | |
| download | focaccia-qemu-c6cbc29d36fe8df078776ed715c37cebac582238.tar.gz focaccia-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