The patch titled KVM: make sure there is a vcpu context loaded when destroying the mmu has been removed from the -mm tree. Its filename was kvm-make-sure-there-is-a-vcpu-context-loaded-when.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ 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 file 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-svm-fix-svm-idt-confusion.patch kvm-emulate-ia32_misc_enable-msr.patch kvm-mmu-perform-access-checks-in-walk_addr.patch kvm-mmu-report-nx-faults-to-the-guest.patch kvm-svm-propagate-cpu-shutdown-events-to-userspace.patch fix-config_x86_64_-typo-in-drivers-kvm-svmc.patch fix-x86_64-mm-convert-i386-pda-code-to-use-%fs.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