diff options
author | Sunil Muthuswamy <sunilmut@microsoft.com> | 2021-03-23 21:47:16 +0300 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2021-03-24 14:35:24 +0300 |
commit | 6dc2a774cb4fdb524b7eb0b8db74198a1b4815ea (patch) | |
tree | 537cf3fba82d5d7e438f930a428b564c8d6b6e8e /drivers/hv/Kconfig | |
parent | 1b60280834683dddf4975bbf9662a74f123ba770 (diff) | |
download | linux-6dc2a774cb4fdb524b7eb0b8db74198a1b4815ea.tar.xz |
x86/Hyper-V: Support for free page reporting
Linux has support for free page reporting now (36e66c554b5c) for
virtualized environment. On Hyper-V when virtually backed VMs are
configured, Hyper-V will advertise cold memory discard capability,
when supported. This patch adds the support to hook into the free
page reporting infrastructure and leverage the Hyper-V cold memory
discard hint hypercall to report/free these pages back to the host.
Signed-off-by: Sunil Muthuswamy <sunilmut@microsoft.com>
Tested-by: Matheus Castello <matheus@castello.eng.br>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/SN4PR2101MB0880121FA4E2FEC67F35C1DCC0649@SN4PR2101MB0880.namprd21.prod.outlook.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'drivers/hv/Kconfig')
-rw-r--r-- | drivers/hv/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig index 79e5356a737a..66c794d92391 100644 --- a/drivers/hv/Kconfig +++ b/drivers/hv/Kconfig @@ -23,6 +23,7 @@ config HYPERV_UTILS config HYPERV_BALLOON tristate "Microsoft Hyper-V Balloon driver" depends on HYPERV + select PAGE_REPORTING help Select this option to enable Hyper-V Balloon driver. |