From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org, Markus Armbruster <armbru@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Eric Blake <eblake@redhat.com>,
Eduardo Habkost <eduardo@habkost.net>
Subject: Re: [PATCH 1/4] qom: allow to mark objects (including devices) as deprecated.
Date: Mon, 3 Jun 2024 12:15:54 +0100 [thread overview]
Message-ID: <Zl2l6jHK-QF-9bn5@redhat.com> (raw)
In-Reply-To: <20240528095459.896594-2-kraxel@redhat.com>
On Tue, May 28, 2024 at 11:54:56AM +0200, Gerd Hoffmann wrote:
> Add deprecation_note field (string) to ObjectClass.
> Add deprecated bool to ObjectTypeInfo, report in 'qom-list-types'.
> Print the note when listing devices via '-device help'.
>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
> include/qom/object.h | 1 +
> qom/qom-qmp-cmds.c | 4 ++++
> system/qdev-monitor.c | 5 +++++
> qapi/qom.json | 4 +++-
> 4 files changed, 13 insertions(+), 1 deletion(-)
I think that object.c, object_init_with_type() should be printing
a message on stderr when creating an instance of a deprecated
object/device, since we do that with machine types and CPUs that
are deprecated.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2024-06-03 11:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-28 9:54 [PATCH 0/4] allow to deprecate objects and devices Gerd Hoffmann
2024-05-28 9:54 ` [PATCH 1/4] qom: allow to mark objects (including devices) as deprecated Gerd Hoffmann
2024-06-03 11:15 ` Daniel P. Berrangé [this message]
2024-05-28 9:54 ` [PATCH 2/4] usb: add config options for the hub and hid devices Gerd Hoffmann
2024-05-28 10:44 ` Thomas Huth
2024-05-28 9:54 ` [PATCH 3/4] usb/ohci-pci: deprecate, don't build by default Gerd Hoffmann
2024-05-28 10:35 ` Thomas Huth
2024-05-28 13:34 ` Helge Deller
2024-05-28 13:54 ` Paolo Bonzini
2024-05-28 21:40 ` Mark Cave-Ayland
2024-05-28 9:54 ` [PATCH 4/4] usb/hub: " Gerd Hoffmann
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=Zl2l6jHK-QF-9bn5@redhat.com \
--to=berrange@redhat.com \
--cc=armbru@redhat.com \
--cc=eblake@redhat.com \
--cc=eduardo@habkost.net \
--cc=kraxel@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).