From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzCnw-0003hf-W8 for qemu-devel@nongnu.org; Mon, 23 Jun 2014 18:33:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzCnp-0008Pe-Gv for qemu-devel@nongnu.org; Mon, 23 Jun 2014 18:33:36 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:49521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzCnp-0008PX-BX for qemu-devel@nongnu.org; Mon, 23 Jun 2014 18:33:29 -0400 Received: by mail-pd0-f171.google.com with SMTP id fp1so6180152pdb.16 for ; Mon, 23 Jun 2014 15:33:28 -0700 (PDT) Message-ID: <53A8AB33.6040602@ozlabs.ru> Date: Tue, 24 Jun 2014 08:33:23 +1000 From: Alexey Kardashevskiy MIME-Version: 1.0 References: <53A8366B.1020301@ozlabs.ru> <53A840C8.8060607@redhat.com> <53A89D98.3030708@ozlabs.ru> <53A89F11.5060003@suse.de> In-Reply-To: <53A89F11.5060003@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] machines and versions - why so many? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Cc: Paolo Bonzini , Paul Mackerras , "qemu-devel@nongnu.org" , Alexander Graf On 06/24/2014 07:41 AM, 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. You already have a QOM sPAPR machine, so you should just > derive new legacy types as needed and override things there. I failed to find the series in patchworks, was it long time ago? What was the subject? I actually wonder if it is not going to be "-machine pseries-2.0" then what will it look like? "-machine pseries,qemucompat=2.0"? I would think there will be TYPE_MACHINE_X_Y types which I would use as a parent TYPE_SPAPR_MACHINE (dynamically, as we do for the "host" CPU type) but this is not what you are saying, correct? > 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. I do not forget, I use libvirt once a month :) -- Alexey