On 18.11.2024 09:49, ngoc-tu.d...@vates.tech wrote: > --- a/tools/libs/guest/xg_cpuid_x86.c > +++ b/tools/libs/guest/xg_cpuid_x86.c > @@ -656,7 +656,7 @@ int xc_cpuid_apply_policy(xc_interface *xch, uint32_t > domid, bool restore, > p->policy.feat.mpx = test_bit(X86_FEATURE_MPX, host_featureset); > } > > - p->policy.basic.max_leaf = min(p->policy.basic.max_leaf, 0xdu); > + p->policy.basic.max_leaf = min(p->policy.basic.max_leaf, 0x1cu); > p->policy.feat.max_subleaf = 0; > p->policy.extd.max_leaf = min(p->policy.extd.max_leaf, 0x8000001c); > }
When I saw this change I took note of there being an omission in the AVX10 series I'm carrying. Yet now that I wanted to make the adjustment there, I found that this code needs leaving alone (also in your case). Please see the comment at the top of the enclosing if(). Jan