direct-io.hg

changeset 13343:ded167dc4dc9

[XEN] Consistent assumption that PTEs contain MFNs in both ptwr
page-fault handler and ptwr emulation handler.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Jan 12 10:13:25 2007 +0000 (2007-01-12)
parents 95a0b456255a
children 7c5c72a0283f
files xen/arch/x86/mm.c
line diff
     1.1 --- a/xen/arch/x86/mm.c	Fri Jan 12 10:10:28 2007 +0000
     1.2 +++ b/xen/arch/x86/mm.c	Fri Jan 12 10:13:25 2007 +0000
     1.3 @@ -3182,7 +3182,7 @@ static int ptwr_emulated_update(
     1.4      unsigned int do_cmpxchg,
     1.5      struct ptwr_emulate_ctxt *ptwr_ctxt)
     1.6  {
     1.7 -    unsigned long gmfn, mfn;
     1.8 +    unsigned long mfn;
     1.9      struct page_info *page;
    1.10      l1_pgentry_t pte, ol1e, nl1e, *pl1e;
    1.11      struct vcpu *v = current;
    1.12 @@ -3222,8 +3222,7 @@ static int ptwr_emulated_update(
    1.13      }
    1.14  
    1.15      pte  = ptwr_ctxt->pte;
    1.16 -    gmfn = l1e_get_pfn(pte);
    1.17 -    mfn  = gmfn_to_mfn(d, gmfn);
    1.18 +    mfn  = l1e_get_pfn(pte);
    1.19      page = mfn_to_page(mfn);
    1.20  
    1.21      /* We are looking only for read-only mappings of p.t. pages. */