mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 15:11:31 +00:00
6dc2a774cb
Linux has support for free page reporting now (36e66c554b
) 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>
31 lines
714 B
Plaintext
31 lines
714 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
menu "Microsoft Hyper-V guest support"
|
|
|
|
config HYPERV
|
|
tristate "Microsoft Hyper-V client drivers"
|
|
depends on X86 && ACPI && X86_LOCAL_APIC && HYPERVISOR_GUEST
|
|
select PARAVIRT
|
|
select X86_HV_CALLBACK_VECTOR
|
|
help
|
|
Select this option to run Linux as a Hyper-V client operating
|
|
system.
|
|
|
|
config HYPERV_TIMER
|
|
def_bool HYPERV
|
|
|
|
config HYPERV_UTILS
|
|
tristate "Microsoft Hyper-V Utilities driver"
|
|
depends on HYPERV && CONNECTOR && NLS
|
|
help
|
|
Select this option to enable the Hyper-V Utilities.
|
|
|
|
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.
|
|
|
|
endmenu
|