[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XEN][PATCH v3] x86: make Viridian support optional


  • To: Grygorii Strashko <grygorii_strashko@xxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>
  • From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • Date: Fri, 26 Sep 2025 15:34:38 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=epam.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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=C9R1bsZg9zFi5SZMiIHOuy0km5G04Yq6pWuw7XLIbIo=; b=wQIek832Es7bXtmq0e5dADk3be8BQuM/9O25kMzcaA/7qf1IqpuNoCIAifziW5ZQV2BIpCMp9o3atqTerysp2q0JHz9p1I4SbQgTzauclBKtjMWltFHanW2z4Qcrx27k4ujikvAfg19kYnXyRv0LP80K3czFrnjwidoTr8WxfwAMh/I3+NIZfCn17JLUG9k2eUV/2oZ6Xby5kOqozQcWYIgLJPOw+TFv0cNbydOkx4FKTSQS+wWi0Zij16Cwk4oyilzPKi2Ni4HQZ/5w5ZflJFxNjmUgabbNb3qya2BQFm1pXlE4yDQPQMegrH3psc6zYHTBjeAnvw4WCAg33mn1mg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=grI3qLNzErFJNJbCFtGWZ48dCYtHZhLYVG4UGqeD4KB1FSMxnDhxzvo9Rkfwid480H5HRGGEJHBA/z0PDHt0V9IULcFIi42tThpGPKsmFb9V6V0DBfcisNnLbywXdYmy4ku5Zm0YTDG1AyXLXrxxq2pj+UPdgei4ZlW+KqzKEjKpinlwFTnv6C0yxAbfc/v7yr6dMu6RaKaKbEo/IouyaS5vLMrLOi9Sec7NC060e8sTeHGBDXoBUeqftobmDCLtrrgspZ+44Q+Sx6xlp81yZQL4y868U+A59deOziPRLPOS4Cg1Ui1AsOSYDlFNGeYl6uPjL2xUubc6A3rWfvAEpA==
  • Cc: Sergiy Kibrik <Sergiy_Kibrik@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Paul Durrant <paul@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 26 Sep 2025 13:35:07 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Thu Sep 18, 2025 at 7:13 PM CEST, Grygorii Strashko wrote:
>
>
> On 18.09.25 18:19, Jan Beulich wrote:
>> On 18.09.2025 17:15, Grygorii Strashko wrote:
>>> On 16.09.25 16:41, Grygorii Strashko wrote:
>>>> --- a/xen/arch/x86/hvm/Kconfig
>>>> +++ b/xen/arch/x86/hvm/Kconfig
>>>> @@ -62,6 +62,16 @@ config ALTP2M
>>>>    
>>>>              If unsure, stay with defaults.
>>>>    
>>>> +config HVM_VIRIDIAN
>>>> +  bool "Hyper-V enlightenments for guests" if EXPERT
>>>> +  default y
>>>> +  help
>>>> +    Support optimizations for Hyper-V guests such as faster hypercalls,
>>>> +    efficient timer and interrupt handling, and enhanced paravirtualized
>>>> +    I/O. This is to improve performance and compatibility of Windows VMs.
>>>> +
>>>> +    If unsure, say Y.
>>>> +
>>>
>>> Actually there is a question for x86 Experts -
>>> Does it make sense to have HVM_VIRIDIAN enabled without enabled 
>>> AMD_SVM/INTEL_VMX Virtualization extensions?
>> 
>> It makes as much or as little sense as HVM=y with both of the ones you 
>> mention
>> turned off. Iirc Andrew in particular wanted to permit such configurations, 
>> to
>> allow to prove the (abstract) correctness of building them, even if the
>> resulting hypervisor may be of little use.
>
> I've been thinking about adding "depends on AMD_SVM || INTEL_VMX"
> to cleanly note dependency.

If anything, it would be CONFIG_HVM. Pretty sure one can't sanely implement
minimal viridian fully on PV. Certain extensions assume some degree of hardware
emulation.

> It's very hard to understand dependencies within x86 code :(

They are very sparsely documented, you're not wrong.

Cheers,
Alejandro



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.