From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnTZR-0001vq-SR for qemu-devel@nongnu.org; Thu, 22 May 2014 10:02:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnTZL-0000TE-IM for qemu-devel@nongnu.org; Thu, 22 May 2014 10:02:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnTZL-0000SO-8d for qemu-devel@nongnu.org; Thu, 22 May 2014 10:02:03 -0400 Date: Thu, 22 May 2014 17:00:51 +0300 From: "Michael S. Tsirkin" Message-ID: <20140522140051.GA1086@redhat.com> References: <1400743250-2315-1-git-send-email-kraxel@redhat.com> <20140522123509.GA32350@redhat.com> <1400763199.25874.66.camel@nilsson.home.kraxel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1400763199.25874.66.camel@nilsson.home.kraxel.org> Subject: Re: [Qemu-devel] [PATCH] xen: make xen-platform a default device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Paul Durrant , qemu-devel@nongnu.org, Anthony Liguori , Stefano Stabellini On Thu, May 22, 2014 at 02:53:19PM +0200, Gerd Hoffmann wrote: > On Do, 2014-05-22 at 15:35 +0300, Michael S. Tsirkin wrote: > > On Thu, May 22, 2014 at 01:11:28PM +0100, Stefano Stabellini wrote: > > > On Thu, 22 May 2014, Gerd Hoffmann wrote: > > > > Patch hooks up the xen platform device to the default device code we > > > > have in qemu. Two effects: > > > > > > > > (1) The device will not be created in case -nodefaults is specified > > > > on the command line. > > > > (2) Autocreating the device is also turned off in case xen-platform > > > > is added manually via -device. > > > > > > > > With the patch applied you can move the xen-platform device to some > > > > other place with a simple 'qemu -device xen-platform,addr=$slot'. > > > > > > > > Tested-by: Tiejun Chen > > > > Signed-off-by: Gerd Hoffmann > > > > > > Given that libxl always passes -nodefaults to QEMU, this patch is going > > > to effectively disable xen_platform_pci for all Xen users. It is not a > > > good idea. With the patch applied a Xen user would have no way to enable > > > xen_platform_pci except for passing some magic command line runes via > > > device_model_args_hvm. > > > > > > > Yes, it's an unfortunate use of the interface. > > How about a new machine type for xenfv - that's the only one > > that's affected, right? > > It's time xen started versioning qemu hardware anyway. > > That would do the trick for sure. Question is what versioning scheme. > Might be useful for xen machine types to version after xen releases, > i.e. xenfv-4.4 would would be supposed to be compatible with the xen-4.4 > toolstack etc. > > cheers, > Gerd > It's much easier for us to version it with qemu machine version, like we do for pc, if that can work at all.