vmw_balloon: support 64-bit memory limit
authorXavier Deguillard <xdeguillard@vmware.com>
Wed, 6 Feb 2019 23:57:02 +0000 (15:57 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Feb 2019 11:13:41 +0000 (12:13 +0100)
commit5539830278fa96b9e78030ad80f9f4cfc3dc29e1
tree2c9a66dcc19636912e24c8f77d437e9d50675733
parent47f8d9957d5080d03b70a9af481151e0953f844c
vmw_balloon: support 64-bit memory limit

Currently, the balloon driver would fail to run if memory is greater
than 16TB of vRAM. Previous patches have already converted the balloon
target and size to 64-bit, so all that is left to do add is to avoid
asserting memory is smaller than 16TB if the hypervisor supports 64-bits
target.

The driver advertises a new capability VMW_BALLOON_64_BITS_TARGET.
Hypervisors that support 16TB of memory or more will report that this
capability is enabled.

Signed-off-by: Xavier Deguillard <xdeguillard@vmware.com>
Signed-off-by: Nadav Amit <namit@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vmw_balloon.c