diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2009-10-24 00:49:58 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-12-03 02:32:21 -0500 |
commit | fa40052ca04bdbbeb20b839cc8ffe9fa7beefbe9 (patch) | |
tree | 194c379e90fdd6d9a6f9454402c69863127de9bd /arch/x86 | |
parent | 6ff5894cdfe7103083bd15b31002434ccd351039 (diff) |
KVM: VMX: Use macros instead of hex value on cr0 initialization
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>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kvm/vmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 364263a25ff8..17730175aa08 100644 --- 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) | |||
2538 | if (vmx->vpid != 0) | 2538 | if (vmx->vpid != 0) |
2539 | vmcs_write16(VIRTUAL_PROCESSOR_ID, vmx->vpid); | 2539 | vmcs_write16(VIRTUAL_PROCESSOR_ID, vmx->vpid); |
2540 | 2540 | ||
2541 | vmx->vcpu.arch.cr0 = 0x60000010; | 2541 | vmx->vcpu.arch.cr0 = X86_CR0_NW | X86_CR0_CD | X86_CR0_ET; |
2542 | vmx_set_cr0(&vmx->vcpu, vmx->vcpu.arch.cr0); /* enter rmode */ | 2542 | vmx_set_cr0(&vmx->vcpu, vmx->vcpu.arch.cr0); /* enter rmode */ |
2543 | vmx_set_cr4(&vmx->vcpu, 0); | 2543 | vmx_set_cr4(&vmx->vcpu, 0); |
2544 | vmx_set_efer(&vmx->vcpu, 0); | 2544 | vmx_set_efer(&vmx->vcpu, 0); |