Skip to contentSkip to conversation

virtio-serial: disable event throttling

GIT PULL Amit Shah 3 participants 9 messages Sep 1, 2015

lore
Share & tools
lore

Amit Shah

author
#0 lore raw

The following changes since commit 090d0bfd948343d522cd20bc634105b5cfe2483b:

s390: fix softmmu compilation (2015-08-28 16:05:24 +0100)

are available in the git repository at:

https://git.kernel.org/pub/scm/qemu/amit/virtio-serial vser-for-2.5

for you to fetch changes up to 1717c47170ec8df29d1c314761d9caf736c8b274:

monitor: remove QAPI_EVENT_VSERPORT_CHANGE throttle (2015-09-01 17:16:24 +0530)

----------------------------------------------------------------
Disable event throttling for virtio-serial ports - events were throttled per-device instead of per-port, leading to missed events by higher layers.

----------------------------------------------------------------
Marc-André Lureau (1):
monitor: remove QAPI_EVENT_VSERPORT_CHANGE throttle

 monitor.c | 1 -
 1 file changed, 1 deletion(-)
Signature · 1 line
2.4.3
author
#1 lore raw

[Qemu-devel] [PULL 1/1] monitor: remove QAPI_EVENT_VSERPORT_CHANGE throttle

From: Marc-André Lureau <[email protected]>

QAPI_EVENT_VSERPORT_CHANGE reports changes of a virtio serial port state. However, the events may be for different ports, but the throttle mechanism may replace the event for a different port, since it only checks the event type.

libvirt relies on a correct state to be reported for all channels: the qemu-ga commands may no longer work if the state is reported disconnected. This can be triggered easily by having more than 1 virtio-serial (qemu-ga + spice agent for example), and restarting quickly daemons or more realistically going quickly in and out of suspend.

In a future patch, we may want to throttle events based on their arguments, but this will likely require dynamic allocations and more complicated code to insert/lookup pending events based on various arguments ("id" in QAPI_EVENT_VSERPORT_CHANGE case).

Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=1244064

Message-Id: <[email protected]>

---
 monitor.c | 1 -
 1 file changed, 1 deletion(-)
monitor.c +0 -1
index fc32f12..16aa92c 100644
@@ -558,7 +558,6 @@ static void monitor_qapi_event_init(void)
     monitor_qapi_event_throttle(QAPI_EVENT_BALLOON_CHANGE, 1000);
     monitor_qapi_event_throttle(QAPI_EVENT_QUORUM_REPORT_BAD, 1000);
     monitor_qapi_event_throttle(QAPI_EVENT_QUORUM_FAILURE, 1000);
-    monitor_qapi_event_throttle(QAPI_EVENT_VSERPORT_CHANGE, 1000);
 
     qmp_event_set_func_emit(monitor_qapi_event_queue);
 }
Signature · 1 line
2.4.3
author
#3 lore raw
Quoted 5 lines · Peter Maydell
Quoted 4 lines · Amit Shah

The following changes since commit 090d0bfd948343d522cd20bc634105b5cfe2483b:

s390: fix softmmu compilation (2015-08-28 16:05:24 +0100)

Quoted 8 lines
Quoted 3 lines

are available in the git repository at:

https://git.kernel.org/pub/scm/qemu/amit/virtio-serial vser-for-2.5

fatal: repository 'https://git.kernel.org/pub/scm/qemu/amit/virtio-serial/' not found

Typo?

Huh; yeah. I wonder why request-pull nevertheless gave me the pull blob.

Amit

#4 lore raw
In reply to Amit Shah

Hi Amit

Out of curiosity, did you check the series "monitor: throttle VSERPORT_CHANGED by id"? That would fix the throttling instead of just removing it. This can be applied later, but reviews are always welcome :)

thanks

Signature · 1 line
Marc-André Lureau
author
#5 lore raw
Quoted 6 lines · Marc-André Lureau

Hi Amit

Out of curiosity, did you check the series "monitor: throttle VSERPORT_CHANGED by id"? That would fix the throttling instead of just removing it. This can be applied later, but reviews are always welcome :)

So do you want to wait for that series to be ready instead of pulling this in now? I'm fine with either approach.

Also: it helps to CC the people you want to review the series - I had missed that one.

Amit

#6 lore raw

Hi

Quoted 2 lines · Amit Shah

So do you want to wait for that series to be ready instead of pulling this in now? I'm fine with either approach.

I am fine with both too, I just wanted to point out that there is a already a follow-up.

Quoted 2 lines

Also: it helps to CC the people you want to review the series - I had missed that one.

oops, sorry I missed the CC

Signature · 1 line
Marc-André Lureau
#7 lore raw
In reply to Amit Shah
Quoted 10 lines · Amit Shah
Quoted 6 lines · Marc-André Lureau

Hi Amit

Out of curiosity, did you check the series "monitor: throttle VSERPORT_CHANGED by id"? That would fix the throttling instead of just removing it. This can be applied later, but reviews are always welcome :)

So do you want to wait for that series to be ready instead of pulling this in now? I'm fine with either approach.

I'm going to assume you'll send me a fixed pullreq mail when you've figured out what you want in it; for now I'm dropping this from my to-process queue.

thanks
-- PMM

author
#8 lore raw
Quoted 9 lines · Peter Maydell
Quoted 8 lines · Amit Shah
Quoted 6 lines · Marc-André Lureau

Hi Amit

Out of curiosity, did you check the series "monitor: throttle VSERPORT_CHANGED by id"? That would fix the throttling instead of just removing it. This can be applied later, but reviews are always welcome :)

Quoted 6 lines
Quoted 2 lines

So do you want to wait for that series to be ready instead of pulling this in now? I'm fine with either approach.

I'm going to assume you'll send me a fixed pullreq mail when you've figured out what you want in it; for now I'm dropping this from my to-process queue.

Right - sorry I should've made that clear.

Thanks,

Amit