]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: pass struct kvm_mmu_page to gfn_to_rmap
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 May 2015 13:11:46 +0000 (15:11 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Jun 2015 15:26:35 +0000 (17:26 +0200)
commit0169df26ea5c3855c76e5c2085ab0f66a2222c9e
treeda2091cadde842880044ebde0cbf97dbc6161cd3
parentc693fe7845ff0a644d7f2b166cbb407942349e18
KVM: x86: pass struct kvm_mmu_page to gfn_to_rmap

This is always available (with one exception in the auditing code),
and with the same auditing exception the level was coming from
sp->role.level.

Later, the spte's role will also be used to look up the right memslots
array.

Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/mmu_audit.c