aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-05-02 09:29:36 +0200
committerJan Beulich <jbeulich@suse.com>2013-05-02 09:29:36 +0200
commit9626d1c1fafe2da5af6e59478c9e9db6d03144df (patch)
tree0ef0b648d1cfdba002f92df21619bf689b1262a2
parent5fb11a07023959b6c91f7f37124699681011c03a (diff)
downloadxen-9626d1c1fafe2da5af6e59478c9e9db6d03144df.tar.gz
xen-9626d1c1fafe2da5af6e59478c9e9db6d03144df.tar.bz2
xen-9626d1c1fafe2da5af6e59478c9e9db6d03144df.zip
x86: call unmap_vcpu_info() regardless of guest type
This fixes a regression from 63753b3e ("x86: allow VCPUOP_register_vcpu_info to work again on PVHVM guests"). Signed-off-by: Jan Beulich <jbeulich@suse.com> Tested-by: Sander Eikelenboom <linux@eikelenboom.it>
-rw-r--r--xen/arch/x86/domain.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c
index 14b6d13d88..3e09f58279 100644
--- a/xen/arch/x86/domain.c
+++ b/xen/arch/x86/domain.c
@@ -2013,8 +2013,12 @@ int domain_relinquish_resources(struct domain *d)
/* Drop the in-use references to page-table bases. */
for_each_vcpu ( d, v )
+ {
vcpu_destroy_pagetables(v);
+ unmap_vcpu_info(v);
+ }
+
if ( !is_hvm_domain(d) )
{
for_each_vcpu ( d, v )
@@ -2025,8 +2029,6 @@ int domain_relinquish_resources(struct domain *d)
* mappings.
*/
destroy_gdt(v);
-
- unmap_vcpu_info(v);
}
if ( d->arch.pv_domain.pirq_eoi_map != NULL )