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>
Showing
- Documentation/virtual/kvm/mmu.txt 6 additions, 0 deletionsDocumentation/virtual/kvm/mmu.txt
- arch/x86/include/asm/kvm_host.h 15 additions, 11 deletionsarch/x86/include/asm/kvm_host.h
- arch/x86/kvm/mmu.c 12 additions, 3 deletionsarch/x86/kvm/mmu.c
- arch/x86/kvm/mmu_audit.c 7 additions, 3 deletionsarch/x86/kvm/mmu_audit.c
- arch/x86/kvm/x86.c 2 additions, 0 deletionsarch/x86/kvm/x86.c
Loading
Please register or sign in to comment