Revision f146ec9a

b/hw/virtio-serial-bus.c
520 520
    VirtIOSerialPort *port = DO_UPCAST(VirtIOSerialPort, dev, &dev->qdev);
521 521
    VirtIOSerial *vser = port->vser;
522 522

  
523
    send_control_event(port, VIRTIO_CONSOLE_PORT_REMOVE, 1);
524

  
523 525
    /*
524 526
     * Don't decrement nr_ports here; thus we keep a linearly
525 527
     * increasing port id. Not utilising an id again saves us a couple
b/hw/virtio-serial.h
51 51
#define VIRTIO_CONSOLE_RESIZE		2
52 52
#define VIRTIO_CONSOLE_PORT_OPEN	3
53 53
#define VIRTIO_CONSOLE_PORT_NAME	4
54
#define VIRTIO_CONSOLE_PORT_REMOVE	5
54 55

  
55 56
/* == In-qemu interface == */
56 57

  

Also available in: Unified diff