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

Re: [Xen-devel] [PATCH][libxc] xc_translate_foreign_address with additional parameter


  • To: Tomas Kouba <tomas@xxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxxxxxxxx>
  • Date: Fri, 05 Jan 2007 14:36:10 +0000
  • Delivery-date: Fri, 05 Jan 2007 06:35:55 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Accw1teAFeVlsJzKEduFdAAX8io7RQ==
  • Thread-topic: [Xen-devel] [PATCH][libxc] xc_translate_foreign_address with additional parameter



On 5/1/07 14:19, "Tomas Kouba" <tomas@xxxxxxxx> wrote:

> I think it would be handy(*) to have additional function
> xc_translate_foreign_address_cr3 that does the same as
> xc_translate_foreign_address but with explicit cr3 register.
> The actual xc_translate_foreign_address takes its cr3 from
> vcpu context.

Even better would be to accept cr3, cr4 and efer msr. That's sufficient to
work out the execution mode (non-pae, pae, 64-bit). Or the caller could work
out the mode and pass it in as an enumeration value (perhaps with a fallback
default of 'whatever is most likely').

 -- Keir


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