[PATCH v2 3/3] hyperv: Add CONFIG_MSHV_ROOT to gate root partition support
Easwar Hariharan
eahariha at linux.microsoft.com
Thu Feb 20 11:02:06 PST 2025
On 2/20/2025 10:33 AM, Nuno Das Neves wrote:
> CONFIG_MSHV_ROOT allows kernels built to run as a normal Hyper-V guest
> to exclude the root partition code, which is expected to grow
> significantly over time.
>
> This option is a tristate so future driver code can be built as a
> (m)odule, allowing faster development iteration cycles.
>
> If CONFIG_MSHV_ROOT is disabled, don't compile hv_proc.c, and stub
> hv_root_partition() to return false unconditionally. This allows the
> compiler to optimize away root partition code blocks since they will
> be disabled at compile time.
>
> Signed-off-by: Nuno Das Neves <nunodasneves at linux.microsoft.com>
> ---
> drivers/hv/Kconfig | 16 ++++++++++++++++
> drivers/hv/Makefile | 3 ++-
> include/asm-generic/mshyperv.h | 24 ++++++++++++++++++++----
> 3 files changed, 38 insertions(+), 5 deletions(-)
Looks good to me.
Reviewed-by: Easwar Hariharan <eahariha at linux.microsoft.com>
More information about the linux-arm-kernel
mailing list