From: Eduardo Habkost <ehabkost@redhat.com> To: "Marc-André Lureau" <marcandre.lureau@gmail.com> Cc: QEMU <qemu-devel@nongnu.org>, "Peter Maydell" <peter.maydell@linaro.org>, "Stefano Stabellini" <sstabellini@kernel.org>, xen-devel@lists.xenproject.org, "Corey Minyard" <minyard@acm.org>, amit@kernel.org, hpoussin@reactos.org, "Michael S. Tsirkin" <mst@redhat.com>, "Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, "open list:ARM" <qemu-arm@nongnu.org>, "open list:sPAPR pseries" <qemu-ppc@nongnu.org>, "Igor Mammedov" <imammedo@redhat.com>, "Anthony Perard" <anthony.perard@citrix.com>, "Paolo Bonzini" <pbonzini@redhat.com>, stefanb@linux.ibm.com, "Andreas Färber" <afaerber@suse.de>, atar4qemu@gmail.com, "Richard Henderson" <rth@twiddle.net> Subject: Re: [Qemu-devel] [PATCH for-3.2 v3 13/14] hw/i386: add pc-i440fx-3.2 & pc-q35-3.2 Date: Wed, 7 Nov 2018 17:01:14 -0200 [thread overview] Message-ID: <20181107190114.GD12503@habkost.net> (raw) In-Reply-To: <CAJ+F1CLWy0xbb-Pc7yUNpHh70GsSTKJ=v+TeoTGJOThYO_xE2g@mail.gmail.com> On Wed, Nov 07, 2018 at 07:49:54PM +0400, Marc-André Lureau wrote: > Hi > > On Wed, Nov 7, 2018 at 4:49 PM Marc-André Lureau > <marcandre.lureau@redhat.com> wrote: > > > > The following patch is going to add compatiblity parameters for > > qemu <= 3.1. > > > > I realize this may be good enough for x86 i440/q35 machines, but what > about other machines & architectures? > > What do we officially support, for migration, across different versions? > > It seems we have versionized: > - arm "virt" machines > - "s390-ccw-virtio" machines > - ppc "pseries" machines > - x86 piix/q35 machines > > At least, I think I should update this patch to add new 3.2 machines for those. This QEMU release seems to be unusual: normally we add features that require adding new machine-types long before soft freeze. If we didn't add new machine-types until now, this means we didn't introduce any guest ABI changes that require them. Now, this is an interesting case: we probably don't _need_ the new machine-types, but users might be confused if they don't see new machine-types. Should we add them anyway? > > Is there any way to check compat properties are handled properly for > those various machines? It looks like it is generally lacking. For > example, if there is a new HW_COMPAT, it would be nice if something > failed if a corresponding machine hasn't been added. > > It also looks like there is a bit of code duplication and a bit too > much macros :) unfortunately, I don't yet have a good idea how to > improve things... I dream with the day all this compatibility data will be treated like what it is: just data. The ugly macro trickery needs to go away eventually, but this requires making the QOM/machine-type APIs more practical. Removing very old machine-types will probably make this task easier, because they are the main source of compatibility code that is not represented as <driver.property=value> tuples (grep for "static void pc_compat_" and you'll see them). -- Eduardo
WARNING: multiple messages have this Message-ID (diff)
From: Eduardo Habkost <ehabkost@redhat.com> To: "Marc-André Lureau" <marcandre.lureau@gmail.com> Cc: "Peter Maydell" <peter.maydell@linaro.org>, "Stefano Stabellini" <sstabellini@kernel.org>, "Corey Minyard" <minyard@acm.org>, amit@kernel.org, "open list:sPAPR pseries" <qemu-ppc@nongnu.org>, "Paolo Bonzini" <pbonzini@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, "Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>, QEMU <qemu-devel@nongnu.org>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, "open list:ARM" <qemu-arm@nongnu.org>, hpoussin@reactos.org, "Igor Mammedov" <imammedo@redhat.com>, "Anthony Perard" <anthony.perard@citrix.com>, xen-devel@lists.xenproject.org, "Richard Henderson" <rth@twiddle.net>, "Andreas Färber" <afaerber@suse.de>, atar4qemu@gmail.com, stefanb@linux.ibm.com Subject: Re: [Qemu-devel] [PATCH for-3.2 v3 13/14] hw/i386: add pc-i440fx-3.2 & pc-q35-3.2 Date: Wed, 7 Nov 2018 17:01:14 -0200 [thread overview] Message-ID: <20181107190114.GD12503@habkost.net> (raw) In-Reply-To: <CAJ+F1CLWy0xbb-Pc7yUNpHh70GsSTKJ=v+TeoTGJOThYO_xE2g@mail.gmail.com> On Wed, Nov 07, 2018 at 07:49:54PM +0400, Marc-André Lureau wrote: > Hi > > On Wed, Nov 7, 2018 at 4:49 PM Marc-André Lureau > <marcandre.lureau@redhat.com> wrote: > > > > The following patch is going to add compatiblity parameters for > > qemu <= 3.1. > > > > I realize this may be good enough for x86 i440/q35 machines, but what > about other machines & architectures? > > What do we officially support, for migration, across different versions? > > It seems we have versionized: > - arm "virt" machines > - "s390-ccw-virtio" machines > - ppc "pseries" machines > - x86 piix/q35 machines > > At least, I think I should update this patch to add new 3.2 machines for those. This QEMU release seems to be unusual: normally we add features that require adding new machine-types long before soft freeze. If we didn't add new machine-types until now, this means we didn't introduce any guest ABI changes that require them. Now, this is an interesting case: we probably don't _need_ the new machine-types, but users might be confused if they don't see new machine-types. Should we add them anyway? > > Is there any way to check compat properties are handled properly for > those various machines? It looks like it is generally lacking. For > example, if there is a new HW_COMPAT, it would be nice if something > failed if a corresponding machine hasn't been added. > > It also looks like there is a bit of code duplication and a bit too > much macros :) unfortunately, I don't yet have a good idea how to > improve things... I dream with the day all this compatibility data will be treated like what it is: just data. The ugly macro trickery needs to go away eventually, but this requires making the QOM/machine-type APIs more practical. Removing very old machine-types will probably make this task easier, because they are the main source of compatibility code that is not represented as <driver.property=value> tuples (grep for "static void pc_compat_" and you'll see them). -- Eduardo _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-11-07 19:02 UTC|newest] Thread overview: 67+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-11-07 12:36 [Qemu-devel] [PATCH for-3.2 v3 00/14] Generalize machine compatibility properties Marc-André Lureau 2018-11-07 12:36 ` Marc-André Lureau 2018-11-07 12:36 ` [Qemu-devel] [PATCH for-3.2 v3 01/14] tests: qdev_prop_check_globals() doesn't return "all_used" Marc-André Lureau 2018-11-07 12:36 ` Marc-André Lureau 2018-11-20 15:33 ` [Qemu-devel] " Igor Mammedov 2018-11-20 15:33 ` Igor Mammedov 2018-11-07 12:36 ` [Qemu-devel] [PATCH for-3.2 v3 02/14] qom: make interface types abstract Marc-André Lureau 2018-11-07 12:36 ` Marc-André Lureau 2018-11-20 16:33 ` [Qemu-devel] " Igor Mammedov 2018-11-20 16:33 ` Igor Mammedov 2018-11-20 17:42 ` Eduardo Habkost 2018-11-20 17:42 ` Eduardo Habkost 2018-11-20 18:54 ` Laszlo Ersek 2018-11-20 18:54 ` Laszlo Ersek 2018-11-21 9:10 ` Igor Mammedov 2018-11-21 9:10 ` Igor Mammedov 2018-11-23 14:03 ` Igor Mammedov 2018-11-23 14:03 ` Igor Mammedov 2018-11-07 12:36 ` [Qemu-devel] [PATCH for-3.2 v3 03/14] qom: make user_creatable_complete() specific to UserCreatable Marc-André Lureau 2018-11-07 12:36 ` Marc-André Lureau 2018-11-20 16:39 ` [Qemu-devel] " Igor Mammedov 2018-11-20 16:39 ` Igor Mammedov 2018-11-07 12:36 ` [Qemu-devel] [PATCH for-3.2 v3 04/14] accel: register global_props like machine globals Marc-André Lureau 2018-11-07 12:36 ` Marc-André Lureau 2018-11-07 12:36 ` [Qemu-devel] [PATCH for-3.2 v3 05/14] qdev: move qdev_prop_register_global_list() to tests Marc-André Lureau 2018-11-07 12:36 ` Marc-André Lureau 2018-11-11 23:46 ` [Qemu-devel] " Philippe Mathieu-Daudé 2018-11-11 23:46 ` Philippe Mathieu-Daudé 2018-11-20 16:40 ` Igor Mammedov 2018-11-20 16:40 ` Igor Mammedov 2018-11-07 12:36 ` [Qemu-devel] [PATCH for-3.2 v3 06/14] qdev: do not mix compat props with global props Marc-André Lureau 2018-11-07 12:36 ` Marc-André Lureau 2018-11-23 14:02 ` [Qemu-devel] " Igor Mammedov 2018-11-23 14:02 ` Igor Mammedov 2018-11-07 12:36 ` [Qemu-devel] [PATCH for-3.2 v3 07/14] qdev: all globals are now user-provided Marc-André Lureau 2018-11-07 12:36 ` Marc-André Lureau 2018-11-23 14:20 ` [Qemu-devel] " Igor Mammedov 2018-11-23 14:20 ` Igor Mammedov 2018-11-07 12:36 ` [Qemu-devel] [PATCH for-3.2 v3 08/14] qdev-props: convert global_props to GArray Marc-André Lureau 2018-11-07 12:36 ` Marc-André Lureau 2018-11-23 14:26 ` [Qemu-devel] " Igor Mammedov 2018-11-23 14:26 ` Igor Mammedov 2018-11-07 12:36 ` [Qemu-devel] [PATCH for-3.2 v3 09/14] qdev-props: remove errp from GlobalProperty Marc-André Lureau 2018-11-07 12:36 ` Marc-André Lureau 2018-11-07 12:36 ` [Qemu-devel] [PATCH for-3.2 v3 10/14] qdev-props: call object_apply_global_props() Marc-André Lureau 2018-11-07 12:36 ` Marc-André Lureau 2018-11-26 13:20 ` [Qemu-devel] " Igor Mammedov 2018-11-26 13:20 ` Igor Mammedov 2018-11-26 20:02 ` [Qemu-devel] " Marc-André Lureau 2018-11-26 20:02 ` Marc-André Lureau 2018-11-27 14:12 ` Igor Mammedov 2018-11-27 14:12 ` Igor Mammedov 2018-11-07 12:36 ` [Qemu-devel] [PATCH for-3.2 v3 11/14] qom: teach interfaces to implement post-init Marc-André Lureau 2018-11-07 12:36 ` Marc-André Lureau 2018-11-26 13:46 ` [Qemu-devel] " Igor Mammedov 2018-11-07 12:36 ` [Qemu-devel] [PATCH for-3.2 v3 12/14] machine: add compat-props interface Marc-André Lureau 2018-11-07 12:36 ` Marc-André Lureau 2018-11-07 12:36 ` [Qemu-devel] [PATCH for-3.2 v3 13/14] hw/i386: add pc-i440fx-3.2 & pc-q35-3.2 Marc-André Lureau 2018-11-07 12:36 ` Marc-André Lureau 2018-11-07 15:49 ` [Qemu-devel] " Marc-André Lureau 2018-11-07 19:01 ` Eduardo Habkost [this message] 2018-11-07 19:01 ` Eduardo Habkost 2018-11-07 15:49 ` Marc-André Lureau 2018-11-07 12:36 ` [Qemu-devel] [PATCH for-3.2 v3 14/14] hostmem: use object id for memory region name with >= 3.1 Marc-André Lureau 2018-11-07 12:36 ` Marc-André Lureau 2018-11-26 13:55 ` [Qemu-devel] [PATCH for-3.2 v3 00/14] Generalize machine compatibility properties Igor Mammedov 2018-11-26 13:55 ` Igor Mammedov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20181107190114.GD12503@habkost.net \ --to=ehabkost@redhat.com \ --cc=afaerber@suse.de \ --cc=amit@kernel.org \ --cc=anthony.perard@citrix.com \ --cc=atar4qemu@gmail.com \ --cc=dgilbert@redhat.com \ --cc=hpoussin@reactos.org \ --cc=imammedo@redhat.com \ --cc=marcandre.lureau@gmail.com \ --cc=mark.cave-ayland@ilande.co.uk \ --cc=minyard@acm.org \ --cc=mst@redhat.com \ --cc=pbonzini@redhat.com \ --cc=peter.maydell@linaro.org \ --cc=qemu-arm@nongnu.org \ --cc=qemu-devel@nongnu.org \ --cc=qemu-ppc@nongnu.org \ --cc=rth@twiddle.net \ --cc=sstabellini@kernel.org \ --cc=stefanb@linux.ibm.com \ --cc=xen-devel@lists.xenproject.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.