Re: [Xen-devel] Mapping HVM guest memory from Dom0

2018-10-11 Thread Andrew Cooper
[spmichaels.w...@gmail.com] Sent: 11 October 2018 21:43 To: Tamas Lengyel Cc: Andrew Cooper; xen-devel@lists.xenproject.org Subject: Re: [Xen-devel] Mapping HVM guest memory from Dom0 Thanks very much to both of you for the info! After Andrew's post today I was able to write some code myself

Re: [Xen-devel] Mapping HVM guest memory from Dom0

2018-10-11 Thread Spencer Michaels
Thanks very much to both of you for the info! After Andrew's post today I was able to write some code myself to walk the page tables and get it to work correctly, and xc_translate_foreign_address is exactly what I want as well. I had been digging through the Xen codebase for a while looking for

Re: [Xen-devel] Mapping HVM guest memory from Dom0

2018-10-11 Thread Tamas K Lengyel
On Wed, Oct 10, 2018 at 5:10 PM Andrew Cooper wrote: > > On 10/10/18 23:08, Spencer Michaels wrote: > > Interesting … sorry, I had read the docs a while ago and my > > interpretation at the time was that it didn't. I can try to get libvmi > > working, but nonetheless I do want to figure out how

Re: [Xen-devel] Mapping HVM guest memory from Dom0

2018-10-10 Thread Andrew Cooper
On 10/10/18 23:08, Spencer Michaels wrote: > Interesting … sorry, I had read the docs a while ago and my > interpretation at the time was that it didn't. I can try to get libvmi > working, but nonetheless I do want to figure out how to this with the > Xen API itself if at all possible, so I'd

Re: [Xen-devel] Mapping HVM guest memory from Dom0

2018-10-10 Thread Spencer Michaels
Interesting … sorry, I had read the docs a while ago and my interpretation at the time was that it didn't. I can try to get libvmi working, but nonetheless I do want to figure out how to this with the Xen API itself if at all possible, so I'd appreciate any help in doing so. I've looked through

Re: [Xen-devel] Mapping HVM guest memory from Dom0

2018-10-10 Thread Tamas K Lengyel
On Wed, Oct 10, 2018 at 8:47 AM Spencer Michaels wrote: > > I have, but libvmi doesn't fit my use case — it only works with Windows and > Linux HVM guests. I will need my application to work with PV and HVM guests > that are neither Windows nor Linux. LibVMI works with PV guests and you can

Re: [Xen-devel] Mapping HVM guest memory from Dom0

2018-10-10 Thread Spencer Michaels
I have, but libvmi doesn't fit my use case — it only works with Windows and Linux HVM guests. I will need my application to work with PV and HVM guests that are neither Windows nor Linux. libvmi's implementation of this, `xen_get_memory()` in `libvmi/driver/xen/xen.c`, seems to assume that MFN =

Re: [Xen-devel] Mapping HVM guest memory from Dom0

2018-10-10 Thread Andrew Cooper
On 09/10/18 20:34, Spencer Michaels wrote: > Hello, > > I'm developing an application that runs in Dom0 and needs to read > memory from a guest given a guest address (for instance, reading RIP > from the guest CPU context and then reading the current instruction). > I'm using

[Xen-devel] Mapping HVM guest memory from Dom0

2018-10-09 Thread Spencer Michaels
Hello, I'm developing an application that runs in Dom0 and needs to read memory from a guest given a guest address (for instance, reading RIP from the guest CPU context and then reading the current instruction). I'm using xenforeignmemory_map() to map the guest memory, but this function takes the