diff options
author | Guo Chao <yan@linux.vnet.ibm.com> | 2012-06-28 03:16:19 -0400 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-07-20 14:19:04 -0400 |
commit | 0fa060714753ef65aef294b3462efb0212520933 (patch) | |
tree | 8e94c2c99f97b0342c496c637f71062eb72d91e1 /arch | |
parent | d566104853361cc377c61f70e41c1ad3d44b86c6 (diff) |
KVM: VMX: Fix typos
Signed-off-by: Guo Chao <yan@linux.vnet.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/vmx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index c39b60707e02..2300e5319ed9 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -1343,7 +1343,7 @@ static bool update_transition_efer(struct vcpu_vmx *vmx, int efer_offset) | |||
1343 | guest_efer = vmx->vcpu.arch.efer; | 1343 | guest_efer = vmx->vcpu.arch.efer; |
1344 | 1344 | ||
1345 | /* | 1345 | /* |
1346 | * NX is emulated; LMA and LME handled by hardware; SCE meaninless | 1346 | * NX is emulated; LMA and LME handled by hardware; SCE meaningless |
1347 | * outside long mode | 1347 | * outside long mode |
1348 | */ | 1348 | */ |
1349 | ignore_bits = EFER_NX | EFER_SCE; | 1349 | ignore_bits = EFER_NX | EFER_SCE; |
@@ -3261,7 +3261,7 @@ static void vmx_set_segment(struct kvm_vcpu *vcpu, | |||
3261 | * qemu binaries. | 3261 | * qemu binaries. |
3262 | * IA32 arch specifies that at the time of processor reset the | 3262 | * IA32 arch specifies that at the time of processor reset the |
3263 | * "Accessed" bit in the AR field of segment registers is 1. And qemu | 3263 | * "Accessed" bit in the AR field of segment registers is 1. And qemu |
3264 | * is setting it to 0 in the usedland code. This causes invalid guest | 3264 | * is setting it to 0 in the userland code. This causes invalid guest |
3265 | * state vmexit when "unrestricted guest" mode is turned on. | 3265 | * state vmexit when "unrestricted guest" mode is turned on. |
3266 | * Fix for this setup issue in cpu_reset is being pushed in the qemu | 3266 | * Fix for this setup issue in cpu_reset is being pushed in the qemu |
3267 | * tree. Newer qemu binaries with that qemu fix would not need this | 3267 | * tree. Newer qemu binaries with that qemu fix would not need this |
@@ -4446,7 +4446,7 @@ vmx_patch_hypercall(struct kvm_vcpu *vcpu, unsigned char *hypercall) | |||
4446 | hypercall[2] = 0xc1; | 4446 | hypercall[2] = 0xc1; |
4447 | } | 4447 | } |
4448 | 4448 | ||
4449 | /* called to set cr0 as approriate for a mov-to-cr0 exit. */ | 4449 | /* called to set cr0 as appropriate for a mov-to-cr0 exit. */ |
4450 | static int handle_set_cr0(struct kvm_vcpu *vcpu, unsigned long val) | 4450 | static int handle_set_cr0(struct kvm_vcpu *vcpu, unsigned long val) |
4451 | { | 4451 | { |
4452 | if (to_vmx(vcpu)->nested.vmxon && | 4452 | if (to_vmx(vcpu)->nested.vmxon && |