Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=79.135.106.113 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796343167; b=KBcqy19bYbHcGlRvpfmYd3zVkWNDIRTX6v6Fv3kNsi6Gdy7igXxtolfob95Q7ZcpSmzM /ME9kOI0olU2l0T3qZp2KL9mwqNJgQN2rrDaldBPSn5wQBMugNXQHOKIoQHrA7BB7Smfw 0xreY+aMDNTPOJYgcM6YTrkYWu5NeYSOP/xd5FPieemKi8994xTwM2VZR+njkJUDDmwLJ mFIBQgu1mD2YLxLesBbXSqBs8BqYjK09FafXBJe1rr1jVWB7VQsR4QmaL61ce0V7kGnNo 88bLV1vzUQc+mw/X3XC3Jxf8wrtHH8+xijHDOKQG2pjOO//iQ3+dCUpJHV0Bz/kpzKQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796343167; h=DMARC-Filter:DKIM-Signature:X-Pm-Submission-Id:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=Jrj5by3e8UylnfxrsBjAWDekQbTDpj8pHXSBzAzHPoY=; b=X1lfcxz35NLCr7luYy6Q3MbG+KY+8banFRCoQjxR5nM45OjahKpuMYXN+mY7oNhJJc2n 5ig7CV9SksDlsShQxMhQ5dLaH6Gw7JB2QFVtfnUi/fHBgFRIddaIVziebGS7p5AU92PrX 6B3xzxF8WkkNlDofj8tn5jVKJNK2ssEq0K8PwdO9GnYLBt5lg6eW0+nA4z7ErzzjL+XVC hREwDDuw+9OKyJRQUFF3Ol7dVJDNhslks5LWyETxdGwfho4SxwsDjhomfGh6aNelOHAbO ox4BVRSBdIOcm1JHZIaCqmLWCeMcwHRMHKxAFsCeL9q2MLrcEp1zy8fmKbdLcoJC9rQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=reusswig.codes; spf=pass smtp.mailfrom=reusswig.codes; dkim=pass header.d=reusswig.codes header.i=@reusswig.codes header.a=rsa-sha256 header.s=protonmail3 header.b=lDhtnHTv; arc=none smtp.remote-ip=79.135.106.113 Received: from mail-106113.protonmail.ch (mail-106113.protonmail.ch [79.135.106.113]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3ACB3606A322 for ; Fri, 4 Dec 2026 00:12:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3ACB3606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=reusswig.codes Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=reusswig.codes Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=reusswig.codes header.i=@reusswig.codes header.a=rsa-sha256 header.s=protonmail3 header.b=lDhtnHTv DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=reusswig.codes; s=protonmail3; t=1796343163; x=1796602363; bh=Jrj5by3e8UylnfxrsBjAWDekQbTDpj8pHXSBzAzHPoY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=lDhtnHTvSuGxzA87vjMhDi4xxri0TtI8cx5EZqQSAfzCjfvRvbTC0RIPb0VySrwD0 iakgItzYIKO4DCsqWTRitmAlfYqK85ZrruGE9pXt+ixBmYWdYgSA3ykFuGS1OcrsrW k8smzRFhtQuePvPeXUCEaRhdl12X8Ly+uoaKTw8YF4ZDUZbkkJKoa8IQ+Aedy1ZVf4 TUTXKLLupmw55dsjJPPt/uz1sqEuKJMcZXnB+Hw5s2DvD1pGiKKELQ55ETgN1e1St2 HftWqnQp68KhHHkMgMYIzK9mtK7DJl90O6Yv5wQs1GPjCbIlnW17+r5EAh1g4qKclm CKRbcLtoUVKDw== X-Pm-Submission-Id: 4jgX4p30G7z2ScdQ From: =?UTF-8?q?Dennis=20Reu=C3=9Fwig?= To: Paolo Bonzini Cc: Sean Christopherson , Panayotis Katsaloulis , kvm@vger.kernel.org, Jon Kohler , =?UTF-8?q?Dennis=20Reu=C3=9Fwig?= Subject: Re: nVMX: Windows 11 with nested Hyper-V fails to boot when MBEC is exposed to L1 (7.2) Date: Fri, 4 Dec 2026 01:12:11 +0100 Message-ID: <20261204001211.6628-1-dennis@reusswig.codes> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: <58dcd595e3187d335e103a042d196cb7@panayotis.com> X-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi, I posted a fix for this: https://lore.kernel.org/r/20261204-nested-sss-v1-0-57de06f58b2b@reusswig.codes Hyper-V appears to turn on CET for its guests only when it is offered MBEC, and with CET it needs supervisor shadow-stack control for EPT (IA32_VMX_EPT_VPID_CAP bit 23), which KVM never offered; with eVMCS it also needs the CET VM-entry/exit controls, which KVM filtered out. The series adds both, including the PFERR_SS translation Paolo pointed out. Panayotis, if you can test it: the series is based on kvm-x86/next and applies with b4 shazam 20261204-nested-sss-v1-0-57de06f58b2b@reusswig.codes QEMU also has to pass bit 23 to L1, and 11.1 does not know it yet; the QEMU patch is here: https://lore.kernel.org/r/20261204-vmx-ept-sss-v1-1-5059141bd197@reusswig.codes A Tested-by for Windows with VBS, with the KVM series and the QEMU patch applied, with and without hv-evmcs, would be very welcome. Thanks for the report, Dennis