ia64/xen-unstable

changeset 18551:b642e39d96cf

x86, hvm: Remove warning on emulated write to read-only page.

The bugs in this area seem to have been fixed now, and gPXE makes
legitimate best-effort attempts to modify its embedded static data.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Sep 25 17:41:29 2008 +0100 (2008-09-25)
parents e1507b441be4
children 5274aa966231
files xen/arch/x86/hvm/hvm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/hvm.c	Thu Sep 25 14:37:52 2008 +0100
     1.2 +++ b/xen/arch/x86/hvm/hvm.c	Thu Sep 25 17:41:29 2008 +0100
     1.3 @@ -1504,15 +1504,7 @@ static enum hvm_copy_result __hvm_copy(
     1.4  
     1.5          if ( flags & HVMCOPY_to_guest )
     1.6          {
     1.7 -            if ( p2mt == p2m_ram_ro )
     1.8 -            {
     1.9 -                static unsigned long lastpage;
    1.10 -                if ( xchg(&lastpage, gfn) != gfn )
    1.11 -                    gdprintk(XENLOG_DEBUG, "guest attempted write to read-only"
    1.12 -                             " memory page. gfn=%#lx, mfn=%#lx\n",
    1.13 -                             gfn, mfn);
    1.14 -            }
    1.15 -            else
    1.16 +            if ( p2mt != p2m_ram_ro )
    1.17              {
    1.18                  memcpy(p, buf, count);
    1.19                  paging_mark_dirty(curr->domain, mfn);