* Mapping HVM memory to dom0 address space
@ 2013-05-21 12:42 Marek Marczykowski
2013-05-21 13:56 ` Tim Deegan
0 siblings, 1 reply; 2+ messages in thread
From: Marek Marczykowski @ 2013-05-21 12:42 UTC (permalink / raw)
To: xen-devel; +Cc: Joanna Rutkowska
[-- Attachment #1.1: Type: text/plain, Size: 531 bytes --]
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?
--
Best Regards,
Marek Marczykowski
Invisible Things Lab
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 555 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Mapping HVM memory to dom0 address space
2013-05-21 12:42 Mapping HVM memory to dom0 address space Marek Marczykowski
@ 2013-05-21 13:56 ` Tim Deegan
0 siblings, 0 replies; 2+ messages in thread
From: Tim Deegan @ 2013-05-21 13:56 UTC (permalink / raw)
To: Marek Marczykowski; +Cc: Joanna Rutkowska, xen-devel
At 14:42 +0200 on 21 May (1369147374), Marek Marczykowski wrote:
> 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).
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-21 13:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-21 12:42 Mapping HVM memory to dom0 address space Marek Marczykowski
2013-05-21 13:56 ` Tim Deegan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.