summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorPaolo Bonzini2015-05-18 15:03:39 +0200
committerPaolo Bonzini2015-06-05 17:26:37 +0200
commit699023e239658e62da6f42f47d31b54788521ec1 (patch)
tree01dcd8c0ad2100dc1c8a4834358a0fb0d2f0fa1c /arch/x86/kvm/x86.c
parentKVM: x86: work on all available address spaces (diff)
downloadkernel-qcow2-linux-699023e239658e62da6f42f47d31b54788521ec1.tar.gz
kernel-qcow2-linux-699023e239658e62da6f42f47d31b54788521ec1.tar.xz
kernel-qcow2-linux-699023e239658e62da6f42f47d31b54788521ec1.zip
KVM: x86: add SMM to the MMU role, support SMRAM address space
This is now very simple to do. The only interesting part is a simple trick to find the right memslot in gfn_to_rmap, retrieving the address space from the spte role word. The same trick is used in the auditing code. The comment on top of union kvm_mmu_page_role has been stale forever, so remove it. Speaking of stale code, remove pad_for_nice_hex_output too: it was splitting the "access" bitfield across two bytes and thus had effectively turned into pad_for_ugly_hex_output. Reviewed-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index caa0d5f8e6b3..7489871b63df 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -5490,6 +5490,8 @@ static void kvm_smm_changed(struct kvm_vcpu *vcpu)
kvm_make_request(KVM_REQ_EVENT, vcpu);
}
}
+
+ kvm_mmu_reset_context(vcpu);
}
static void kvm_set_hflags(struct kvm_vcpu *vcpu, unsigned emul_flags)