xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* HYBRID: max_mapped_pfn in ept_set_entry()
@ 2012-03-29  0:08 Mukesh Rathor
  2012-03-29  9:29 ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: Mukesh Rathor @ 2012-03-29  0:08 UTC (permalink / raw)
  To: Xen-devel@lists.xensource.com, Keir Fraser, Ian Campbell,
	stefano.stabellini@eu.citrix.com, Tim.Deegan

Hi guys,

I've a question. For my hybrid (PV in HVM) dom0 I do 1-1 mapping for 
mmio pages.  So, gpfn 000fbf23 maps to 000fbf23 in EPT. The
max_mapped_pfn is not adjusted in ept_set_entry() because the mfn is
not valid: 

    if ( mfn_valid(mfn_x(mfn)) &&
         (gfn + (1UL << order) - 1 > p2m->max_mapped_pfn) )
         p2m->max_mapped_pfn = gfn + (1UL << order) - 1;

As a result, clear_mmio_p2m_entry() fails because ept_get_entry() fails
because:
    if ( gfn > p2m->max_mapped_pfn )
            goto out;


I'm trying to figure the right thing to do here. Should I just change
the "gfn > p2m->max_mapped_pfn" in ept_get_entry() to check for
INVALID_MFN? I really shouldn't be adjusting max_mapped_pfn for MMIO
pages, right?

thanks,
Mukesh

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-29  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-29  0:08 HYBRID: max_mapped_pfn in ept_set_entry() Mukesh Rathor
2012-03-29  9:29 ` Ian Campbell
2012-03-29  9:56   ` Tim Deegan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).