[Xen-devel] More questions about Xen memory layout/usage, access to guest memory

2019-08-16 Thread Johnson, Ethan
Hi all, I have some follow-up questions about Xen's usage and layout of memory, building on the ones I asked here a few weeks ago (which were quite helpfully answered: see https://lists.xenproject.org/archives/html/xen-devel/2019-07/msg01513.html for reference). For context on why I'm asking t

Re: [Xen-devel] More questions about Xen memory layout/usage, access to guest memory

2019-08-17 Thread Andrew Cooper
On 16/08/2019 20:51, Johnson, Ethan wrote: > Hi all, > > I have some follow-up questions about Xen's usage and layout of memory, > building on the ones I asked here a few weeks ago (which were quite > helpfully answered: see > https://lists.xenproject.org/archives/html/xen-devel/2019-07/msg01513

Re: [Xen-devel] More questions about Xen memory layout/usage, access to guest memory

2019-08-21 Thread Johnson, Ethan
On 8/17/2019 7:04 AM, Andrew Cooper wrote: >> Similarly, to what extent does the dom0 (or other such >> privileged domain) utilize "foreign memory maps" to reach into another >> guest's memory? I understand that this is necessary when creating a >> guest, for live migration, and for QEMU to emulate

Re: [Xen-devel] More questions about Xen memory layout/usage, access to guest memory

2019-08-22 Thread Andrew Cooper
On 22/08/2019 03:06, Johnson, Ethan wrote: > On 8/17/2019 7:04 AM, Andrew Cooper wrote: >>> Similarly, to what extent does the dom0 (or other such >>> privileged domain) utilize "foreign memory maps" to reach into another >>> guest's memory? I understand that this is necessary when creating a >>> g

Re: [Xen-devel] More questions about Xen memory layout/usage, access to guest memory

2019-08-22 Thread Rian Quinn
I can at least confirm that no emulation is needed to execute a Linux guest, even with the Xen PVH interface, but I don't think that works out of the box today with Xen, something we are currently working on and will hopefully have some more data near the end of the year. x2APIC helps, but it takes

Re: [Xen-devel] More questions about Xen memory layout/usage, access to guest memory

2019-08-22 Thread Tamas K Lengyel
> > I've found a number of files in the Xen source tree which seem to be > > related to instruction/x86 platform emulation: > > > > arch/x86/x86_emulate.c > > arch/x86/hvm/emulate.c > > arch/x86/hvm/vmx/realmode.c > > arch/x86/hvm/svm/emulate.c > > arch/x86/pv/emulate.c > > arch/x86/pv/emul-priv-op

Re: [Xen-devel] More questions about Xen memory layout/usage, access to guest memory

2019-08-22 Thread Rich Persaud
> On Aug 22, 2019, at 09:51, Andrew Cooper wrote: > >> On 22/08/2019 03:06, Johnson, Ethan wrote: >> >> For HVM, obviously anything that can't be virtualized natively by the >> hardware needs to be emulated by Xen/QEMU (since the guest kernel isn't >> expected to be cooperative to issue PV hyp

Re: [Xen-devel] More questions about Xen memory layout/usage, access to guest memory

2019-08-22 Thread Andrew Cooper
On 22/08/2019 21:57, Rich Persaud wrote: >> On Aug 22, 2019, at 09:51, Andrew Cooper wrote: >> >>> On 22/08/2019 03:06, Johnson, Ethan wrote: >>> >>> For HVM, obviously anything that can't be virtualized natively by the >>> hardware needs to be emulated by Xen/QEMU (since the guest kernel isn't

Re: [Xen-devel] More questions about Xen memory layout/usage, access to guest memory

2019-08-22 Thread Andrew Cooper
On 22/08/2019 16:06, Rian Quinn wrote: > I can at least confirm that no emulation is needed to execute a Linux > guest, even with the Xen PVH interface, but I don't think that works > out of the box today with Xen, something we are currently working on > and will hopefully have some more data near

Re: [Xen-devel] More questions about Xen memory layout/usage, access to guest memory

2019-08-22 Thread Andrew Cooper
On 22/08/2019 18:36, Tamas K Lengyel wrote: >>> I've found a number of files in the Xen source tree which seem to be >>> related to instruction/x86 platform emulation: >>> >>> arch/x86/x86_emulate.c >>> arch/x86/hvm/emulate.c >>> arch/x86/hvm/vmx/realmode.c >>> arch/x86/hvm/svm/emulate.c >>> arch/x

Re: [Xen-devel] More questions about Xen memory layout/usage, access to guest memory

2019-08-22 Thread Tamas K Lengyel
On Thu, Aug 22, 2019 at 4:40 PM Andrew Cooper wrote: > > On 22/08/2019 21:57, Rich Persaud wrote: > >> On Aug 22, 2019, at 09:51, Andrew Cooper wrote: > >> > >>> On 22/08/2019 03:06, Johnson, Ethan wrote: > >>> > >>> For HVM, obviously anything that can't be virtualized natively by the > >>> hard

Re: [Xen-devel] More questions about Xen memory layout/usage, access to guest memory

2019-08-22 Thread Andrew Cooper
On 23/08/2019 00:06, Tamas K Lengyel wrote: > On Thu, Aug 22, 2019 at 4:40 PM Andrew Cooper > wrote: >> On 22/08/2019 21:57, Rich Persaud wrote: On Aug 22, 2019, at 09:51, Andrew Cooper wrote: > On 22/08/2019 03:06, Johnson, Ethan wrote: > > For HVM, obviously anything that

Re: [Xen-devel] More questions about Xen memory layout/usage, access to guest memory

2019-08-22 Thread Tamas K Lengyel
On Thu, Aug 22, 2019 at 6:03 PM Andrew Cooper wrote: > > On 23/08/2019 00:06, Tamas K Lengyel wrote: > > On Thu, Aug 22, 2019 at 4:40 PM Andrew Cooper > > wrote: > >> On 22/08/2019 21:57, Rich Persaud wrote: > On Aug 22, 2019, at 09:51, Andrew Cooper > wrote: > > > On 22/08/