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@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Committed-by: Tim Deegan <tim@xen.org>
This commit is contained in:
Tim Deegan committed 2012-04-20 09:49:06 +01:00
1 parent f5a7804a18
commit abbcefcd9f
1 file changed
+4 -3
+4 -3
View File
@@ -2105,13 +2105,14 @@ int domain_relinquish_resources(struct domain *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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.