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>
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);