summaryrefslogtreecommitdiff
path: root/drivers/firmware/google/framebuffer-coreboot.c
diff options
context:
space:
mode:
authorNadav Amit <namit@vmware.com>2019-04-25 14:54:44 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-24 21:19:17 +0300
commit5d1a86ecf328586fbedf7b66595ac3c7039eb8c8 (patch)
tree05e87ca3fe5d5c0fe65f63d99325dd396c974f92 /drivers/firmware/google/framebuffer-coreboot.c
parent83a8afa72e9c0a200d9d400ce83a0cb5193b0e3d (diff)
downloadlinux-5d1a86ecf328586fbedf7b66595ac3c7039eb8c8.tar.xz
vmw_balloon: Add memory shrinker
Add a shrinker to the VMware balloon to prevent out-of-memory events. We reuse the deflate logic for this matter. Deadlocks should not happen, as no memory allocation is performed while the locks of the communication (batch/page) and page-list are taken. In the unlikely event in which the configuration semaphore is taken for write we bail out and fail gracefully (causing processes to be killed). Once the shrinker is called, inflation is postponed for few seconds. The timeout is updated without any lock, but this should not cause any races, as it is written and read atomically. This feature is disabled by default, since it might cause performance degradation. Reviewed-by: Xavier Deguillard <xdeguillard@vmware.com> Signed-off-by: Nadav Amit <namit@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/firmware/google/framebuffer-coreboot.c')
0 files changed, 0 insertions, 0 deletions