Re: [Qemu-devel] [PATCH RFC 0/5] Xen: introduce Xen PV target

2014-01-24 Thread Stefano Stabellini
On Fri, 24 Jan 2014, Paolo Bonzini wrote: > Il 24/01/2014 15:35, Peter Maydell ha scritto: > > > > (1) decide that the Xen ring buffers are little-endian even on > > > big-endian > > > > CPUs > > > > > > > > (2) communicate the endianness of the Xen ring buffers via Xenstore, > > > just > > > > lik

Re: [Qemu-devel] [PATCH RFC 0/5] Xen: introduce Xen PV target

2014-01-24 Thread Wei Liu
On Fri, Jan 24, 2014 at 03:38:01PM +0100, Paolo Bonzini wrote: > Il 24/01/2014 15:23, Wei Liu ha scritto: > >On Thu, Jan 23, 2014 at 10:30:16PM +, Peter Maydell wrote: > >>On 23 January 2014 22:16, Wei Liu wrote: > >>>As promised I hacked a prototype based on Paolo's disable TCG series. > >>>H

Re: [Qemu-devel] [PATCH RFC 0/5] Xen: introduce Xen PV target

2014-01-24 Thread Paolo Bonzini
Il 24/01/2014 15:35, Peter Maydell ha scritto: > (1) decide that the Xen ring buffers are little-endian even on big-endian > CPUs > > (2) communicate the endianness of the Xen ring buffers via Xenstore, just > like we do for sizeof(long), and let the guest use either endianness on any > architect

Re: [Qemu-devel] [PATCH RFC 0/5] Xen: introduce Xen PV target

2014-01-24 Thread Paolo Bonzini
Il 24/01/2014 15:23, Wei Liu ha scritto: On Thu, Jan 23, 2014 at 10:30:16PM +, Peter Maydell wrote: On 23 January 2014 22:16, Wei Liu wrote: As promised I hacked a prototype based on Paolo's disable TCG series. However I coded some stubs for TCG anyway. So this series in principle should w

Re: [Qemu-devel] [PATCH RFC 0/5] Xen: introduce Xen PV target

2014-01-24 Thread Peter Maydell
On 24 January 2014 14:30, Paolo Bonzini wrote: > Il 23/01/2014 23:30, Peter Maydell ha scritto: >> I'm afraid I still think this is a terrible idea. "Xen" isn't a CPU, and >> "the binary is smaller" isn't IMHO sufficient justification for breaking >> QEMU's basic structure of "target-* define targ

Re: [Qemu-devel] [PATCH RFC 0/5] Xen: introduce Xen PV target

2014-01-24 Thread Paolo Bonzini
Il 23/01/2014 23:30, Peter Maydell ha scritto: > As promised I hacked a prototype based on Paolo's disable TCG series. > However I coded some stubs for TCG anyway. So this series in principle > should work with / without Paolo's series. I'm afraid I still think this is a terrible idea. "Xen" isn

Re: [Qemu-devel] [PATCH RFC 0/5] Xen: introduce Xen PV target

2014-01-24 Thread Wei Liu
On Thu, Jan 23, 2014 at 10:30:16PM +, Peter Maydell wrote: > On 23 January 2014 22:16, Wei Liu wrote: > > As promised I hacked a prototype based on Paolo's disable TCG series. > > However I coded some stubs for TCG anyway. So this series in principle > > should work with / without Paolo's seri

Re: [Qemu-devel] [PATCH RFC 0/5] Xen: introduce Xen PV target

2014-01-23 Thread Paolo Bonzini
Il 23/01/2014 23:16, Wei Liu ha scritto: As promised I hacked a prototype based on Paolo's disable TCG series. However I coded some stubs for TCG anyway. So this series in principle should work with / without Paolo's series. The first 3 patches refactor some code to disentangle Xen PV and HVM gu

Re: [Qemu-devel] [PATCH RFC 0/5] Xen: introduce Xen PV target

2014-01-23 Thread Peter Maydell
On 23 January 2014 22:16, Wei Liu wrote: > As promised I hacked a prototype based on Paolo's disable TCG series. > However I coded some stubs for TCG anyway. So this series in principle > should work with / without Paolo's series. I'm afraid I still think this is a terrible idea. "Xen" isn't a CP

[Qemu-devel] [PATCH RFC 0/5] Xen: introduce Xen PV target

2014-01-23 Thread Wei Liu
As promised I hacked a prototype based on Paolo's disable TCG series. However I coded some stubs for TCG anyway. So this series in principle should work with / without Paolo's series. The first 3 patches refactor some code to disentangle Xen PV and HVM guest. The 4th patch has the real meat. It in