Skip to content

qdev: disassociate chardev from device on device exit

Amit Shah qemu-devel 2 versions Applied

Status from this message: Applied. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- actually remove virtconsole_exitfn()

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2qdev: Add a 'free' method to disassociate chardev from qdev devicehw/qdev-properties.c+11 -00 replies
2/2virtio-console: no need to remove char handlers explicitlyhw/virtio-console.c+0 -170 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchMarkus Armbruster
1/2Fix-suggested-by
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/2] qdev: disassociate chardev from device on device exit

When the device is going away (e.g., hot-unplug), an associated chardev should be freed and made available for use for other devices.

An earlier hack did this for virtio serial ports, do it in a generic way and remove the virtio-serial specific hack.

v2:
- actually remove virtconsole_exitfn()

Amit Shah (2):
qdev: Add a 'free' method to disassociate chardev from qdev device
virtio-console: no need to remove char handlers explicitly

 hw/qdev-properties.c |   11 +++++++++++
 hw/virtio-console.c  |   17 -----------------
 2 files changed, 11 insertions(+), 17 deletions(-)
Signature · 1 line
1.7.7.5