public inbox for linux-hyperv@vger.kernel.org
 help / color / mirror / Atom feed
From: Anatol Belski <anbelski@linux.microsoft.com>
To: linux-hyperv@vger.kernel.org
Cc: wei.liu@kernel.org, muislam@microsoft.com
Subject: [PATCH 3/4] drivers: hv: enable nested virtualization
Date: Wed, 18 Feb 2026 14:48:01 +0000	[thread overview]
Message-ID: <20260218144802.1962513-3-anbelski@linux.microsoft.com> (raw)
In-Reply-To: <20260218144802.1962513-1-anbelski@linux.microsoft.com>

From: Muminul Islam <muislam@microsoft.com>

Based on the bits provided by VMM, enable the nested
virtualization in the partition creation flag.

Signed-off-by: Muminul Islam <muislam@microsoft.com>
---
 drivers/hv/mshv_root_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/hv/mshv_root_main.c b/drivers/hv/mshv_root_main.c
index 681b58154d5e..fb3ade44e1f1 100644
--- a/drivers/hv/mshv_root_main.c
+++ b/drivers/hv/mshv_root_main.c
@@ -1921,6 +1921,8 @@ static long mshv_ioctl_process_pt_flags(void __user *user_arg, u64 *pt_flags,
 		*pt_flags |= HV_PARTITION_CREATION_FLAG_X2APIC_CAPABLE;
 	if (args.pt_flags & BIT_ULL(MSHV_PT_BIT_GPA_SUPER_PAGES))
 		*pt_flags |= HV_PARTITION_CREATION_FLAG_GPA_SUPER_PAGES_ENABLED;
+	if (args.pt_flags & BIT(MSHV_PT_BIT_NESTED_VIRTUALIZATION))
+		*pt_flags |= HV_PARTITION_CREATION_FLAG_NESTED_VIRTUALIZATION_CAPABLE;
 
 	isol_props->as_uint64 = 0;
 
-- 
2.34.1


  parent reply	other threads:[~2026-02-18 14:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-18 14:47 [PATCH 1/4] mshv: Add nested virtualization creation flag Anatol Belski
2026-02-18 14:48 ` [PATCH 2/4] hyperv: uapi: Add bit for nested virtualization Anatol Belski
2026-02-18 14:48 ` Anatol Belski [this message]
2026-02-18 14:48 ` [PATCH 4/4] mshv: Add SMT_ENABLED_GUEST partition creation flag Anatol Belski
2026-02-18 17:09 ` [PATCH 1/4] mshv: Add nested virtualization " Easwar Hariharan
2026-02-18 23:55 ` Wei Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260218144802.1962513-3-anbelski@linux.microsoft.com \
    --to=anbelski@linux.microsoft.com \
    --cc=linux-hyperv@vger.kernel.org \
    --cc=muislam@microsoft.com \
    --cc=wei.liu@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox