mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
virtio-serial: report frontend connection state via monitor
Libvirt wants to know about the guest-side connection state of some virtio-serial ports (in particular the one(s) assigned to guest agent(s)). Report such states with a new monitor event. RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1080376 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
dfab489214
commit
e2ae6159de
3 changed files with 24 additions and 3 deletions
|
@ -316,3 +316,17 @@
|
|||
{ 'event': 'QUORUM_REPORT_BAD',
|
||||
'data': { '*error': 'str', 'node-name': 'str',
|
||||
'sector-num': 'int', 'sector-count': 'int' } }
|
||||
|
||||
##
|
||||
# @VSERPORT_CHANGE
|
||||
#
|
||||
# Emitted when the guest opens or closes a virtio-serial port.
|
||||
#
|
||||
# @id: device identifier of the virtio-serial port
|
||||
#
|
||||
# @open: true if the guest has opened the virtio-serial port
|
||||
#
|
||||
# Since: 2.1
|
||||
##
|
||||
{ 'event': 'VSERPORT_CHANGE',
|
||||
'data': { 'id': 'str', 'open': 'bool' } }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue