From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnSxf-0005ov-5F for qemu-devel@nongnu.org; Thu, 22 May 2014 09:23:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnSxX-0001oX-MV for qemu-devel@nongnu.org; Thu, 22 May 2014 09:23:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnSxX-0001oN-EF for qemu-devel@nongnu.org; Thu, 22 May 2014 09:22:59 -0400 Message-ID: <1400764968.25874.75.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Thu, 22 May 2014 15:22:48 +0200 In-Reply-To: <537DF280.3090703@redhat.com> References: <1400743250-2315-1-git-send-email-kraxel@redhat.com> <537DF280.3090703@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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: Paolo Bonzini Cc: Paul Durrant , mst@redhat.com, qemu-devel@nongnu.org, Anthony Liguori , Stefano Stabellini > > 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. > > In fact this code only runs for "-M xenfv". If you use "-M pc", the > xen-platform device has to be added manually. Perhaps it would be > worthwhile to do the opposite, i.e. add the xen-platform device to "-M > pc" if not using -nodefaults. /me looks at the code. Yes, all the differences between xenfv and pc machine types are guarded by if (xen_enabled()) these days, except for adding the platform device. So using the pc machine type should just work on xen, and give you a machine without the platform device. So it can be added via -device, at any slot, if needed. No need to patch qemu at all. Adding or not adding xen-platform can easily handled by libxl then, depending on the xen_platform_pci switch in the config file. cheers, Gerd