ia64/xen-unstable

changeset 14148:e7b2a282c9e7

[HVM][SVM] Save/Restore: Remove commented out code
Code not needed by SVM as the "VM_ENTRY_CONTROLS" register doesn't
exist.

Signed off: Mats Petersson (mats.petersson@amd.com)
author Tim Deegan <Tim.Deegan@xensource.com>
date Mon Feb 26 17:20:36 2007 +0000 (2007-02-26)
parents 6efc22cb9c84
children 50e0616fd012
files xen/arch/x86/hvm/svm/svm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/svm/svm.c	Mon Feb 26 17:05:10 2007 +0000
     1.2 +++ b/xen/arch/x86/hvm/svm/svm.c	Mon Feb 26 17:20:36 2007 +0000
     1.3 @@ -502,15 +502,6 @@ int svm_vmcb_restore(struct vcpu *v, str
     1.4      }
     1.5  
     1.6   skip_cr3:
     1.7 -#if defined(__x86_64__) && 0
     1.8 -    if (vmx_long_mode_enabled(v)) {
     1.9 -        unsigned long vm_entry_value;
    1.10 -        vm_entry_value = __vmread(VM_ENTRY_CONTROLS);
    1.11 -        vm_entry_value |= VM_ENTRY_IA32E_MODE;
    1.12 -        __vmwrite(VM_ENTRY_CONTROLS, vm_entry_value);
    1.13 -    }
    1.14 -#endif
    1.15 -
    1.16      vmcb->cr4 = c->cr4 | SVM_CR4_HOST_MASK;
    1.17      v->arch.hvm_svm.cpu_shadow_cr4 = c->cr4;
    1.18