ia64/xen-unstable

changeset 4656:7b4421af1180

bitkeeper revision 1.1382 (426d084fj_L9HqLwTZs1okz5LbnXcg)

Fix writable pagetables for uniproc domains such that we don't use the
emulation path every time.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Apr 25 15:10:07 2005 +0000 (2005-04-25)
parents ccc4ee412321
children 9d8f47890534
files xen/arch/x86/mm.c
line diff
     1.1 --- a/xen/arch/x86/mm.c	Mon Apr 25 10:58:04 2005 +0000
     1.2 +++ b/xen/arch/x86/mm.c	Mon Apr 25 15:10:07 2005 +0000
     1.3 @@ -2802,7 +2802,11 @@ int ptwr_do_page_fault(struct domain *d,
     1.4       * update to ensure we make progress.
     1.5       */
     1.6      if ( d->arch.ptwr[which].prev_nr_updates == 0 )
     1.7 +    {
     1.8 +        /* Ensure that we don't get stuck in an emulation-only rut. */
     1.9 +        d->arch.ptwr[which].prev_nr_updates = 1;
    1.10          goto emulate;
    1.11 +    }
    1.12  
    1.13      d->arch.ptwr[which].l1va   = addr | 1;
    1.14      d->arch.ptwr[which].l2_idx = l2_idx;