Oh, I should use guest_cpuid_has() instead of guest_can_use() here, thanks!then, can you switch to use guest_cpuid_has() for IBT here as you do a fewHmm, the inspiration actually came from Sean:+ if (kvm_cpu_cap_has(X86_FEATURE_IBT)) {can you use guest_can_use() or guest_cpuid_has() consistently?
+ incpt = !guest_can_use(vcpu, X86_FEATURE_IBT);
Re: [RFC PATCH v2 3/6] KVM: x86: SVM: Pass through shadow stack MSRs - Sean Christopherson (kernel.org) <https://lore.kernel.org/all/ZMk14YiPw9l7ZTXP@xxxxxxxxxx/>
it would make the code more reasonable on non-CET platforms.
lines above for the SHSTK? that's why I said "consistently".