[libvirt] [Qemu-devel] [PATCH RESEND] qdev: Make "hotplugged" property read-only

Markus Armbruster armbru at redhat.com
Mon Feb 27 18:05:24 UTC 2017


Eduardo Habkost <ehabkost at redhat.com> writes:

> The "hotplugged" property is user visible, but it was never meant
> to be set by the user. There are probably multiple ways to break
> or crash device code by overriding the property. For example, we
> recently fixed a crash in rtc_set_memory() related to the
> property (commit 26ef65beab852caf2b1ef4976e3473f2d525164d).
>
> There has been some discussion about making management software
> use "hotplugged=on" on migration, to indicate devices that were
> hotplugged in the migration source. There were other suggestions
> to address this, like including the "hotplugged" field in the
> migration stream instead of requiring it to be set propertly.
>
> Whatever solution we choose in the future, this patch disables
> setting "hotplugged" explicitly in the command-line by now,
> because the ability to set the property is unused, untested, and
> undocumented.
>
> Signed-off-by: Eduardo Habkost <ehabkost at redhat.com>

I figure this is the safe thing to do for 2.9.

Reviewed-by: Markus Armbruster <armbru at redhat.com>




More information about the libvir-list mailing list