All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][HVM][SVM] Save/Restore: Remove commented out code.
@ 2007-02-26 17:08 Petersson, Mats
  0 siblings, 0 replies; only message in thread
From: Petersson, Mats @ 2007-02-26 17:08 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 183 bytes --]

Code not needed by SVM as the "VM_ENTRY_CONTROLS" register doesn't
exist.

Signed off: Mats Petersson (mats.petersson@amd.com)

Based on Unstable Changeset 14118. 

--
Mats 

[-- Attachment #2: patch.no_vmentry --]
[-- Type: application/octet-stream, Size: 637 bytes --]

diff -r 2d3ceb082114 xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c	Mon Feb 26 09:13:50 2007 +0000
+++ b/xen/arch/x86/hvm/svm/svm.c	Fri Mar 02 13:29:28 2007 +0000
@@ -496,15 +496,6 @@ int svm_vmcb_restore(struct vcpu *v, str
     }
 
  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;
     

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-26 17:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-26 17:08 [PATCH][HVM][SVM] Save/Restore: Remove commented out code Petersson, Mats

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.