Thread (20 messages) 20 messages, 4 authors, 2025-02-21

Re: [PATCH v2 3/3] hyperv: Add CONFIG_MSHV_ROOT to gate root partition support

From: Easwar Hariharan <hidden>
Date: 2025-02-20 19:02:06
Also in: linux-arch, linux-hyperv, linux-iommu, lkml

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 <redacted>
---
 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 <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help