Re: [KVM PATCH v7 3/3] kvm: add iofd support

2009-05-14 Thread Avi Kivity
Gregory Haskins wrote: iofd is a mechanism to register PIO/MMIO regions to trigger an eventfd signal when written to. Userspace can register any arbitrary address with a corresponding eventfd. Please start a separate patchset for this so I can merge irqfd. diff --git

Re: [KVM PATCH v7 3/3] kvm: add iofd support

2009-05-14 Thread Gregory Haskins
Avi Kivity wrote: Gregory Haskins wrote: iofd is a mechanism to register PIO/MMIO regions to trigger an eventfd signal when written to. Userspace can register any arbitrary address with a corresponding eventfd. Please start a separate patchset for this so I can merge irqfd. Ack. Will

Re: [KVM PATCH v7 3/3] kvm: add iofd support

2009-05-14 Thread Avi Kivity
Gregory Haskins wrote: +#define KVM_IOFD_FLAG_PIO (1 1) + +struct kvm_iofd { +__u64 addr; +__u32 len; +__u32 fd; +__u32 flags; +__u8 pad[12]; +}; + Please add a data match capability. virtio uses a write with the data containing the queue ID, and we want a

[KVM PATCH v7 3/3] kvm: add iofd support

2009-05-12 Thread Gregory Haskins
iofd is a mechanism to register PIO/MMIO regions to trigger an eventfd signal when written to. Userspace can register any arbitrary address with a corresponding eventfd. Signed-off-by: Gregory Haskins ghask...@novell.com --- include/linux/kvm.h | 12 + include/linux/kvm_host.h |

Re: [KVM PATCH v7 3/3] kvm: add iofd support

2009-05-12 Thread Gregory Haskins
Gregory Haskins wrote: iofd is a mechanism to register PIO/MMIO regions to trigger an eventfd signal when written to. Userspace can register any arbitrary address with a corresponding eventfd. Ugg..this patch header sucks, especially given all the talk around how we need to do them better