KVM: x86: pass struct kvm_mmu_page to account/unaccount_shadowed
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 May 2015 14:29:22 +0000 (16:29 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 May 2015 08:43:34 +0000 (10:43 +0200)
commit3ed1a4787617f948631a77903453847142271867
tree28703732d61a536cd5869d463b0115a700203b2b
parente37afc6ee5a6af9b334e2f214ec795e8bfaaaba5
KVM: x86: pass struct kvm_mmu_page to account/unaccount_shadowed

Prepare for multiple address spaces this way, since a VCPU is not available
where unaccount_shadowed is called.  We will get to the right kvm_memslots
struct through the role field in struct kvm_mmu_page.

Reviewed-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Reviewed-by: Radim Krcmar <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c