From: Ben-Ami Yassour <[EMAIL PROTECTED]>
PIO for passthrough does not work properly since the permissions are not
set, it is not enough to call iopl at init time.
This temporary patch calls iopl for every pio request.
A better solution would be have a per thread iopl.
An alternative approach would be to use sysfs for pio.
In the mean time, if you want to use the vtd branch, then you probably
need this patch.
Signed-off-by: Ben-Ami Yassour <[EMAIL PROTECTED]>
---
qemu/hw/pci-passthrough.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/qemu/hw/pci-passthrough.c b/qemu/hw/pci-passthrough.c
index 2d916a2..b091a85 100644
--- a/qemu/hw/pci-passthrough.c
+++ b/qemu/hw/pci-passthrough.c
@@ -117,6 +117,7 @@ static void pt_ioport_write##suffix(void *opaque, uint32_t
addr, uint32_t value)
r_pio, (int)r_access->e_physbase, \
(unsigned long)r_access->r_virtbase, value); \
} \
+ iopl(3); \
out##suffix(value, r_pio); \
}
--
1.5.5.1
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html