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

XEN_SYSCTL_cpu_policy_hvm_default truncates leaf count


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Thu, 1 Jul 2021 12:56:23 +0200
  • Authentication-results: strato.com; dkim=none
  • Delivery-date: Thu, 01 Jul 2021 10:56:53 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

For some reason migration of HVM domUs from pre-4.14 to staging is broken.

It seems xc_cpuid_apply_policy gets nr_leaves=119 from 
XEN_SYSCTL_get_cpu_policy.
Later XEN_SYSCTL_cpu_policy_hvm_default truncates this value to 31.
As a result x86_cpuid_copy_to_buffer returns -ENOBUFS. It would copy up to 51 
leaves in my testing.

I suspect commit 34990446ca91d9e201ff17bd4e3f43bfe3ad308e just revealed a logic 
error somewhere.

What is supposed to happen in libxl__srm_callout_callback_static_data_done when 
XGR_SDD_MISSING_CPUID is set?

Olaf

Attachment: pgpfW1DTBsVfO.pgp
Description: Digitale Signatur von OpenPGP


 


Rackspace

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