KVM: VMX: Fold ept_update_paging_mode_cr4() into its caller
authorAvi Kivity <avi@redhat.com>
Tue, 8 Dec 2009 10:14:42 +0000 (12:14 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:40 +0000 (12:35 -0300)
commitbc23008b610dda1b0e69cd473b31c1391d6873f2
treefe6619ed00237fdeb600fe14a44d5147e5910756
parentce03e4f21a33b97c5d20ce597f64c361bb247904
KVM: VMX: Fold ept_update_paging_mode_cr4() into its caller

ept_update_paging_mode_cr4() accesses vcpu->arch.cr4 directly, which usually
needs to be accessed via kvm_read_cr4().  In this case, we can't, since cr4
is in the process of being updated.  Instead of adding inane comments, fold
the function into its caller (vmx_set_cr4), so it can use the not-yet-committed
cr4 directly.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c