[COMMIT master] test: issue EOI after IPI

2009-09-27 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Otherwise, we can't take more than one IPI. Signed-off-by: Avi Kivity a...@redhat.com diff --git a/kvm/user/test/lib/x86/smp.c b/kvm/user/test/lib/x86/smp.c index a3a5472..25f0cae 100644 --- a/kvm/user/test/lib/x86/smp.c +++ b/kvm/user/test/lib/x86/smp.c @@

[COMMIT master] test: set up per-cpu area

2009-09-27 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Currently sharing space with the stack. Signed-off-by: Avi Kivity a...@redhat.com diff --git a/kvm/user/test/x86/cstart64.S b/kvm/user/test/x86/cstart64.S index e5554ba..f1a9d09 100644 --- a/kvm/user/test/x86/cstart64.S +++ b/kvm/user/test/x86/cstart64.S @@

[COMMIT master] test: optimize smp_id()

2009-09-27 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Rather than reading it from the APIC, read it from the per-cpu area. Signed-off-by: Avi Kivity a...@redhat.com diff --git a/kvm/user/test/lib/x86/smp.c b/kvm/user/test/lib/x86/smp.c index 25f0cae..9eface5 100644 --- a/kvm/user/test/lib/x86/smp.c +++

[COMMIT master] test: add ipi latency test

2009-09-27 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/kvm/user/test/x86/vmexit.c b/kvm/user/test/x86/vmexit.c index 76f676d..29bb32a 100644 --- a/kvm/user/test/x86/vmexit.c +++ b/kvm/user/test/x86/vmexit.c @@ -1,5 +1,6 @@ #include libcflat.h +#include smp.h

[COMMIT master] test: add conditional execution for vmexit tests

2009-09-27 Thread Avi Kivity
From: Avi Kivity a...@redhat.com ipi tests can only run on smp for example. Signed-off-by: Avi Kivity a...@redhat.com diff --git a/kvm/user/test/x86/vmexit.c b/kvm/user/test/x86/vmexit.c index cce26d9..76f676d 100644 --- a/kvm/user/test/x86/vmexit.c +++ b/kvm/user/test/x86/vmexit.c @@ -54,6

[COMMIT master] test: Add ipi_halt benchmark

2009-09-27 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Wait for 2000 cycles after the IPI to allow the host to schedule out. Measures wake-from-idle overhead. Signed-off-by: Avi Kivity a...@redhat.com diff --git a/kvm/user/test/x86/vmexit.c b/kvm/user/test/x86/vmexit.c index 29bb32a..5088dc9 100644 ---

[COMMIT master] Don't call kvm_cpu_synchronize_state() if there is no irqchip events to process

2009-09-27 Thread Avi Kivity
From: Gleb Natapov g...@redhat.com Signed-off-by: Gleb Natapov g...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c index 32561f0..acb1b91 100644 --- a/qemu-kvm-x86.c +++ b/qemu-kvm-x86.c @@ -1673,9 +1673,12 @@ uint32_t

[COMMIT master] vmxcap: fix 'Unrestricted Guest' reporting

2009-09-27 Thread Avi Kivity
From: Avi Kivity a...@redhat.com It's a secondary execution control, not a pin-based control. Signed-off-by: Avi Kivity a...@redhat.com diff --git a/kvm/scripts/vmxcap b/kvm/scripts/vmxcap index 50f094b..20f13f2 100755 --- a/kvm/scripts/vmxcap +++ b/kvm/scripts/vmxcap @@ -67,7 +67,6 @@ controls

[COMMIT master] vmxcap: add PAUSE-loop exiting reporting

2009-09-27 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/kvm/scripts/vmxcap b/kvm/scripts/vmxcap index 20f13f2..50fb86e 100755 --- a/kvm/scripts/vmxcap +++ b/kvm/scripts/vmxcap @@ -111,6 +111,7 @@ controls = [ 5: 'Enable VPID', 6: 'WBINVD

[COMMIT master] Fix no gsi routing warning

2009-09-27 Thread Avi Kivity
From: Michael S. Tsirkin m...@redhat.com When running on host kernel which does not let the guest manupulate the gsi routing, and user requested MSI-X to be enabled, we get the following warnings: kvm_msix_add: kvm_get_irq_route_gsi failed: No space left on device kvm_msix_update:

[COMMIT master] Fix build error for signalfd_siginfo

2009-09-27 Thread Avi Kivity
From: Huang Ying ying.hu...@intel.com sys/signalfd.h (and struct signalfd_siginfo) is not available on some systems. So uses struct qemu_signalfd_siginfo from compatfd.h instead. Signed-off-by: Huang Ying ying.hu...@intel.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/qemu-kvm.c

[COMMIT master] Update halted state from mpstate only in case of inkernel irq chip

2009-09-27 Thread Avi Kivity
From: Gleb Natapov g...@redhat.com Otherwise cpu is always unhalted by call to kvm_arch_get_registers(). Signed-off-by: Gleb Natapov g...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/qemu-kvm.c b/qemu-kvm.c index 6511cb6..2a7fe3d 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@

[COMMIT master] Fix segfault on -no-kvm startup

2009-09-27 Thread Avi Kivity
From: Jan Kiszka jan.kis...@siemens.com The check for in-kernel irqchip must be protected by kvm_enabled, and we have a different wrapper for it. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/hw/apic.c b/hw/apic.c index 3a2e128..01ac174

[COMMIT master] Merge branch 'queue'

2009-09-27 Thread Avi Kivity
From: Avi Kivity a...@redhat.com -- To unsubscribe from this list: send the line unsubscribe kvm-commits in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[COMMIT master] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6

2009-09-27 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com -- To unsubscribe from this list: send the line unsubscribe kvm-commits in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[COMMIT master] Add printk_once definition

2009-09-27 Thread Avi Kivity
From: Marcelo Tosatti mtosa...@redhat.com diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h index 44b5511..c72fb86 100644 --- a/external-module-compat-comm.h +++ b/external-module-compat-comm.h @@ -975,3 +975,17 @@ unsigned long kvm_vma_kernel_pagesize(struct