Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: Changelog

[xen-unstable] x86: restore vcpu_destroy_pagetables() call on HVM domain teardown.

 

 

Xen changelog RSS feed   Index | Next | Previous | View Threaded


patchbot at xen

Apr 20, 2012, 7:00 PM

Post #1 of 1 (100 views)
Permalink
[xen-unstable] x86: restore vcpu_destroy_pagetables() call on HVM domain teardown.

# HG changeset patch
# User Tim Deegan <tim [at] xen>
# Date 1334911746 -3600
# Node ID 274e5accd62db09a7f703400c8720f7fdd95551a
# Parent cf2de273869f06e907fb28127682284e8670b1cc
x86: restore vcpu_destroy_pagetables() call on HVM domain teardown.

HVM vcpus that are using shadow pagetables have valid guest_table fields,
which need to be tidied up on domain teardown.

Signed-off-by: Tim Deegan <tim [at] xen>
Acked-by: Jan Beulich <jbeulich [at] suse>
Committed-by: Tim Deegan <tim [at] xen>
---


diff -r cf2de273869f -r 274e5accd62d xen/arch/x86/domain.c
--- a/xen/arch/x86/domain.c Fri Apr 20 09:43:46 2012 +0100
+++ b/xen/arch/x86/domain.c Fri Apr 20 09:49:06 2012 +0100
@@ -2105,13 +2105,14 @@ int domain_relinquish_resources(struct d
/* Tear down paging-assistance stuff. */
paging_teardown(d);

+ /* Drop the in-use references to page-table bases. */
+ for_each_vcpu ( d, v )
+ vcpu_destroy_pagetables(v);
+
if ( !is_hvm_domain(d) )
{
for_each_vcpu ( d, v )
{
- /* Drop the in-use references to page-table bases. */
- vcpu_destroy_pagetables(v);
-
/*
* Relinquish GDT mappings. No need for explicit unmapping of
* the LDT as it automatically gets squashed with the guest

_______________________________________________
Xen-changelog mailing list
Xen-changelog [at] lists
http://lists.xensource.com/xen-changelog

Xen changelog RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.