« Previous | Next » 

Revision 62a9fbf7


Added by Alon Levy almost 9 years ago

virtio-serial-bus: fix guest_connected init before driver init

guest_connected should be false before guest driver initialization, and
true after, both for multiport aware and non multiport aware drivers.

Don't set it before the guest_features are available; instead use
set_status which is called by io to VIRTIO_PCI_STATUS with
VIRTIO_CONFIG_S_DRIVER_OK by even older non multiport drivers.

[Amit: Add comment, tweak summary, only set guest_connected and not
reset it as a side-effect.]

Signed-off-by: Alon Levy <>
Acked-by: Michael S. Tsirkin <>
Signed-off-by: Amit Shah <>


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences