All of lore.kernel.org
 help / color / mirror / Atom feed
* Remapping memory in a HVM DomU from one pfn to another?
@ 2008-06-09 12:52 James Harper
  2008-06-09 13:11 ` Keir Fraser
  0 siblings, 1 reply; 11+ messages in thread
From: James Harper @ 2008-06-09 12:52 UTC (permalink / raw)
  To: xen-devel

In a Windows DomU, I would like to do re-map a page of physical memory
that I have allocated from normal memory to somewhere in PCI memory
space.

I think I need to do the following:

1. Allocate a page of memory from the 'non-paged pool'
2. Get the pfn of the memory I allocated (src pfn), and the pfn of where
I want to remap the memory to (dst pfn)
3. Get the mfn(?) of the memory currently mapped to the src pfn
4. Tell Xen to remap the mfn to the dst pfn

Can this be done? Any tips on the calls I need to make to do it? From a
quick look through the include files it kind of looks like I could use
XENMEM_translate_gpfn_list to get the mfn from the pfn, but I don't know
if that does what I want to do and I don't know where to go from
there... any suggestions?

Thanks

James

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

end of thread, other threads:[~2008-06-13 13:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 12:52 Remapping memory in a HVM DomU from one pfn to another? James Harper
2008-06-09 13:11 ` Keir Fraser
2008-06-10  7:18   ` James Harper
2008-06-10 12:02   ` James Harper
2008-06-10 12:15     ` Keir Fraser
2008-06-10 12:32       ` James Harper
2008-06-10 12:44         ` Keir Fraser
2008-06-10 12:36     ` Ben Guthro
2008-06-13 12:53     ` Keir Fraser
2008-06-13 12:58       ` James Harper
2008-06-13 13:05         ` Keir Fraser

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.