[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Does paging_gva_to_gfn() convert to mfn for PV guests?



At 11:23 -0400 on 13 May (1210677791), Mike Sun wrote:
> Hmm... I'm not sure if I'm understanding clearly what you're saying.
> If I use this function to translate virtual addresses from dom0 (a PV
> guest without shadow paging). will I get an mfn or a pfn?

No. :)  The code behind that function relies on data structures which are
only maintained if paging assistance (shadow or HAP) is turned on.
 
> My expectation would be that I get an mfn since PV guests without any
> sort of shadow paging have virt --> machine translations installed in
> the page tables and do not actually use the p2m table for translation.
>  Is this correct?

In the case of PV guests with shadow pagetables turned on (typically
this is only while live migration is in progress), then yes, you should
get an MFN.

Cheers,

Tim

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.