Received: from eggs.gnu.org ([2001:4830:134:3::10]:52638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzQ08-0003AK-Hu for qemu-devel@nongnu.org; Tue, 24 Jun 2014 08:39:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzPzz-0007c7-6Z for qemu-devel@nongnu.org; Tue, 24 Jun 2014 08:39:04 -0400 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:55842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzPzy-0007bg-VX for qemu-devel@nongnu.org; Tue, 24 Jun 2014 08:38:55 -0400 Received: by mail-wi0-f173.google.com with SMTP id cc10so5814964wib.6 for ; Tue, 24 Jun 2014 05:38:51 -0700 (PDT) Message-ID: <1403613521.20031.4.camel@localhost.localdomain> From: Marcel Apfelbaum Date: Tue, 24 Jun 2014 15:38:41 +0300 In-Reply-To: <53A89F11.5060003@suse.de> References: <53A8366B.1020301@ozlabs.ru> <53A840C8.8060607@redhat.com> <53A89D98.3030708@ozlabs.ru> <53A89F11.5060003@suse.de> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] machines and versions - why so many? Reply-To: marcel.a@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?ISO-8859-1?Q?F=E4rber?= Cc: Alexey Kardashevskiy , Paolo Bonzini , Paul Mackerras , "qemu-devel@nongnu.org" , Alexander Graf On Mon, 2014-06-23 at 23:41 +0200, Andreas Färber wrote: > Am 23.06.2014 23:35, schrieb Alexey Kardashevskiy: > > Looks like I must copy PC_COMPAT_X_X as PSERIES_COMPAT_X_X starting 1.6 (or > > 1.7 - whichever starts supporting migration well enough on pseries) because > > pretty much of what they do is tweaking PCI devices and we can have all of > > these devices on pseries. And then keep an eye on what is happening in PC > > world to copy same tweaks to pseries as they come. Is that correct? > > Please don't. There's a series by Marcel on the list converting those PC > macros to QOM. Actually, I think you are referring to is Eduardo's series :) http://lists.gnu.org/archive/html/qemu-devel/2014-06/msg03155.html Thanks, Marcel > You already have a QOM sPAPR machine, so you should just > derive new legacy types as needed and override things there. > > Also, -machine *is* the global mechanism we have to tell QEMU which > version you want, it's a shorthand for setting a list of global > properties. Don't forget that QEMU can be used without libvirt, so the > knowledge of which properties to set for which version is kept in QEMU. > > Cheers, > Andreas >