Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-20 Thread Paul Durrant
durrant=citrix@nongnu.org] On > > > Behalf Of Stefano Stabellini > > > Sent: 19 June 2013 14:53 > > > To: Ian Campbell > > > Cc: Paolo Bonzini; Paul Durrant; xen-de...@lists.xen.org; qemu- > > > de...@nongnu.org; Stefano Stabellini > > > Subject:

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-19 Thread Stefano Stabellini
53 > > To: Ian Campbell > > Cc: Paolo Bonzini; Paul Durrant; xen-de...@lists.xen.org; qemu- > > de...@nongnu.org; Stefano Stabellini > > Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen- > > platform device initialization > > > > On Wed,

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-19 Thread Ian Campbell
On Wed, 2013-06-19 at 14:55 +0100, Stefano Stabellini wrote: > On Wed, 19 Jun 2013, Paul Durrant wrote: > > > -Original Message- > > > From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] > > > Sent: 18 June 2013 20:35 > > > To: Paolo Bonzini > > > Cc: Stefano Stabellini; Paul

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-19 Thread Paul Durrant
n-de...@lists.xen.org; qemu- > de...@nongnu.org; Stefano Stabellini > Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen- > platform device initialization > > On Wed, 19 Jun 2013, Ian Campbell wrote: > > On Tue, 2013-06-18 at 19:56 +0100, Stefano Stabellini wrot

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-19 Thread Stefano Stabellini
On Wed, 19 Jun 2013, Paul Durrant wrote: > > -Original Message- > > From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] > > Sent: 18 June 2013 20:35 > > To: Paolo Bonzini > > Cc: Stefano Stabellini; Paul Durrant; qemu-devel@nongnu.org; xen- > > de...@lists.xen.org; Ian Campbe

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-19 Thread Stefano Stabellini
On Wed, 19 Jun 2013, Ian Campbell wrote: > On Tue, 2013-06-18 at 19:56 +0100, Stefano Stabellini wrote: > > On Fri, 14 Jun 2013, Paul Durrant wrote: > > > > -Original Message- > > > > From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo > > > > Bonzini > > > > Sent: 14 Ju

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-19 Thread Stefano Stabellini
On Wed, 19 Jun 2013, Ian Campbell wrote: > In fact, I wonder if we could just query the qemu which is running to > provide dom0 itself with qdisk services, at least in the case where the > guest is configured to use the same version of qemu. Great idea, that should work.

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-19 Thread Paolo Bonzini
Il 19/06/2013 10:56, Ian Campbell ha scritto: > The case with xl is more like your example 5: Ok, that's what I remembered. :) > > Example 5: you use "virsh create" to start a VM based on an XML file, > > rather than "virsh define"+"virsh start" as in examples 1-2. You lose > > any guarantee tha

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-19 Thread Paul Durrant
> -Original Message- > From: Ian Campbell > Sent: 19 June 2013 09:56 > To: Paolo Bonzini > Cc: Andreas Färber; Stefano Stabellini; Paul Durrant; xen- > de...@lists.xen.org; qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded x

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-19 Thread Ian Campbell
On Wed, 2013-06-19 at 10:41 +0200, Paolo Bonzini wrote: > Il 19/06/2013 10:29, Ian Campbell ha scritto: > >> > You could check for existence of the pc-i440fx-1.6 machine and infer > >> > that it is at least v1.6 (might break in some distant future of course > >> > and for current git commits until

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-19 Thread Paolo Bonzini
Il 19/06/2013 10:29, Ian Campbell ha scritto: >> > You could check for existence of the pc-i440fx-1.6 machine and infer >> > that it is at least v1.6 (might break in some distant future of course >> > and for current git commits until your changes get merged). > Actually, this raises an interesting

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-19 Thread Paul Durrant
> -Original Message- > From: Ian Campbell > Sent: 19 June 2013 09:29 > To: Andreas Färber > Cc: Stefano Stabellini; Paolo Bonzini; Paul Durrant; xen-de...@lists.xen.org; > qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded x

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-19 Thread Ian Campbell
On Tue, 2013-06-18 at 23:38 +0200, Andreas Färber wrote: > Am 18.06.2013 21:35, schrieb Stefano Stabellini: > > On Tue, 18 Jun 2013, Paolo Bonzini wrote: > >> Il 18/06/2013 20:56, Stefano Stabellini ha scritto: > >>> xenfv-2.0 is a bad idea, like Paolo wrote, it should be possible to just > >>> use

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-19 Thread Paul Durrant
> -Original Message- > From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] > Sent: 18 June 2013 20:35 > To: Paolo Bonzini > Cc: Stefano Stabellini; Paul Durrant; qemu-devel@nongnu.org; xen- > de...@lists.xen.org; Ian Campbell > Subject: Re: [Xen-devel] [PATCH] Remove hardcode

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-19 Thread Ian Campbell
On Tue, 2013-06-18 at 19:56 +0100, Stefano Stabellini wrote: > On Fri, 14 Jun 2013, Paul Durrant wrote: > > > -Original Message- > > > From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo > > > Bonzini > > > Sent: 14 June 2013 15:58 > > > To: Paul Durrant > > > Cc: Ian Ca

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-18 Thread Andreas Färber
Am 18.06.2013 21:35, schrieb Stefano Stabellini: > On Tue, 18 Jun 2013, Paolo Bonzini wrote: >> Il 18/06/2013 20:56, Stefano Stabellini ha scritto: >>> xenfv-2.0 is a bad idea, like Paolo wrote, it should be possible to just >>> use -M pc for HVM guests and retain -M xenpv for pv guests. >>> >>> Ho

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-18 Thread Stefano Stabellini
On Tue, 18 Jun 2013, Paolo Bonzini wrote: > Il 18/06/2013 20:56, Stefano Stabellini ha scritto: > >> > > >> > Ok. I guess we can have the ability to override the machine type in the > >> > VM config, so you could still kick off an older qemu with a newer libxl > >> > - but it sounds like the aut

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-18 Thread Paolo Bonzini
Il 18/06/2013 20:56, Stefano Stabellini ha scritto: >> > >> > Ok. I guess we can have the ability to override the machine type in the VM >> > config, so you could still kick off an older qemu with a newer libxl - but >> > it sounds like the auto-discovery idea is a no-go then. > xenfv-2.0 is a b

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-18 Thread Stefano Stabellini
On Fri, 14 Jun 2013, Paul Durrant wrote: > > -Original Message- > > From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo > > Bonzini > > Sent: 14 June 2013 15:58 > > To: Paul Durrant > > Cc: Ian Campbell; Stefano Stabellini; qemu-devel@nongnu.org; xen- > > de...@lists.xen

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-14 Thread Paul Durrant
> -Original Message- > From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo > Bonzini > Sent: 14 June 2013 15:58 > To: Paul Durrant > Cc: Ian Campbell; Stefano Stabellini; qemu-devel@nongnu.org; xen- > de...@lists.xen.org > Subject: Re: [Xen-devel] [PATCH] Remove hardcode

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-14 Thread Paolo Bonzini
Il 14/06/2013 10:11, Paul Durrant ha scritto: > I think we're still going to need -M xenpv, I think; it's quite > distinct from pc. Of course! Even more: "-M xenpv" should be reused on ARM. > I guess we could use -M pc for HVM and gate the > accel code as you suggest but, if that's the way we're

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-14 Thread Paul Durrant
> -Original Message- > From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo > Bonzini > Sent: 14 June 2013 14:51 > To: Paul Durrant > Cc: Ian Campbell; Stefano Stabellini; qemu-devel@nongnu.org; xen- > de...@lists.xen.org > Subject: Re: [Xen-devel] [PATCH] Remove hardcode

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-14 Thread Paolo Bonzini
Il 14/06/2013 06:38, Paul Durrant ha scritto: I think the right solution for this is to move towards using the normal "-M pc" machine. libxl can simply use "-M pc -machine accel=xen -device xen-platform-pv"; older versions that use the xenfv machine will still work.

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-14 Thread Paul Durrant
qemu-devel@nongnu.org; Stefano Stabellini > Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen- > platform device initialization > > > -Original Message- > > From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo > > Bonzini &

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-14 Thread Paul Durrant
> -Original Message- > From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo > Bonzini > Sent: 13 June 2013 19:03 > To: Ian Campbell > Cc: Stefano Stabellini; Paul Durrant; qemu-devel@nongnu.org; xen- > de...@lists.xen.org > Subject: Re: [Xen-devel] [PATCH] Remove hardcode

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-14 Thread Paul Durrant
> -Original Message- > From: Ian Campbell > Sent: 13 June 2013 18:44 > To: Stefano Stabellini > Cc: Paul Durrant; qemu-devel@nongnu.org; xen-de...@lists.xen.org > Subject: Re: [Xen-devel] [Qemu-devel] [PATCH] Remove hardcoded xen- > platform device initialization > > On Thu, 2013-06-13 at

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-13 Thread Paolo Bonzini
Il 13/06/2013 13:44, Ian Campbell ha scritto: > On Thu, 2013-06-13 at 18:33 +0100, Stefano Stabellini wrote: >> On Thu, 13 Jun 2013, Paul Durrant wrote: >>> The xen-platform device should be initialized by the Xen toolstack by >>> passing the appropriate -device argument on the command line. >>> >>

Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization

2013-06-13 Thread Ian Campbell
On Thu, 2013-06-13 at 18:33 +0100, Stefano Stabellini wrote: > On Thu, 13 Jun 2013, Paul Durrant wrote: > > The xen-platform device should be initialized by the Xen toolstack by > > passing the appropriate -device argument on the command line. > > > > Signed-off-by: Paul Durrant > > This patch i