summaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm
diff options
context:
space:
mode:
authorDavid Stevens <stevensd@chromium.org>2024-01-10 11:19:25 +0900
committerMichael S. Tsirkin <mst@redhat.com>2024-01-10 13:01:06 -0500
commitb12fbc3f787e3d7e47af274a761fdee6e867bc7d (patch)
tree9c868fb790a4318aa19a5fea58a21a4f78cd6d91 /drivers/nvdimm
parentc271fcd9095f066e0e7104e6d8919e2cf26f0899 (diff)
downloadlinux-stable-b12fbc3f787e3d7e47af274a761fdee6e867bc7d.tar.gz
linux-stable-b12fbc3f787e3d7e47af274a761fdee6e867bc7d.tar.bz2
linux-stable-b12fbc3f787e3d7e47af274a761fdee6e867bc7d.zip
virtio_balloon: stay awake while adjusting balloon
A virtio_balloon's parent device may be configured so that a configuration change interrupt is a wakeup event. Extend the processing of such a wakeup event until the balloon finishes inflating or deflating by calling pm_stay_awake/pm_relax in the virtio_balloon driver. Note that these calls are no-ops if the parent device doesn't support wakeup events or if the wakeup events are not enabled. This change allows the guest to use system power states such as s2idle without running the risk the virtio_balloon's cooperative memory management becoming unresponsive to the host's requests. Tested-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: David Stevens <stevensd@chromium.org> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Message-Id: <20240110021925.1137333-1-stevensd@google.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/nvdimm')
0 files changed, 0 insertions, 0 deletions