[COMMIT master] KVM: Expand on help info to specify kvm intel and amd module names

2009-05-14 Thread Avi Kivity
From: Robert P. J. Day rpj...@crashcourse.ca Signed-off-by: Robert P. J. Day rpj...@crashcourse.ca Cc: Avi Kivity a...@redhat.com Signed-off-by: Andrew Morton a...@linux-foundation.org Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig index

[COMMIT master] KVM: x86: check for cr3 validity in mmu_alloc_roots

2009-05-14 Thread Avi Kivity
From: Marcelo Tosatti mtosa...@redhat.com Verify the cr3 address stored in vcpu-arch.cr3 points to an existant memslot. If not, inject a triple fault. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/mmu.c

[COMMIT master] KVM: s390: Unlink vcpu on destroy - v2

2009-05-14 Thread Avi Kivity
From: Carsten Otte co...@de.ibm.com This patch makes sure we do unlink a vcpu's sie control block from the system control area in kvm_arch_vcpu_destroy. This prevents illegal accesses to the sie control block from other virtual cpus after free. Reported-by: Mijo Safradin m...@linux.vnet.ibm.com

[COMMIT master] KVM: Unprotect a page if #PF happens during NMI injection.

2009-05-14 Thread Avi Kivity
From: Gleb Natapov g...@redhat.com It is done for exception and interrupt already. Signed-off-by: Gleb Natapov g...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 8b5ffbd..ac3d5ba 100644 --- a/arch/x86/kvm/svm.c +++

[COMMIT master] KVM: s390: use hrtimer for clock wakeup from idle - v2

2009-05-14 Thread Avi Kivity
From: Christian Borntraeger borntrae...@de.ibm.com This patch reworks the s390 clock comparator wakeup to hrtimer. The clock comparator is a per-cpu value that is compared against the TOD clock. If ckc = TOD an external interrupt 1004 is triggered. Since the clock comparator and the TOD clock

[COMMIT master] KVM: s390: optimize float int lock: spin_lock_bh -- spin_lock

2009-05-14 Thread Avi Kivity
From: Christian Borntraeger borntrae...@de.ibm.com The floating interrupt lock is only taken in process context. We can replace all spin_lock_bh with standard spin_lock calls. Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Christian Ehrhardt ehrha...@de.ibm.com

[COMMIT master] KVM: s390: Verify memory in kvm run

2009-05-14 Thread Avi Kivity
From: Carsten Otte co...@de.ibm.com This check verifies that the guest we're trying to run in KVM_RUN has some memory assigned to it. It enters an endless exception loop if this is not the case. Reported-by: Mijo Safradin m...@linux.vnet.ibm.com Signed-off-by: Carsten Otte co...@de.ibm.com

[COMMIT master] KVM: Do not allow interrupt injection from userspace if there is a pending event.

2009-05-14 Thread Avi Kivity
From: Gleb Natapov g...@redhat.com The exception will immediately close the interrupt window. Signed-off-by: Gleb Natapov g...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 33f850b..d9396a7 100644 --- a/arch/x86/kvm/x86.c +++

[COMMIT master] KVM: skip_emulated_instruction() decode instruction if size is not known

2009-05-14 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/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index ac3d5ba..1315ce0 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -228,7 +228,9 @@ static void

[COMMIT master] KVM: Disable CR8 intercept if tpr patching is active

2009-05-14 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/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 7037afa..44e87a5 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -3138,7 +3138,10 @@ static void

[COMMIT master] KVM: Do not re-execute INTn instruction.

2009-05-14 Thread Avi Kivity
From: Gleb Natapov g...@redhat.com Re-inject event instead. This is what Intel suggest. Also use correct instruction length when re-injecting soft fault/interrupt. Signed-off-by: Gleb Natapov g...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/include/asm/kvm_host.h

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

2009-05-14 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Conflicts: arch/x86/kvm/x86.c 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

[COMMIT master] KVM: Always request IRQ/NMI window if an interrupt is pending

2009-05-14 Thread Avi Kivity
From: Gleb Natapov g...@redhat.com Currently they are not requested if there is pending exception. Signed-off-by: Gleb Natapov g...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index e395ca4..efba9bc 100644 --- a/arch/x86/kvm/x86.c

[COMMIT master] KVM: Move exit due to NMI handling into vmx_complete_interrupts()

2009-05-14 Thread Avi Kivity
From: Gleb Natapov g...@redhat.com To save us one reading of VM_EXIT_INTR_INFO. Signed-off-by: Gleb Natapov g...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 29b49f0..fe2ce2b 100644 --- a/arch/x86/kvm/vmx.c +++

[COMMIT master] KVM: Do not migrate pending software interrupts.

2009-05-14 Thread Avi Kivity
From: Gleb Natapov g...@redhat.com INTn will be re-executed after migration. If we wanted to migrate pending software interrupt we would need to migrate interrupt type and instruction length too, but we do not have all required info on SVM, so SVM-VMX migration would need to re-execute INTn