Received: from eggs.gnu.org ([2001:4830:134:3::10]:43249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhB1H-0007ZW-9H for qemu-devel@nongnu.org; Thu, 14 Nov 2013 23:28:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VhB17-0008HN-8g for qemu-devel@nongnu.org; Thu, 14 Nov 2013 23:28:35 -0500 References: <52845915.4030201@ozlabs.ru> <1384408904.3806.16.camel@pasglop> <528499F2.2060204@ozlabs.ru> <0EC3B49C-9DC8-4F7D-8BB3-D49DEFB8F510@suse.de> <1384460914.3806.25.camel@pasglop> <1FC02D0E-ED9E-4A75-A81A-295FB5324384@suse.de> <1384468340.3806.28.camel@pasglop> <52857803.6040006@ozlabs.ru> Mime-Version: 1.0 (1.0) In-Reply-To: <52857803.6040006@ozlabs.ru> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: From: Alexander Graf Date: Thu, 14 Nov 2013 23:28:17 -0500 Subject: Re: [Qemu-devel] -vga std vs. -device VGA List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: Peter Maydell , Nikunj A Dadhania , "qemu-devel@nongnu.org" , Li Zhang , Paul Mackerras , Avik Sil , "qemu-ppc@nongnu.org" Am 14.11.2013 um 20:25 schrieb Alexey Kardashevskiy : > On 11/15/2013 10:03 AM, Peter Maydell wrote: >> On 14 November 2013 22:32, Benjamin Herrenschmidt >> wrote: >>> On Thu, 2013-11-14 at 17:23 -0500, Alexander Graf wrote: >>>> Yes. But I think it's the correct thing to do in this case. X86 also >>>> doesn't create a USB controller like we would have to. Our pseries >>>> platform just doesn't have a legacy PC/AT keyboard controller. >>>=20 >>> Sure, but that implies that -nodefaults -device VGA creates a working >>> usable machine on x86 and not on pseries... >>=20 >> Sounds plausible. Anything using -nodefaults has to have >> knowledge of every QEMU machine type it wants to use >> so it can know which devices need adding in order to get >> various functionality. ('-device VGA' doesn't work at all on >> some, for instance). If you ask for full manual control, you >> get full manual control :-) >=20 > That is ok and I asked our libvirt person to fix it (Hi Li :) ). >=20 > What I still do not completely understand is the principle used about > automatic device creation. Specifically, "-device VGA" creates only VGA > (and that is understandable) but "-vga std" creates more devices, if if > used together with "-nodefaults". >=20 > Is it because "-device" must create only what it is told to create and > others non-"-device" options (-usb? -vga? -machine ...? any!) can > auto-create whatever they want (well, what seems reasonable to create for > the specific arch)? Yeah, you can use QEMU as the interface to the user, then you want to be eas= y and smart. Or you can use QEMU as interface to a management stack. Then yo= u want to be as precise and deterministric as possible. -device falls into t= he latter category. Alex