Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-16 Thread Rusty Russell
Marc Zyngier marc.zyng...@arm.com writes: On 14/10/13 09:21, Rusty Russell wrote: Marc Zyngier marc.zyng...@arm.com writes: This small patch series adds just enough kernel infrastructure and fixes to allow a BE guest to use virtio-mmio on a LE host, provided that the host actually supports

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-15 Thread Michael S. Tsirkin
On Tue, Oct 15, 2013 at 09:53:17AM +1030, Rusty Russell wrote: Michael S. Tsirkin m...@redhat.com writes: On Mon, Oct 14, 2013 at 06:50:48PM +0200, Paolo Bonzini wrote: Il 14/10/2013 17:36, Marc Zyngier ha scritto: Devices are fine in QEMU, it's only the generic parts (rings) that

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-15 Thread Marc Zyngier
On 15/10/13 07:38, Michael S. Tsirkin wrote: On Tue, Oct 15, 2013 at 09:53:17AM +1030, Rusty Russell wrote: Michael S. Tsirkin m...@redhat.com writes: On Mon, Oct 14, 2013 at 06:50:48PM +0200, Paolo Bonzini wrote: Il 14/10/2013 17:36, Marc Zyngier ha scritto: Devices are fine in QEMU, it's

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Marc Zyngier
Hi Michael, On 12/10/13 19:28, Michael S. Tsirkin wrote: On Fri, Oct 11, 2013 at 03:36:08PM +0100, Marc Zyngier wrote: This small patch series adds just enough kernel infrastructure and fixes to allow a BE guest to use virtio-mmio on a LE host, provided that the host actually supports such

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Rusty Russell
Marc Zyngier marc.zyng...@arm.com writes: This small patch series adds just enough kernel infrastructure and fixes to allow a BE guest to use virtio-mmio on a LE host, provided that the host actually supports such madness. This has been tested on arm64, with some fixes to KVM and a set of

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Michael S. Tsirkin
On Mon, Oct 14, 2013 at 09:24:32AM +0100, Marc Zyngier wrote: Hi Michael, On 12/10/13 19:28, Michael S. Tsirkin wrote: On Fri, Oct 11, 2013 at 03:36:08PM +0100, Marc Zyngier wrote: This small patch series adds just enough kernel infrastructure and fixes to allow a BE guest to use

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Pawel Moll
On Mon, 2013-10-14 at 09:59 +0100, Michael S. Tsirkin wrote: On Mon, Oct 14, 2013 at 09:24:32AM +0100, Marc Zyngier wrote: Hi Michael, On 12/10/13 19:28, Michael S. Tsirkin wrote: On Fri, Oct 11, 2013 at 03:36:08PM +0100, Marc Zyngier wrote: This small patch series adds just enough

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Michael S. Tsirkin
On Mon, Oct 14, 2013 at 10:04:55AM +0100, Pawel Moll wrote: On Mon, 2013-10-14 at 09:59 +0100, Michael S. Tsirkin wrote: On Mon, Oct 14, 2013 at 09:24:32AM +0100, Marc Zyngier wrote: Hi Michael, On 12/10/13 19:28, Michael S. Tsirkin wrote: On Fri, Oct 11, 2013 at 03:36:08PM +0100,

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Pawel Moll
On Mon, 2013-10-14 at 11:46 +0100, Michael S. Tsirkin wrote: What I meant is that under the proposed scheme, users with existing v1 drivers must configure a v1 device explicitly. According to the plan, drivers will be updated so they can work with both v1 devices and new v2 devices. But

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Marc Zyngier
On 14/10/13 09:21, Rusty Russell wrote: Marc Zyngier marc.zyng...@arm.com writes: This small patch series adds just enough kernel infrastructure and fixes to allow a BE guest to use virtio-mmio on a LE host, provided that the host actually supports such madness. This has been tested on

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Michael S. Tsirkin
On Mon, Oct 14, 2013 at 01:36:12PM +0100, Marc Zyngier wrote: On 14/10/13 09:21, Rusty Russell wrote: Marc Zyngier marc.zyng...@arm.com writes: This small patch series adds just enough kernel infrastructure and fixes to allow a BE guest to use virtio-mmio on a LE host, provided that the

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Paolo Bonzini
Il 11/10/2013 16:36, Marc Zyngier ha scritto: This small patch series adds just enough kernel infrastructure and fixes to allow a BE guest to use virtio-mmio on a LE host, provided that the host actually supports such madness. More precisely, it allows the guest drivers to pick the endianness

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Alexander Graf
On 14.10.2013, at 15:03, Paolo Bonzini pbonz...@redhat.com wrote: Il 11/10/2013 16:36, Marc Zyngier ha scritto: This small patch series adds just enough kernel infrastructure and fixes to allow a BE guest to use virtio-mmio on a LE host, provided that the host actually supports such madness.

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Paolo Bonzini
Il 14/10/2013 15:10, Alexander Graf ha scritto: More precisely, it allows the guest drivers to pick the endianness they prefer. Mixed-endian virtio works fine on QEMU with e.g. a mips guest in emulation mode, because then any given QEMU binary will always use the same endianness (e.g. big for

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Marc Zyngier
On 14/10/13 14:10, Alexander Graf wrote: On 14.10.2013, at 15:03, Paolo Bonzini pbonz...@redhat.com wrote: Il 11/10/2013 16:36, Marc Zyngier ha scritto: This small patch series adds just enough kernel infrastructure and fixes to allow a BE guest to use virtio-mmio on a LE host, provided

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Alexander Graf
On 14.10.2013, at 15:24, Marc Zyngier marc.zyng...@arm.com wrote: On 14/10/13 14:10, Alexander Graf wrote: On 14.10.2013, at 15:03, Paolo Bonzini pbonz...@redhat.com wrote: Il 11/10/2013 16:36, Marc Zyngier ha scritto: This small patch series adds just enough kernel infrastructure and

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Marc Zyngier
On 14/10/13 14:39, Alexander Graf wrote: On 14.10.2013, at 15:24, Marc Zyngier marc.zyng...@arm.com wrote: On 14/10/13 14:10, Alexander Graf wrote: On 14.10.2013, at 15:03, Paolo Bonzini pbonz...@redhat.com wrote: Il 11/10/2013 16:36, Marc Zyngier ha scritto: This small patch series

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Michael S. Tsirkin
On Mon, Oct 14, 2013 at 02:49:10PM +0100, Marc Zyngier wrote: On 14/10/13 14:39, Alexander Graf wrote: On 14.10.2013, at 15:24, Marc Zyngier marc.zyng...@arm.com wrote: On 14/10/13 14:10, Alexander Graf wrote: On 14.10.2013, at 15:03, Paolo Bonzini pbonz...@redhat.com wrote: Il

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Marc Zyngier
On 14/10/13 15:05, Michael S. Tsirkin wrote: On Mon, Oct 14, 2013 at 02:49:10PM +0100, Marc Zyngier wrote: On 14/10/13 14:39, Alexander Graf wrote: On 14.10.2013, at 15:24, Marc Zyngier marc.zyng...@arm.com wrote: On 14/10/13 14:10, Alexander Graf wrote: On 14.10.2013, at 15:03, Paolo

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Alexander Graf
On 14.10.2013, at 16:13, Marc Zyngier marc.zyng...@arm.com wrote: On 14/10/13 15:05, Michael S. Tsirkin wrote: On Mon, Oct 14, 2013 at 02:49:10PM +0100, Marc Zyngier wrote: On 14/10/13 14:39, Alexander Graf wrote: On 14.10.2013, at 15:24, Marc Zyngier marc.zyng...@arm.com wrote: On

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Marc Zyngier
On 14/10/13 15:16, Alexander Graf wrote: On 14.10.2013, at 16:13, Marc Zyngier marc.zyng...@arm.com wrote: On 14/10/13 15:05, Michael S. Tsirkin wrote: On Mon, Oct 14, 2013 at 02:49:10PM +0100, Marc Zyngier wrote: On 14/10/13 14:39, Alexander Graf wrote: On 14.10.2013, at 15:24, Marc

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Paolo Bonzini
Il 14/10/2013 16:52, Marc Zyngier ha scritto: Sure. And I imagine this traps back into the kernel to read some register and find out what the endianness of the accessing CPU is? Not yet. To be exact, it does the below today. But all virtio device emulation is 100% guest endianness

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Marc Zyngier
On 14/10/13 15:56, Paolo Bonzini wrote: Il 14/10/2013 16:52, Marc Zyngier ha scritto: Sure. And I imagine this traps back into the kernel to read some register and find out what the endianness of the accessing CPU is? Not yet. To be exact, it does the below today. But all virtio device

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Paolo Bonzini
Il 14/10/2013 17:12, Marc Zyngier ha scritto: On 14/10/13 15:56, Paolo Bonzini wrote: Il 14/10/2013 16:52, Marc Zyngier ha scritto: Sure. And I imagine this traps back into the kernel to read some register and find out what the endianness of the accessing CPU is? Not yet. To be exact, it

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Marc Zyngier
On 14/10/13 16:22, Paolo Bonzini wrote: Il 14/10/2013 17:12, Marc Zyngier ha scritto: On 14/10/13 15:56, Paolo Bonzini wrote: Il 14/10/2013 16:52, Marc Zyngier ha scritto: Sure. And I imagine this traps back into the kernel to read some register and find out what the endianness of the

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Anup Patel
On Mon, Oct 14, 2013 at 8:52 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 14/10/2013 17:12, Marc Zyngier ha scritto: On 14/10/13 15:56, Paolo Bonzini wrote: Il 14/10/2013 16:52, Marc Zyngier ha scritto: Sure. And I imagine this traps back into the kernel to read some register and find out

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Paolo Bonzini
Il 14/10/2013 17:36, Marc Zyngier ha scritto: Devices are fine in QEMU, it's only the generic parts (rings) that are missing AFAICT. So if I understand correctly how it works, target endianness is set at compile time, and you have a BE specific QEMU? Yes. Though as Alex said, this will

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Michael S. Tsirkin
On Mon, Oct 14, 2013 at 06:50:48PM +0200, Paolo Bonzini wrote: Il 14/10/2013 17:36, Marc Zyngier ha scritto: Devices are fine in QEMU, it's only the generic parts (rings) that are missing AFAICT. So if I understand correctly how it works, target endianness is set at compile time,

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Rusty Russell
Marc Zyngier marc.zyng...@arm.com writes: Hi Michael, On 12/10/13 19:28, Michael S. Tsirkin wrote: On Fri, Oct 11, 2013 at 03:36:08PM +0100, Marc Zyngier wrote: This small patch series adds just enough kernel infrastructure and fixes to allow a BE guest to use virtio-mmio on a LE host,

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Rusty Russell
Pawel Moll pawel.m...@arm.com writes: On Mon, 2013-10-14 at 11:46 +0100, Michael S. Tsirkin wrote: What I meant is that under the proposed scheme, users with existing v1 drivers must configure a v1 device explicitly. According to the plan, drivers will be updated so they can work with both

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-14 Thread Rusty Russell
Michael S. Tsirkin m...@redhat.com writes: On Mon, Oct 14, 2013 at 06:50:48PM +0200, Paolo Bonzini wrote: Il 14/10/2013 17:36, Marc Zyngier ha scritto: Devices are fine in QEMU, it's only the generic parts (rings) that are missing AFAICT. So if I understand correctly how it works,

Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-12 Thread Michael S. Tsirkin
On Fri, Oct 11, 2013 at 03:36:08PM +0100, Marc Zyngier wrote: This small patch series adds just enough kernel infrastructure and fixes to allow a BE guest to use virtio-mmio on a LE host, provided that the host actually supports such madness. This has been tested on arm64, with some fixes to

[PATCH 0/3] virtio-mmio: handle BE guests on LE hosts

2013-10-11 Thread Marc Zyngier
This small patch series adds just enough kernel infrastructure and fixes to allow a BE guest to use virtio-mmio on a LE host, provided that the host actually supports such madness. This has been tested on arm64, with some fixes to KVM and a set of changes to kvmtool, both which I am posting