File 18548-hvm-gpxe-rom.patch of Package xen
# HG changeset patch
# User Keir Fraser <keir.fraser@citrix.com>
# Date 1222360889 -3600
# Node ID b642e39d96cf62731c37d29fdf2dea9fe512e3e9
# Parent e1507b441be45d6d1cac25a196b53beff857a083
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>
Index: xen-3.3.1-testing/xen/arch/x86/hvm/hvm.c
===================================================================
--- xen-3.3.1-testing.orig/xen/arch/x86/hvm/hvm.c
+++ xen-3.3.1-testing/xen/arch/x86/hvm/hvm.c
@@ -1504,15 +1504,7 @@ static enum hvm_copy_result __hvm_copy(
if ( flags & HVMCOPY_to_guest )
{
- if ( p2mt == p2m_ram_ro )
- {
- static unsigned long lastpage;
- if ( xchg(&lastpage, gfn) != gfn )
- gdprintk(XENLOG_DEBUG, "guest attempted write to read-only"
- " memory page. gfn=%#lx, mfn=%#lx\n",
- gfn, mfn);
- }
- else
+ if ( p2mt != p2m_ram_ro )
{
memcpy(p, buf, count);
paging_mark_dirty(curr->domain, mfn);