commit | bc23008b610dda1b0e69cd473b31c1391d6873f2 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Tue Dec 08 12:14:42 2009 +0200 |
committer | Marcelo Tosatti <mtosatti@redhat.com> | Mon Mar 01 12:35:40 2010 -0300 |
tree | fe6619ed00237fdeb600fe14a44d5147e5910756 | |
parent | ce03e4f21a33b97c5d20ce597f64c361bb247904 [diff] |
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>