KVM: x86: Remove useless regs_page pointer from kvm_lapic
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Sat, 5 Mar 2011 03:40:20 +0000 (12:40 +0900)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 17 Mar 2011 16:08:33 +0000 (13:08 -0300)
commitafc20184b7d24693a934f652e135598a497c9448
treeae400e86dd91278c54489de0bb7e82212e11fd42
parentc8ce057eafd49da6a7afe7791bd84163f65f6132
KVM: x86: Remove useless regs_page pointer from kvm_lapic

Access to this page is mostly done through the regs member which holds
the address to this page.  The exceptions are in vmx_vcpu_reset() and
kvm_free_lapic() and these both can easily be converted to using regs.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
arch/x86/kvm/vmx.c