The patch titled KVM: make sure there is a vcpu context loaded when destroying the mmu has been added to the -mm tree. Its filename is kvm-make-sure-there-is-a-vcpu-context-loaded-when.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: KVM: make sure there is a vcpu context loaded when destroying the mmu From: Avi Kivity <avi@xxxxxxxxxxxx> This makes the vmwrite errors on vm shutdown go away. Signed-off-by: Avi Kivity <avi@xxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/kvm/kvm_main.c | 2 ++ 1 files changed, 2 insertions(+) diff -puN drivers/kvm/kvm_main.c~kvm-make-sure-there-is-a-vcpu-context-loaded-when drivers/kvm/kvm_main.c --- a/drivers/kvm/kvm_main.c~kvm-make-sure-there-is-a-vcpu-context-loaded-when +++ a/drivers/kvm/kvm_main.c @@ -272,7 +272,9 @@ static void kvm_free_physmem(struct kvm static void kvm_free_vcpu(struct kvm_vcpu *vcpu) { + vcpu_load(vcpu->kvm, vcpu_slot(vcpu)); kvm_mmu_destroy(vcpu); + vcpu_put(vcpu); kvm_arch_ops->vcpu_free(vcpu); } _ Patches currently in -mm which might be from avi@xxxxxxxxxxxx are kvm-add-vm-exit-profiling.patch kvm-make-sure-there-is-a-vcpu-context-loaded-when.patch kvm-fix-race-between-mmio-reads-and-injected-interrupts.patch kvm-x86-emulator-fix-bit-string-instructions.patch kvm-fix-asm-constraints-with-config_frame_pointer=n.patch kvm-fix-bogus-pagefault-on-writable-pages.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html