4a5780f520
When fire_watch_cb() found the response buffer empty, it would call
deliver_watch() to generate the XS_WATCH_EVENT message in the response
buffer and send an event channel notification to the guest… without
actually *copying* the response buffer into the ring. So there was
nothing for the guest to see. The pending response didn't actually get
processed into the ring until the guest next triggered some activity
from its side.
Add the missing call to put_rsp().
It might have been slightly nicer to call xen_xenstore_event() here,
which would *almost* have worked. Except for the fact that it calls
xen_be_evtchn_pending() to check that it really does have an event
pending (and clear the eventfd for next time). And under Xen it's
defined that setting that fd to O_NONBLOCK isn't guaranteed to work,
so the emu implementation follows suit.
This fixes Xen device hot-unplug.
Cc: qemu-stable@nongnu.org
Fixes:
|
||
---|---|---|
.. | ||
apic.c | ||
clock.c | ||
clock.h | ||
i8254.c | ||
i8259.c | ||
ioapic.c | ||
meson.build | ||
trace-events | ||
trace.h | ||
xen_evtchn.c | ||
xen_evtchn.h | ||
xen_gnttab.c | ||
xen_gnttab.h | ||
xen_overlay.c | ||
xen_overlay.h | ||
xen_xenstore.c | ||
xen_xenstore.h | ||
xen-stubs.c | ||
xenstore_impl.c | ||
xenstore_impl.h |