Skip to contentSkip to conversation

Mapping HVM memory to dom0 address space

DISCUSSION Marek Marczykowski 2 participants 2 messages May 21, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

Is it possible to map domU pages based on PFNs in that domain? Or is it possible to get MFNs from inside of HVM?
For PV guests I can MFNs from inside of guest, then pass it to xc_map_foreign_pages in dom0, how achieve the same for HVM? I have PV drivers inside of that domain if that helps.

It isn't possible directly, how is most efficient way to translate a bunch of PFNs to MFNs for a given domain? xc_get_pfn_list, or there is something better?

Signature · 3 lines
Best Regards,
Marek Marczykowski
Invisible Things Lab

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 6 lines · Marek Marczykowski

Hi,

Is it possible to map domU pages based on PFNs in that domain? Or is it possible to get MFNs from inside of HVM?
For PV guests I can MFNs from inside of guest, then pass it to xc_map_foreign_pages in dom0, how achieve the same for HVM?

For HVM domains, all the mapping functions take PFNs, so I think it should Just Work. (Memory operations on both PV and HVM memory use 'GFNs', i.e. the same namespace that the guest puts in its own pagetables).

Quoted 2 lines

It isn't possible directly, how is most efficient way to translate a bunch of PFNs to MFNs for a given domain? xc_get_pfn_list, or there is something better?

For HVM domains, I don't think it's possible; for PV guests you need the assitance of the guest itself. But because all the mapping APIs &c take GFNs, hopefully it's not necessary.

Cheers,

Tim.