Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vmw_balloon: do not use 2MB without batching
If the hypervisor sets 2MB batching is on, while batching is cleared, the balloon code breaks. In this case the legacy mechanism is used with 2MB page. The VM would report a 2MB page is ballooned, and the hypervisor would only take the first 4KB. While the hypervisor should not report such settings, make the code more robust by not enabling 2MB support without batching. Fixes: 365bd7e ("VMware balloon: Support 2m page ballooning.") Cc: [email protected] Reviewed-by: Xavier Deguillard <[email protected]> Signed-off-by: Nadav Amit <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information