From a842df78eac28ec42b76797f76866b84a4126d0f Mon Sep 17 00:00:00 2001 From: Osier Yang Date: Sat, 4 May 2013 02:07:43 +0800 Subject: [PATCH] qemu: Set unpriv_sgio for scsi host device --- src/qemu/qemu_hostdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qemu/qemu_hostdev.c b/src/qemu/qemu_hostdev.c index f099a272fe..67cb4915ee 100644 --- a/src/qemu/qemu_hostdev.c +++ b/src/qemu/qemu_hostdev.c @@ -890,6 +890,9 @@ qemuPrepareHostdevSCSIDevices(virQEMUDriverPtr driver, if (qemuAddSharedDevice(driver, &dev, name) < 0) return -1; + + if (qemuSetUnprivSGIO(&dev) < 0) + return -1; } /* To prevent situation where SCSI device is assigned to two domains -- GitLab