]> git.proxmox.com Git - mirror_qemu.git/commit
virt: Register "its" as class property
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 11 Nov 2020 18:38:17 +0000 (13:38 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 15 Dec 2020 15:02:07 +0000 (10:02 -0500)
commit27edeeaafe439d0f58d9ff464a97ec418293d0b7
treeb75db6d48903aaed5eb6b4f224da28c8654fbdac
parentb91def7b8382eb862bad5a60e752a02b7123db71
virt: Register "its" as class property

Class properties make QOM introspection simpler and easier, as
they don't require an object to be instantiated.

Note: "its" is currently registered conditionally, but this makes
the feature be registered unconditionally.  The only side effect
is that it will be now possible to set its=on on virt-2.7 and
older.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20201111183823.283752-7-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/arm/virt.c