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

Re: [PATCH for-4.21] fix xl.cfg docs to correct viridian defaults list


  • To: James Dingwall <james-xen@xxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Fri, 7 Nov 2025 22:50:39 +0000
  • 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=ZqwxiOrD/gYMZ/l+Bx7Y9hfeywbPkllx7n6cpZI53j4=; b=h211SrQ79DbfVFKsDxvKXbxJ/8s0q9XjTkMhC0JP26b5Yk40CuzfWE0dMJmfkHIJBBQhYhfL8Cch/WIWVY4eh3f0uMJvLlzr0zGNHcPwQWOy0PHiYL1evPUDPnb2D8PbazLUEU16n8USTjxNy066RIa4250Bc6tupBrJ+NqVO683mHe+EWXSp9uI/yectybK7n+rAFC5zZq++vSIQwtupAd1ra0loOXQgcV++GnS8XMv/oKrTY7sJueMPHSCcUW/P2RpQdEma41EpWYdm6aMpokr+W4YonXnBXs8uJLhOxN1jCuoHtr+WB9AtS4e4qENS5CUNwERdAWLRTygPpIvuw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Yo5gf8hguAXWSkivfbagHAm8FcLMa+7xZayMV/yH9Pz76ezQrtsmbIr56CM9z3DztyHB3ywJjuLyZbMZyKKJavNN4tCskaVgr+qQshvCHDwlU4hb4UnllNj7DDagBO4c8z8HW7gJO8kEVCs7vFGJpGv40t9UZXXc11X0yRGdjdYIjCJ4/4KeQAHosOqFiPC2f7NvK7MTI6cANUMvjS4MoBvpnVRAGi6zoW7CYnQjro91XxgE3Fzlo6dMuD6K4tmquU8R4C8yiYTC55Y2gtQzaVWUE3vBTRf1VUq92XVP/i83yawT5fhOa990CKQAfHL9EgLBrgh+93Bt00kw9z2WTQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
  • Delivery-date: Fri, 07 Nov 2025 22:51:04 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 07/11/2025 7:23 pm, James Dingwall wrote:
> Hi,
>
> I was trying to work out why this would cause my Windows 10 guest to hang
> when it should have been equivalent to ['defaults'] or 1.
>
> viridian = ['base', 'freq', 'apic_assist', 'crash_ctl', 'no_vp_limit', 
> 'cpu_hotplug', 'time_ref_count', 'stimer']
>
> Checking the libxl sources show that in fact the defaults are:
>
>     if (libxl_defbool_val(info->u.hvm.viridian)) {
>         /* Enable defaults */
>         libxl_bitmap_set(&enlightenments, LIBXL_VIRIDIAN_ENLIGHTENMENT_BASE);
>         libxl_bitmap_set(&enlightenments, LIBXL_VIRIDIAN_ENLIGHTENMENT_FREQ);
>         libxl_bitmap_set(&enlightenments, 
> LIBXL_VIRIDIAN_ENLIGHTENMENT_TIME_REF_COUNT);
>         libxl_bitmap_set(&enlightenments, 
> LIBXL_VIRIDIAN_ENLIGHTENMENT_APIC_ASSIST);
>         libxl_bitmap_set(&enlightenments, 
> LIBXL_VIRIDIAN_ENLIGHTENMENT_CRASH_CTL);
>         libxl_bitmap_set(&enlightenments, 
> LIBXL_VIRIDIAN_ENLIGHTENMENT_NO_VP_LIMIT);
>         libxl_bitmap_set(&enlightenments, 
> LIBXL_VIRIDIAN_ENLIGHTENMENT_CPU_HOTPLUG);
>     }
>
> LIBXL_VIRIDIAN_ENLIGHTENMENT_STIMER was removed as a default enlightement in
> e83077a3d11072708a5c38fa09fa9d011914e2a1 but the docs were not kept aligned.

Hmm, indeed.

For the patch, Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

It should have a fixes tag, but I can fix that on commit.

CC'ing Oleksii.  This is a docs fix should be considered for 4.21 at
this juncture.

~Andrew



 


Rackspace

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