All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for 4.6] x86/hvm.c: fix regression in guest destruction
@ 2015-07-29 16:39 Ravi Sahita
  2015-07-29 16:44 ` Andrew Cooper
  0 siblings, 1 reply; 9+ messages in thread
From: Ravi Sahita @ 2015-07-29 16:39 UTC (permalink / raw)
  To: xen-devel
  Cc: Ravi Sahita, wei.liu2, george.dunlap, andrew.cooper3, tim,
	edmund.h.white, JBeulich

As reported by Wei Lu on July 27 2015

Signed-off-by: Ravi Sahita <ravi.sahita@intel.com>
---
 xen/arch/x86/hvm/hvm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
index ec1d797..6a56216 100644
--- a/xen/arch/x86/hvm/hvm.c
+++ b/xen/arch/x86/hvm/hvm.c
@@ -2463,7 +2463,9 @@ void hvm_vcpu_destroy(struct vcpu *v)
 {
     hvm_all_ioreq_servers_remove_vcpu(v->domain, v);
 
-    altp2m_vcpu_destroy(v);
+    if ( hvm_altp2m_supported() )
+        altp2m_vcpu_destroy(v);
+
     nestedhvm_vcpu_destroy(v);
 
     free_compat_arg_xlat(v);
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-07-30 10:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-29 16:39 [PATCH for 4.6] x86/hvm.c: fix regression in guest destruction Ravi Sahita
2015-07-29 16:44 ` Andrew Cooper
2015-07-29 16:51   ` Wei Liu
2015-07-30  9:21   ` Ian Campbell
2015-07-30  9:32     ` Ian Campbell
2015-07-30  9:38       ` George Dunlap
2015-07-30  9:50         ` Ian Campbell
2015-07-30  9:55       ` Andrew Cooper
2015-07-30 10:08         ` Ian Campbell

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.