mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Improvements to virtio_balloon pm
@ 2024-03-21  1:24 David Stevens
  2024-03-21  1:24 ` [PATCH v2 1/2] virtio_balloon: Give the balloon its own wakeup source David Stevens
  2024-03-21  1:24 ` [PATCH v2 2/2] virtio_balloon: Treat stats requests as wakeup events David Stevens
  0 siblings, 2 replies; 3+ messages in thread
From: David Stevens @ 2024-03-21  1:24 UTC (permalink / raw)
  To: Michael S . Tsirkin, David Hildenbrand
  Cc: virtualization, linux-kernel, David Stevens

From: David Stevens <stevensd@chromium.org>

The virtio_balloon driver uses wakeup sources to allow the guest to
enter system power management sleep states (e.g. s2idle) without running
the risk of becoming unresponsive to cooperative memory management
requests from the host. This series fixes an issue where wakeup sources
for inflate/deflate were improperly shared between drivers. It also
closes a race where stats requests that come in immediately before a
sleep state transition could fail to be handled in a timely manner.

v1: https://lore.kernel.org/lkml/20240318091034.535573-1-stevensd@google.com/

v1 -> v2:
 - Add comment about virtio-balloon's wakeup source
 - Rename virtio-balloon wakeup event macros

David Stevens (2):
  virtio_balloon: Give the balloon its own wakeup source
  virtio_balloon: Treat stats requests as wakeup events

 drivers/virtio/virtio_balloon.c | 84 +++++++++++++++++++++------------
 1 file changed, 55 insertions(+), 29 deletions(-)


base-commit: e8f897f4afef0031fe618a8e94127a0934896aba
-- 
2.44.0.291.gc1ea87d7ee-goog


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-21  1:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-21  1:24 [PATCH v2 0/2] Improvements to virtio_balloon pm David Stevens
2024-03-21  1:24 ` [PATCH v2 1/2] virtio_balloon: Give the balloon its own wakeup source David Stevens
2024-03-21  1:24 ` [PATCH v2 2/2] virtio_balloon: Treat stats requests as wakeup events David Stevens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®