ia64/xen-unstable

changeset 11206:28e3132b9f93

Fix live migration w/ shadow2.

Signed-off-by: Steven Hand <steven@xensource.com>
author Steven Hand <steven@xensource.com>
date Thu Aug 17 20:30:05 2006 +0100 (2006-08-17)
parents b3bfff8b1c10
children 078bfd250677
files xen/arch/x86/traps.c
line diff
     1.1 --- a/xen/arch/x86/traps.c	Thu Aug 17 19:24:20 2006 +0100
     1.2 +++ b/xen/arch/x86/traps.c	Thu Aug 17 20:30:05 2006 +0100
     1.3 @@ -890,8 +890,9 @@ static int fixup_page_fault(unsigned lon
     1.4  
     1.5      if ( VM_ASSIST(d, VMASST_TYPE_writable_pagetables) &&
     1.6           guest_kernel_mode(v, regs) &&
     1.7 -         ((regs->error_code & (PGERR_write_access|PGERR_page_present)) ==
     1.8 -          (PGERR_write_access|PGERR_page_present)) &&
     1.9 +         /* Do not check if access-protection fault since the page may 
    1.10 +            legitimately be not present in shadow page tables */
    1.11 +         ((regs->error_code & PGERR_write_access) == PGERR_write_access) &&
    1.12           ptwr_do_page_fault(d, addr, regs) )
    1.13          return EXCRET_fault_fixed;
    1.14