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

[Xen-devel] pfn to mfn translation


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: "Bryan D. Payne" <bryan@xxxxxxxxxxxx>
  • Date: Tue, 3 May 2011 15:02:19 -0600
  • Delivery-date: Tue, 03 May 2011 14:03:47 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=K5MOn0KXs2DRmm6av/P+Yp4z4MtsoSNWVY899at0JqGQK7Gl909tibVz9ggsfdV0xL G+XT7wEG8v9qETqng5qJ7+UUDaKPdtJvLwbHrCRiA19pZ8O9EHN0/a/QgizIsFl3vSza bqjn0EDEmSw4t9tBxBZNzLGHQMUzu2p85W53Y=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Is there a recommended way to convert a guest pfn to an mfn from
within dom0?  I'd like the mfn for calling xc_map_foreign_range in
libxc.

Up until now I've been using code that is similar to what is in
tools/libxc/xc_linux_save.c.  However, my version of this code is now
breaking when used with Xen 4.1 (it worked with Xen 4.0.1).  So I'm
wondering if some of the internal p2m tables have changed.  In the
end, it seems like there should be a libxc function that performs this
translation rather than me needing to duplicate code and risk failures
such as what I'm seeing.  However, I don't see any p2m api calls in
xenctrl.h.

Thanks,
-bryan

_______________________________________________
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®.