# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 6255f38623b3270ab5a8e57003e485737328e1a4
# Parent c5fe7d5c4c818ae065d5804c6aa347aa4ec6816f
[HVM] Fix a problem when destroying a Windows guest.
From: Jun Nakajima <jun.nakajima@xxxxxxxxx>
Signed-off-by: Tom Woller <thomas.woller@xxxxxxx>
xen-unstable changeset: 10256:1f619b6adbc6ab6ce566b8661b6c2bbf355f502a
xen-unstable date: Fri Jun 2 09:36:28 2006 +0100
---
xen/arch/x86/shadow.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff -r c5fe7d5c4c81 -r 6255f38623b3 xen/arch/x86/shadow.c
--- a/xen/arch/x86/shadow.c Thu Jun 01 19:17:22 2006 +0100
+++ b/xen/arch/x86/shadow.c Fri Jun 02 09:38:34 2006 +0100
@@ -3406,15 +3406,16 @@ static void shadow_set_l2e_64(unsigned l
__shadow_get_l3e(v, va, &sl3e);
if (!(l3e_get_flags(sl3e) & _PAGE_PRESENT)) {
- if (create_l2_shadow) {
+ if (create_l2_shadow) {
perfc_incrc(shadow_set_l2e_force_map);
shadow_map_into_current(v, va, PAGING_L2, PAGING_L3);
__shadow_get_l3e(v, va, &sl3e);
} else {
printk("For non HVM shadow, create_l1_shadow:%d\n",
create_l2_shadow);
}
- shadow_update_min_max(l4e_get_pfn(sl4e), l3_table_offset(va));
-
+
+ if ( v->domain->arch.ops->guest_paging_levels == PAGING_L4 )
+ shadow_update_min_max(l4e_get_pfn(sl4e), l3_table_offset(va));
}
if ( put_ref_check ) {
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|