[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)
This commit is contained in:
Tim Deegan committed 2007-02-26 17:20:36 +00:00
1 parent 9f60d76316
commit b3c8af5814
1 file changed
-9
-9
View File
@@ -502,15 +502,6 @@ int svm_vmcb_restore(struct vcpu *v, struct hvm_hw_cpu *c)
}
skip_cr3:
#if defined(__x86_64__) && 0
if (vmx_long_mode_enabled(v)) {
unsigned long vm_entry_value;
vm_entry_value = __vmread(VM_ENTRY_CONTROLS);
vm_entry_value |= VM_ENTRY_IA32E_MODE;
__vmwrite(VM_ENTRY_CONTROLS, vm_entry_value);
}
#endif
vmcb->cr4 = c->cr4 | SVM_CR4_HOST_MASK;
v->arch.hvm_svm.cpu_shadow_cr4 = c->cr4;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.