[kvm-devel] [PATCH 1/1] direct mmio for passthrough - kernel part

2008-04-01 Thread benami
From: Ben-Ami Yassour <[EMAIL PROTECTED]> Enable a guest to access a device's memory mapped I/O regions directly. Userspace sends the mmio regions that the guest can access. On the first page fault for an access to an mmio address the host translates the gva to hpa, and updates the sptes. Signed-

[kvm-devel] [RFC] direct mmio for passthrough

2008-04-01 Thread benami
This patch for PCI passthrough devices enables a guest to access a device's memory mapped I/O regions directly, without requiring the host to trap and emulate every MMIO access. We save the list of MMIO regions of the guest's devices and the corresponding host MMIO regions in the host kernel. When

[kvm-devel] [PATCH 1/1] direct mmio for passthrough - userspace part

2008-04-01 Thread benami
From: Ben-Ami Yassour <[EMAIL PROTECTED]> Enable a guest to access a device's memory mapped I/O regions directly. When the guest changes the I/O memory mappings for a passthrough device, send the updated mmio region to the kernel. Signed-off-by: Ben-Ami Yassour <[EMAIL PROTECTED]> Signed-off-by:

[kvm-devel] [PATCH 1/1] Enble a guest to access a device's memory mapped I/O regions directly.

2008-04-16 Thread benami
From: Ben-Ami Yassour <[EMAIL PROTECTED]> Signed-off-by: Ben-Ami Yassour <[EMAIL PROTECTED]> Signed-off-by: Muli Ben-Yehuda <[EMAIL PROTECTED]> --- libkvm/libkvm.c | 24 qemu/hw/pci-passthrough.c | 89 +++-- qemu/hw/pci-passthroug

[kvm-devel] [PATCH 1/1] Enble a guest to access a device's memory mapped I/O regions directly.

2008-04-16 Thread benami
From: Ben-Ami Yassour <[EMAIL PROTECTED]> Signed-off-by: Ben-Ami Yassour <[EMAIL PROTECTED]> Signed-off-by: Muli Ben-Yehuda <[EMAIL PROTECTED]> --- libkvm/libkvm.c | 24 qemu/hw/pci-passthrough.c | 89 +++-- qemu/hw/pci-passthroug

[kvm-devel] [PATCH 1/1] Enble a guest to access a device's memory mapped I/O regions directly.

2008-04-16 Thread benami
From: Ben-Ami Yassour <[EMAIL PROTECTED]> Signed-off-by: Ben-Ami Yassour <[EMAIL PROTECTED]> Signed-off-by: Muli Ben-Yehuda <[EMAIL PROTECTED]> --- arch/x86/kvm/mmu.c | 59 +-- arch/x86/kvm/paging_tmpl.h | 19 + include/linux/kvm_hos

[kvm-devel] direct mmio for passthrough - kernel part

2008-04-16 Thread benami
This patch for PCI passthrough devices enables a guest to access a device's memory mapped I/O regions directly, without requiring the host to trap and emulate every MMIO access. Updated from last version: we create a memory slot for each MMIO region of the guest's devices, and then use the /sys/

[kvm-devel] [PATCH 1/1] Enble a guest to access a device's memory mapped I/O regions directly.

2008-04-16 Thread benami
From: Ben-Ami Yassour <[EMAIL PROTECTED]> Signed-off-by: Ben-Ami Yassour <[EMAIL PROTECTED]> Signed-off-by: Muli Ben-Yehuda <[EMAIL PROTECTED]> --- arch/x86/kvm/mmu.c | 59 +-- arch/x86/kvm/paging_tmpl.h | 19 + include/linux/kvm_hos