]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commite4cd1da944ed9d2acd2e4ccabf61ec443735f6db
treeda2091cadde842880044ebde0cbf97dbc6161cd3
parentf481b069e674378758c73761827e83ab05c46b52
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