From: Avi Kivity Date: Tue, 8 Dec 2009 10:14:42 +0000 (+0200) Subject: KVM: VMX: Fold ept_update_paging_mode_cr4() into its caller X-Git-Tag: v2.6.34-rc1~193^2~136 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc23008b610dda1b0e69cd473b31c1391d6873f2;p=pandora-kernel.git 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 --- Reading git-diff-tree failed