Re: [PATCH] KVM: VMX: Disable VMX when system shutdown

2009-04-30 Thread Avi Kivity

Sheng Yang wrote:

Intel TXT(Trusted Execution Technology) required VMX off for all cpu to work
when system shutdown.
  


Applied, thanks.

Is this needed for 2.6.30 and -stable?  That is, is the code that 
enables TXT in 2.6.30 and below or in the BIOS?  Or is it new code not 
yet merged?




--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: [PATCH] KVM: VMX: Disable VMX when system shutdown

2009-04-30 Thread Cihula, Joseph
 From: Avi Kivity [mailto:a...@redhat.com]
 Sent: Thursday, April 30, 2009 5:31 AM

 Sheng Yang wrote:
  Intel TXT(Trusted Execution Technology) required VMX off for all cpu to work
  when system shutdown.
 

 Applied, thanks.

 Is this needed for 2.6.30 and -stable?  That is, is the code that
 enables TXT in 2.6.30 and below or in the BIOS?  Or is it new code not
 yet merged?

The TXT code will not get merged in 2.6.30, though it will hopefully make it 
soon thereafter.  So it would be fine to put it in 2.6.31.

Joe


[PATCH] KVM: VMX: Disable VMX when system shutdown

2009-04-28 Thread Sheng Yang
Intel TXT(Trusted Execution Technology) required VMX off for all cpu to work
when system shutdown.

CC: Joseph Cihula joseph.cih...@intel.com
Signed-off-by: Sheng Yang sh...@linux.intel.com
---
 virt/kvm/kvm_main.c |   18 +-
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 3265566..2b73e19 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -2391,15 +2391,15 @@ EXPORT_SYMBOL_GPL(kvm_handle_fault_on_reboot);
 static int kvm_reboot(struct notifier_block *notifier, unsigned long val,
  void *v)
 {
-   if (val == SYS_RESTART) {
-   /*
-* Some (well, at least mine) BIOSes hang on reboot if
-* in vmx root mode.
-*/
-   printk(KERN_INFO kvm: exiting hardware virtualization\n);
-   kvm_rebooting = true;
-   on_each_cpu(hardware_disable, NULL, 1);
-   }
+   /*
+* Some (well, at least mine) BIOSes hang on reboot if
+* in vmx root mode.
+*
+* And Intel TXT required VMX off for all cpu when system shutdown.
+*/
+   printk(KERN_INFO kvm: exiting hardware virtualization\n);
+   kvm_rebooting = true;
+   on_each_cpu(hardware_disable, NULL, 1);
return NOTIFY_OK;
 }
 
-- 
1.5.4.5

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html