diff options
| author | Anthony Liguori <aliguori@us.ibm.com> | 2011-05-31 08:22:03 -0500 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-05-31 08:22:03 -0500 |
| commit | ede77d297fb79263af866d302dd307af7ceb04fd (patch) | |
| tree | f24a4792e1d24d45a6fb390b08fc5af2661bbc37 /hw/virtio-serial.h | |
| parent | ed7ec8400707fe42f4a0f40db2f2d5827ecea789 (diff) | |
| parent | 7edfe65246e57c1970f72146c6ea11f8d3a71e2d (diff) | |
| download | focaccia-qemu-ede77d297fb79263af866d302dd307af7ceb04fd.tar.gz focaccia-qemu-ede77d297fb79263af866d302dd307af7ceb04fd.zip | |
Merge remote-tracking branch 'amit/for-anthony' into staging
Diffstat (limited to 'hw/virtio-serial.h')
| -rw-r--r-- | hw/virtio-serial.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/hw/virtio-serial.h b/hw/virtio-serial.h index 5eb948e3fd..36e9d222e5 100644 --- a/hw/virtio-serial.h +++ b/hw/virtio-serial.h @@ -75,7 +75,6 @@ typedef struct VirtIOSerialPortInfo VirtIOSerialPortInfo; */ struct VirtIOSerialPort { DeviceState dev; - VirtIOSerialPortInfo *info; QTAILQ_ENTRY(VirtIOSerialPort) next; @@ -119,8 +118,10 @@ struct VirtIOSerialPort { uint32_t iov_idx; uint64_t iov_offset; - /* Identify if this is a port that binds with hvc in the guest */ - uint8_t is_console; + /* + * When unthrottling we use a bottom-half to call flush_queued_data. + */ + QEMUBH *bh; /* Is the corresponding guest device open? */ bool guest_connected; @@ -132,6 +133,10 @@ struct VirtIOSerialPort { struct VirtIOSerialPortInfo { DeviceInfo qdev; + + /* Is this a device that binds with hvc in the guest? */ + bool is_console; + /* * The per-port (or per-app) init function that's called when a * new device is found on the bus. |