aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
authorRyan Harper <ryanh@us.ibm.com>2008-02-11 11:26:38 -0500
committerAvi Kivity <avi@qumranet.com>2008-04-27 04:53:21 -0400
commit2e11384c2c6f1ce662b1e5b05ba49b216a052f2a (patch)
tree694fecbf8caf6fc1618bfa0920cc5dc7e1c72c5b /arch/x86/kvm/vmx.c
parent709ddebf81cb40e3c36c6109a7892e8b93a09464 (diff)
KVM: VMX: fix typo in VMX header define
Looking at Intel Volume 3b, page 148, table 20-11 and noticed that the field name is 'Deliver' not 'Deliever'. Attached patch changes the define name and its user in vmx.c Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 76944f2c883b..2d5ccec3f9e7 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -632,7 +632,7 @@ static void vmx_queue_exception(struct kvm_vcpu *vcpu, unsigned nr,
632{ 632{
633 vmcs_write32(VM_ENTRY_INTR_INFO_FIELD, 633 vmcs_write32(VM_ENTRY_INTR_INFO_FIELD,
634 nr | INTR_TYPE_EXCEPTION 634 nr | INTR_TYPE_EXCEPTION
635 | (has_error_code ? INTR_INFO_DELIEVER_CODE_MASK : 0) 635 | (has_error_code ? INTR_INFO_DELIVER_CODE_MASK : 0)
636 | INTR_INFO_VALID_MASK); 636 | INTR_INFO_VALID_MASK);
637 if (has_error_code) 637 if (has_error_code)
638 vmcs_write32(VM_ENTRY_EXCEPTION_ERROR_CODE, error_code); 638 vmcs_write32(VM_ENTRY_EXCEPTION_ERROR_CODE, error_code);
@@ -1935,7 +1935,7 @@ static int handle_exception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
1935 1935
1936 error_code = 0; 1936 error_code = 0;
1937 rip = vmcs_readl(GUEST_RIP); 1937 rip = vmcs_readl(GUEST_RIP);
1938 if (intr_info & INTR_INFO_DELIEVER_CODE_MASK) 1938 if (intr_info & INTR_INFO_DELIVER_CODE_MASK)
1939 error_code = vmcs_read32(VM_EXIT_INTR_ERROR_CODE); 1939 error_code = vmcs_read32(VM_EXIT_INTR_ERROR_CODE);
1940 if (is_page_fault(intr_info)) { 1940 if (is_page_fault(intr_info)) {
1941 cr2 = vmcs_readl(EXIT_QUALIFICATION); 1941 cr2 = vmcs_readl(EXIT_QUALIFICATION);
@@ -2351,7 +2351,7 @@ static void vmx_intr_assist(struct kvm_vcpu *vcpu)
2351 vmcs_write32(VM_ENTRY_INSTRUCTION_LEN, 2351 vmcs_write32(VM_ENTRY_INSTRUCTION_LEN,
2352 vmcs_read32(VM_EXIT_INSTRUCTION_LEN)); 2352 vmcs_read32(VM_EXIT_INSTRUCTION_LEN));
2353 2353
2354 if (unlikely(idtv_info_field & INTR_INFO_DELIEVER_CODE_MASK)) 2354 if (unlikely(idtv_info_field & INTR_INFO_DELIVER_CODE_MASK))
2355 vmcs_write32(VM_ENTRY_EXCEPTION_ERROR_CODE, 2355 vmcs_write32(VM_ENTRY_EXCEPTION_ERROR_CODE,
2356 vmcs_read32(IDT_VECTORING_ERROR_CODE)); 2356 vmcs_read32(IDT_VECTORING_ERROR_CODE));
2357 if (unlikely(has_ext_irq)) 2357 if (unlikely(has_ext_irq))