* [PATCH] KVM: VMX: Disable VMX when system shutdown
@ 2009-04-29 3:09 Sheng Yang
2009-04-30 12:30 ` Avi Kivity
0 siblings, 1 reply; 3+ messages in thread
From: Sheng Yang @ 2009-04-29 3:09 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm, Sheng Yang, Joseph Cihula
Intel TXT(Trusted Execution Technology) required VMX off for all cpu to work
when system shutdown.
CC: Joseph Cihula <joseph.cihula@intel.com>
Signed-off-by: Sheng Yang <sheng@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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] KVM: VMX: Disable VMX when system shutdown
2009-04-29 3:09 [PATCH] KVM: VMX: Disable VMX when system shutdown Sheng Yang
@ 2009-04-30 12:30 ` Avi Kivity
2009-04-30 13:47 ` Cihula, Joseph
0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2009-04-30 12:30 UTC (permalink / raw)
To: Sheng Yang; +Cc: kvm, Joseph Cihula
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] KVM: VMX: Disable VMX when system shutdown
2009-04-30 12:30 ` Avi Kivity
@ 2009-04-30 13:47 ` Cihula, Joseph
0 siblings, 0 replies; 3+ messages in thread
From: Cihula, Joseph @ 2009-04-30 13:47 UTC (permalink / raw)
To: Avi Kivity, Sheng Yang; +Cc: kvm
> From: Avi Kivity [mailto:avi@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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-30 13:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-29 3:09 [PATCH] KVM: VMX: Disable VMX when system shutdown Sheng Yang
2009-04-30 12:30 ` Avi Kivity
2009-04-30 13:47 ` Cihula, Joseph
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.