mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
[XEN] 32on64 fix compat page table shutdown
When releasing the guest page table, do not clobber the xen private L4 page pointer which is managed by setup/release_compat_l4. Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
This commit is contained in:
1 parent
f1efb233c1
commit
c7cdf6739f
1 file changed
+7
-1
@@ -1412,7 +1412,13 @@ static void vcpu_destroy_pagetables(struct vcpu *v)
|
||||
put_page_and_type(mfn_to_page(pfn));
|
||||
}
|
||||
|
||||
v->arch.guest_table = pagetable_null();
|
||||
if ( is_hvm_vcpu(v) )
|
||||
v->arch.guest_table = pagetable_null();
|
||||
else
|
||||
l4e_write(
|
||||
(l4_pgentry_t *) __va(pagetable_get_paddr(v->arch.guest_table)),
|
||||
l4e_empty());
|
||||
|
||||
v->arch.cr3 = 0;
|
||||
return;
|
||||
}
|
||||
|
||||