hv_balloon: Add the support of hibernation
authorDexuan Cui <decui@microsoft.com>
Wed, 20 Nov 2019 07:16:05 +0000 (23:16 -0800)
committerSasha Levin <sashal@kernel.org>
Fri, 22 Nov 2019 01:10:45 +0000 (20:10 -0500)
commit25bd2b2f1f05347a4cd633138d0e4c2fd5788359
treebb8f3d8478e2444eba5f251344ca1dc1821aff10
parentb96f86534fa3102fd07246cf8b6cb5cc96788597
hv_balloon: Add the support of hibernation

When hibernation is enabled, we must ignore the balloon up/down and
hot-add requests from the host, if any.

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hv/hv_balloon.c