]> git.ipfire.org Git - thirdparty/qemu.git/commit
qdev: Legacy properties are now unused internally, drop
authorMarkus Armbruster <armbru@redhat.com>
Wed, 22 Oct 2025 10:14:20 +0000 (12:14 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 7 Jan 2026 13:30:36 +0000 (14:30 +0100)
commita61383f7ab6fd05657cf21a6eb4d5a6982cd6f8a
tree0b30573554c124f47bea4c55448ecaad2856fcb0
parentd10176ddf77da031e9d03688d5f9de3da7182e62
qdev: Legacy properties are now unused internally, drop

Legacy properties are an accidental and undocumented external
interface.  qom-set doesn't work for them (no .set() method).  qom-get
and qom-list-get work only when the underlying qdev property has a
.print() method, i.e. the PCI address properties, as explained in the
previous commit.  Here's one that works:

    (qemu) qom-get /machine/unattached/device[3]/pm addr
    11
    (qemu) qom-get /machine/unattached/device[3]/pm legacy-addr
    "01.3"

And here's one that doesn't:

    (qemu) qom-get /machine/unattached/device[3]/pm bus
    "/machine/i440fx/pci.0"
    (qemu) qom-get /machine/unattached/device[3]/pm legacy-bus
    Error: Property 'PIIX4_PM.legacy-bus' is not readable

Actual use of this undocumented interface seems quite unlikely.  A
deprecation period seems unnecessary.  Drop it.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20251022101420.36059-4-armbru@redhat.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
[Commit message improved]
hw/core/qdev-properties.c