mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
virtio-serial-bus: use bh for unthrottling
Instead of calling flush_queued_data when unthrottling, schedule a bh. That way we can return immediately to the caller, and the flush uses the same call path as a have_data for callbackee. No migration change is required because bh are called from vm_stop. Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com>
This commit is contained in:
parent
aa29141d84
commit
199646d815
2 changed files with 15 additions and 2 deletions
|
@ -119,6 +119,11 @@ struct VirtIOSerialPort {
|
|||
uint32_t iov_idx;
|
||||
uint64_t iov_offset;
|
||||
|
||||
/*
|
||||
* When unthrottling we use a bottom-half to call flush_queued_data.
|
||||
*/
|
||||
QEMUBH *bh;
|
||||
|
||||
/* Identify if this is a port that binds with hvc in the guest */
|
||||
uint8_t is_console;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue