Skip to content
Commit 6dc2a774 authored by Sunil Muthuswamy's avatar Sunil Muthuswamy Committed by Wei Liu
Browse files

x86/Hyper-V: Support for free page reporting



Linux has support for free page reporting now (36e66c55) 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: default avatarSunil Muthuswamy <sunilmut@microsoft.com>
Tested-by: default avatarMatheus Castello <matheus@castello.eng.br>
Reviewed-by: default avatarMichael Kelley <mikelley@microsoft.com>
Tested-by: default avatarNathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/SN4PR2101MB0880121FA4E2FEC67F35C1DCC0649@SN4PR2101MB0880.namprd21.prod.outlook.com


Signed-off-by: default avatarWei Liu <wei.liu@kernel.org>
parent 1b602808
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment