diff options
author | Dmitry Torokhov <dtor@vmware.com> | 2011-01-12 17:01:07 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 08:03:22 -0800 |
commit | d27a0c06ec31aadc3582f50cd7b88855922e95ae (patch) | |
tree | 973b581f14c05e5de869468d5771ffcdba4fe063 /drivers/media/video/omap24xxcam.h | |
parent | 17fecb5582962c2ca5627a51ec9ab0979fb673ef (diff) | |
download | linux-d27a0c06ec31aadc3582f50cd7b88855922e95ae.tar.bz2 |
VMware balloon: stop locking pages when hypervisor tells us enough
When hypervisor decides to decrease target balloon size while the balloon
driver tries to lock pages hypervisor may respond with
VMW_BALLOON_PPN_NOTNEEDED. Use this data and immediately stop reserving
pages and wait for the next update cycle to fetch new target instead of
continuing trying to lock pages until size of refused list grows above
VMW_BALLOON_MAX_REFUSED (16) pages.
As a result the driver stops bothering the hypervisor with its attempts to
lock more pages that are not needed anymore. Most likely next order from
hypervisor will be to reduce ballon size anyway.
It is a small optimization.
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/media/video/omap24xxcam.h')
0 files changed, 0 insertions, 0 deletions