projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ff5894
)
KVM: VMX: Use macros instead of hex value on cr0 initialization
author
Eduardo Habkost
<ehabkost@redhat.com>
Sat, 24 Oct 2009 04:49:58 +0000
(
02:49
-0200)
committer
Avi Kivity
<avi@redhat.com>
Thu, 3 Dec 2009 07:32:21 +0000
(09:32 +0200)
This should have no effect, it is just to make the code clearer.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/vmx.c
b/arch/x86/kvm/vmx.c
index 364263a25ff89ed93207a29a97aa9a3b8c241717..17730175aa08ad6796443eab525580ea0e015979 100644
(file)
--- a/
arch/x86/kvm/vmx.c
+++ b/
arch/x86/kvm/vmx.c
@@
-2538,7
+2538,7
@@
static int vmx_vcpu_reset(struct kvm_vcpu *vcpu)
if (vmx->vpid != 0)
vmcs_write16(VIRTUAL_PROCESSOR_ID, vmx->vpid);
- vmx->vcpu.arch.cr0 =
0x60000010
;
+ vmx->vcpu.arch.cr0 =
X86_CR0_NW | X86_CR0_CD | X86_CR0_ET
;
vmx_set_cr0(&vmx->vcpu, vmx->vcpu.arch.cr0); /* enter rmode */
vmx_set_cr4(&vmx->vcpu, 0);
vmx_set_efer(&vmx->vcpu, 0);