[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 1/2] x86/viridian: Workaround Hyper-V GP fault writing to MSR
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>
- Date: Thu, 3 Sep 2026 12:26:40 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Hf34BtU4NNagwBS8fBXREcIw1YPqhlc5/2yGbByNCZE=; b=Du7UqTxwdE+/CQHcggpAv7g8ts9DFB9RNX+lU5lKcrp5ah1eFgoTyhN3zmNnQHiPbSZQuN42i75m1DydmDDGQSRcj4TZMPLxjUdUPmoRr/ABUp8aB1FpdJHcO7ktpDPjR7zedpwdM94d71hM0OqlrntGnn5t1knIgU/WBLD6U+zOl16NR+1JMCCRibcVnk6FE2uYssMdpAN9TSDpqHQ5lzubklTIKny+5kqW1OvTyGfdUWU7I80I5z3qKDdLJddRXyu8R80lmuU03yT6Z37WCK61ZINZuKsZH9ub2LQGM1YX290oFo36aJdD4RdFw5XsZITe46ithg10DcUAOOpSuQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UuawMFK1YXaT7S8LitRKXURhxET9yKyZEG6na+YF+aqFM13NYMLH97l2c2i/kjG0QT4uoONXQPLyDcK/PX03PzZLUVwrrJ8E7QeISowe4MnSWNe2F6Y94jI0VH+QxpqlmHnRzNDua2pi4qrhvtOAq1iR1Qj2iGBYzJqAbasQIEOLnjh6S5xQaLUIlt6V+X2yCxaFNyh4hQO1TFRiYmrZlSMQg81HE3AAvTHhnBRQKHRkKIrniS3s29O29kHFpp2WaP+LUJ5ZrPteioCAvUth2aS0HXsY7HwXUJl3pPlfdWbV8axBBnNOBjC7eVvaFjtefauqqmYu+wnw1PlFfPq8NQ==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=citrix.com header.i="@citrix.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Paul Durrant <paul@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Thu, 03 Sep 2026 11:26:56 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 9/3/26 12:14 PM, Jan Beulich wrote:
On 03.09.2026 12:55, Ross Lagerwall wrote:
On 9/3/26 11:44 AM, Jan Beulich wrote:
On 28.08.2026 15:11, Ross Lagerwall wrote:
The Viridian spec requires the vector to be >= 0x10 when writing to the
SINTx MSR, otherwise it should #GP fault.
The spec-defined initial value is 0x0000000000010000, i.e. the vector is
0. On startup, for some reason Windows 11 Hyper-V tries to set the MSR to
the spec-defined initial value and since the vector is 0, it GP faults.
To workaround this, treat the write as a no-op if the value is
unchanged.
Signed-off-by: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
I expect that despite the (valid) absence of a Fixes: tag this will want
backporting.
It should be fine to backport, though in general I think backporting nested
virt fixes at this point is not needed as there will be too many changes to go
into the stable releases for it to reach a usable state.
How is this nested-virt related? It looks to affect Win11 when run on bare-
metal Xen?
The regular Windows 11 kernel doesn't have this behaviour on startup, only the
Windows 11 Hyper-V kernel (and possibly other Windows versions too) so you
wouldn't encounter this behaviour unless using nested-virt.
Ross
|