On 08.12.2025 15:58, Teddy Astie wrote: > host_cpu_policy already fetched the SVM CPUIDs, use it instead of open-coding > cpuid. > > Signed-off-by: Teddy Astie <[email protected]> > --- > It very likely doesn't work right now, as host_cpu_policy is not evaluated at > this point > (start_svm is unfortunately called before calculate_host_policy). So this is > mostly a intent > rather than something ready. > > There are also some other things I would like to improve on this, but not > sure on the approach. > > It would be nice to move svm_feature_flags to host_cpu_policy, alike other > bitmap-like leafs we have in cpu_policy. IOW move most of > arch/x86/include/asm/hvm/svm/svm.h > to cpu_policy infrastructure, which could also serve later for properly > managing nested SVM > features of a guest.
See https://lists.xen.org/archives/html/xen-devel/2024-06/msg01546.html Jan
