ia64/xen-unstable

changeset 10294:1f619b6adbc6

[HVM] Fix a problem when destroying a Windows guest.
From: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Tom Woller <thomas.woller@amd.com>
author kfraser@dhcp93.uk.xensource.com
date Fri Jun 02 09:36:28 2006 +0100 (2006-06-02)
parents 4122e88b6c75
children b198bbfeec10
files xen/arch/x86/shadow.c
line diff
     1.1 --- a/xen/arch/x86/shadow.c	Fri Jun 02 09:31:35 2006 +0100
     1.2 +++ b/xen/arch/x86/shadow.c	Fri Jun 02 09:36:28 2006 +0100
     1.3 @@ -3481,15 +3481,16 @@ static void shadow_set_l2e_64(unsigned l
     1.4  
     1.5      __shadow_get_l3e(v, va, &sl3e);
     1.6      if (!(l3e_get_flags(sl3e) & _PAGE_PRESENT)) {
     1.7 -         if (create_l2_shadow) {
     1.8 +        if (create_l2_shadow) {
     1.9              perfc_incrc(shadow_set_l2e_force_map);
    1.10              shadow_map_into_current(v, va, PAGING_L2, PAGING_L3);
    1.11              __shadow_get_l3e(v, va, &sl3e);
    1.12          } else {
    1.13              printk("For non HVM shadow, create_l1_shadow:%d\n", create_l2_shadow);
    1.14          }
    1.15 -         shadow_update_min_max(l4e_get_pfn(sl4e), l3_table_offset(va));
    1.16 -
    1.17 +
    1.18 +        if ( v->domain->arch.ops->guest_paging_levels == PAGING_L4 )
    1.19 +            shadow_update_min_max(l4e_get_pfn(sl4e), l3_table_offset(va));
    1.20      }
    1.21  
    1.22      if ( put_ref_check ) {