[COMMIT master] KVM: use POLLHUP to close an irqfd instead of an explicit ioctl

2009-06-04 Thread Avi Kivity
From: Gregory Haskins Assigning an irqfd object to a kvm object creates a relationship that we currently manage by having the kvm oject acquire/hold a file* reference to the underlying eventfd. The lifetime of these objects is properly maintained by decoupling the two objects whenever the irqfd

[COMMIT master] KVM: VMX: Fix reporting of unhandled EPT violations

2009-06-04 Thread Avi Kivity
From: Avi Kivity Instead of returning -ENOTSUPP, exit normally but indicate the hardware exit reason. Signed-off-by: Avi Kivity diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index fd05fd2..7eb98e5 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -3110,8 +3110,8 @@ static int

[COMMIT master] KVM: Calculate available entries in coalesced mmio ring

2009-06-04 Thread Avi Kivity
From: Avi Kivity Instead of checking whether we'll wrap around, calculate how many entries are available, and check whether we have enough (just one) for the pending mmio. By itself, this doesn't change anything, but it paves the way for making this function lockless. Signed-off-by: Avi Kivity

[COMMIT master] Backport srcu implementation

2009-06-04 Thread Avi Kivity
From: Avi Kivity Signed-off-by: Avi Kivity diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h index 9801441..5b96c46 100644 --- a/external-module-compat-comm.h +++ b/external-module-compat-comm.h @@ -812,3 +812,16 @@ static inline struct file *eventfd_fget(int fd) }

[COMMIT master] eventfd: Allow waiters to be notified about the eventfd file* going away

2009-06-04 Thread Avi Kivity
From: Davide Libenzi And give them a change to unregister from the wait queue. This is turn allows eventfd users to use the eventfd file* w/out holding a live reference to it. After the eventfd user callbacks returns, any usage of the eventfd file* should be dropped. The eventfd user callback

[COMMIT master] Update source link

2009-06-04 Thread Avi Kivity
From: Avi Kivity Signed-off-by: Avi Kivity diff --git a/linux-2.6 b/linux-2.6 index d789c98..28ddf0a 16 --- a/linux-2.6 +++ b/linux-2.6 @@ -1 +1 @@ -Subproject commit d789c98af00b1bd62f91a241586546072a41175b +Subproject commit 28ddf0aebbf546e56efd1951725d5457ce1ebf98 -- To unsubscribe from

[COMMIT master] Do not use cpu_index in interface between libkvm and qemu

2009-06-04 Thread Avi Kivity
From: Gleb Natapov On vcpu creation cookie is returned which is used in future communication. Signed-off-by: Gleb Natapov Signed-off-by: Avi Kivity diff --git a/cpu-defs.h b/cpu-defs.h index 1e071e7..5f541e0 100644 --- a/cpu-defs.h +++ b/cpu-defs.h @@ -147,6 +147,7 @@ struct KVMCPUState {

[COMMIT master] kvm: Add irqfd support

2009-06-04 Thread Avi Kivity
From: Gregory Haskins irqfd lets you create an eventfd based file-desriptor to inject interrupts to a kvm guest. We associate one gsi per fd for fine-grained routing. Signed-off-by: Gregory Haskins Signed-off-by: Avi Kivity diff --git a/libkvm-all.c b/libkvm-all.c index 1668e32..6a684a5 1006

[COMMIT master] kvm: Halt guest on unhandled exit instead of abort()ing

2009-06-04 Thread Avi Kivity
From: Avi Kivity This allows the user to examine the VM and inspect state and guest code. Signed-off-by: Avi Kivity diff --git a/libkvm-all.c b/libkvm-all.c index c45b058..dd56498 100644 --- a/libkvm-all.c +++ b/libkvm-all.c @@ -981,16 +981,12 @@ again: if (1) { switch

[COMMIT master] Merge branch 'master' of git://git.sv.gnu.org/qemu

2009-06-04 Thread Avi Kivity
From: Avi Kivity * 'master' of git://git.sv.gnu.org/qemu: (40 commits) Update maintainer list. Install keymaps from new location vvfat: one more missing BlockDriver C99 initializer conversion Move keymaps into pc-bios kvm: Mark full address range dirty on live migration start Add dete

[COMMIT master] revert part of 3db8b916e merge

2009-06-04 Thread Avi Kivity
From: Gleb Natapov kvm_*_mpstate() cannot be called from kvm_arch_*_registers() since kvm_arch_*_registers() sometimes called from io thread, but kvm_*_mpstate() can be called only by cpu thread. Signed-off-by: Gleb Natapov Signed-off-by: Avi Kivity diff --git a/qemu-kvm.c b/qemu-kvm.c index