[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] x86/hvm: Clamp Viridian features to known set
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>
- Date: Thu, 24 Sep 2026 16:30:37 +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=nnHiWMHoKc3fpqnzFPc2Jv5W3thflSOCUs3uyXfRWSU=; b=nqTBXswS5CDjx3UXm1MdWuMZhTe/BmkCf8qPdGo6pdw8opdKttUD0d3xi7O8IriAlv4Yh3q4HAOXwBRB/Y6EFMvQNOcxksEJ6y7KvdgHkaWBlJvEjSWRgzNg1C24L0MT1x80OMW740lZXIryBonWGlFlxuepj9O59aAdeMe1GdM0cNRqHa87eimrbr1Xgg0G7xgHSZcR4FWDFbJsEPBs8tLC63tuBQx901X1bB+AkpfnB6WvLm8KLZIhuSefT3Fq9fp+wYRSoeomuPu3ow982/Bhj4p0yX1ePKiW23kBUwl2qmjt4C52kCSnPNWLU/SmyQJbmtL6YQQmNoFZQwyErw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Mr4xwyBeq0Op3KetQWdOqIMBUFqh0K7MQW8EcBZ8QNvIKsnyAM3SAUr9qP4a43pAyNikf1dzQE7uM6IpCX3cci8YJOT7sdSwltsFAQj+PpaNmTmPxJo0dOfHglauS5dG/fTRhxEglGQac4ucmBshTpuZz0mIuITfRNTeM5WSaDdqwN+9cryXBBIrhNOqRSwp37o4uTELglKRHzjctJRpZOFGlXRmMBvW2sz278+Rbtk+YdywHhXz95G2AYwB5BtzOr5XRP7EJBhayZASLOacHsSwLg7FlVtzB3yMuM1586yOxzkOa0PxpURmHqwB3Jj/ayu2HAuR6Yz2Dq3PYL8GXw==
- 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: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Thu, 24 Sep 2026 15:30:51 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 9/24/26 2:08 PM, Jan Beulich wrote:
On 24.09.2026 14:56, Ross Lagerwall wrote:
On 9/24/26 12:20 PM, Andrew Cooper wrote:
On 24/09/2026 12:03 pm, Ross Lagerwall wrote:
Instead of returning EINVAL on an unknown feature bit, clamp to the
known feature set.
Sorry, but no.
This is equivalent to saying "I've got a VM using AVX512" and Xen saying
"ok, I'll ignore that safety check and let you run on non-AVX512 capable
hardware".
Requesting a feature that Xen doesn't know about is a hard error.
Truncating features out like this will cause a guest using those
features to malfunction.
It is a bug that this was expressed as an HVM Param in the first place.
It should be part of CPU Policy, and it's on a TODO list.
But isn't this the same thing the CPU Policy code does? In
recalculate_cpuid_policy(), it silently clamps the toolstack's choices to the
max featureset.
Which is behavior that, if I'm not mistaken, is supposed to go away. Such
requests are intended to instead fail, down the road.
OK, if that is undesirable behaviour and going to change in future I'll retract
this patch.
Ross
|