xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* XEN_SYSCTL_cpu_policy_hvm_default truncates leaf count
@ 2021-07-01 10:56 Olaf Hering
  2021-07-01 11:19 ` Andrew Cooper
  0 siblings, 1 reply; 12+ messages in thread
From: Olaf Hering @ 2021-07-01 10:56 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

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 #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-07-01 16:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-01 10:56 XEN_SYSCTL_cpu_policy_hvm_default truncates leaf count Olaf Hering
2021-07-01 11:19 ` Andrew Cooper
2021-07-01 11:36   ` Olaf Hering
2021-07-01 12:35     ` Andrew Cooper
2021-07-01 13:15       ` Olaf Hering
2021-07-01 15:00   ` Olaf Hering
2021-07-01 15:13     ` Andrew Cooper
2021-07-01 15:18       ` Olaf Hering
2021-07-01 15:25         ` Andrew Cooper
2021-07-01 16:23           ` Olaf Hering
2021-07-01 16:28             ` Andrew Cooper
2021-07-01 16:32               ` Olaf Hering

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).