[COMMIT master] KVM: MMU: Add tracepoint for guest page aging

2010-02-09 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index b8da671..7397932 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -151,6 +151,9 @@ module_param(oos_shadow, bool, 0644); #define ACC_USER_MASK

[COMMIT master] KVM: Fix cr4 possible guest owned bits mask

2010-02-09 Thread Avi Kivity
From: Avi Kivity a...@redhat.com vmx can allow many bits to be owned by the guest, need to detail them all to avoid kvm_read_cr4() failures. Fixes Linux -smp 2 -no-kvm-irqchip failures. Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/kvm_cache_regs.h

[COMMIT master] KVM: PIT: unregister kvm irq notifier if fail to create pit

2010-02-09 Thread Avi Kivity
From: Wei Yongjun yj...@cn.fujitsu.com If fail to create pit, we should unregister kvm irq notifier which register in kvm_create_pit(). Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com Acked-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git

[COMMIT master] KVM: ppc/booke: Set ESR and DEAR when inject interrupt to guest

2010-02-09 Thread Avi Kivity
From: Liu Yu yu@freescale.com Old method prematurely sets ESR and DEAR. Move this part after we decide to inject interrupt, which is more like hardware behave. Signed-off-by: Liu Yu yu@freescale.com Acked-by: Hollis Blanchard hol...@penguinppc.org Acked-by: Alexander Graf ag...@suse.de

[COMMIT master] KVM: ia64: destroy ioapic device if fail to setup default irq routing

2010-02-09 Thread Avi Kivity
From: Wei Yongjun yj...@cn.fujitsu.com If KVM_CREATE_IRQCHIP fail due to kvm_setup_default_irq_routing(), ioapic device is not destroyed and kvm-arch.vioapic is not set to NULL, this may cause KVM_GET_IRQCHIP and KVM_SET_IRQCHIP access to unexcepted memory. Signed-off-by: Wei Yongjun

[COMMIT master] KVM: kvm-arch.vioapic should be NULL if kvm_ioapic_init() failure

2010-02-09 Thread Avi Kivity
From: Wei Yongjun yj...@cn.fujitsu.com kvm-arch.vioapic should be NULL in case of kvm_ioapic_init() failure due to cannot register io dev. Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c index