WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.2-testing] vmx: msr_bitmap/msr_area/msr_host_area

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.2-testing] vmx: msr_bitmap/msr_area/msr_host_area must be freed when a vcpu is destroyed
From: "Xen patchbot-3.2-testing" <patchbot-3.2-testing@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 19 Jun 2008 10:00:30 -0700
Delivery-date: Thu, 19 Jun 2008 10:00:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1213870557 -3600
# Node ID 58bf50a2c75467aaf3d1d789f28a4d070f69905e
# Parent  3d113bfab7d2ffa52fb6891b3346f0af9859979f
vmx: msr_bitmap/msr_area/msr_host_area must be freed when a vcpu is destroyed

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   17879:3da148fb7d9b21afd6a8c023a8e787aec86d1621
xen-unstable date:        Thu Jun 19 11:09:10 2008 +0100
---
 xen/arch/x86/hvm/vmx/vmcs.c |    7 +++++++
 1 files changed, 7 insertions(+)

diff -r 3d113bfab7d2 -r 58bf50a2c754 xen/arch/x86/hvm/vmx/vmcs.c
--- a/xen/arch/x86/hvm/vmx/vmcs.c       Tue Jun 17 11:16:14 2008 +0100
+++ b/xen/arch/x86/hvm/vmx/vmcs.c       Thu Jun 19 11:15:57 2008 +0100
@@ -748,6 +748,13 @@ void vmx_destroy_vmcs(struct vcpu *v)
 
     vmx_free_vmcs(arch_vmx->vmcs);
     arch_vmx->vmcs = NULL;
+
+    free_xenheap_page(v->arch.hvm_vmx.host_msr_area);
+    v->arch.hvm_vmx.host_msr_area = NULL;
+    free_xenheap_page(v->arch.hvm_vmx.msr_area);
+    v->arch.hvm_vmx.msr_area = NULL;
+    free_xenheap_page(v->arch.hvm_vmx.msr_bitmap);
+    v->arch.hvm_vmx.msr_bitmap = NULL;
 }
 
 void vm_launch_fail(unsigned long eflags)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.2-testing] vmx: msr_bitmap/msr_area/msr_host_area must be freed when a vcpu is destroyed, Xen patchbot-3.2-testing <=