[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Unmap io shared page only if it is properly initialized


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Li, Xin B" <xin.b.li@xxxxxxxxx>
  • Date: Thu, 15 Dec 2005 16:55:06 +0800
  • Delivery-date: Thu, 15 Dec 2005 08:57:02 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcYBVT6f9TNSnuZOR3GVW4BB9JWT3Q==
  • Thread-topic: [PATCH] Unmap io shared page only if it is properly initialized

Unmap io shared page only if it is properly initialized.

Signed-off-by: Xin Li <xin.b.li@xxxxxxxxx>


diff -r dc8122d90670 xen/arch/x86/vmx.c
--- a/xen/arch/x86/vmx.c    Wed Dec 14 18:47:16 2005
+++ b/xen/arch/x86/vmx.c    Thu Dec 15 16:32:00 2005
@@ -102,7 +102,8 @@
     if (v->vcpu_id == 0) {
         /* unmap IO shared page */
         struct domain *d = v->domain;
-        unmap_domain_page((void *)d->arch.vmx_platform.shared_page_va);
+        if ( d->arch.vmx_platform.shared_page_va )
+            unmap_domain_page((void
*)d->arch.vmx_platform.shared_page_va);
     }

     destroy_vmcs(&v->arch.arch_vmx);

Attachment: fix_unmap_io_shared_page.patch
Description: fix_unmap_io_shared_page.patch

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.