Re: [PATCH] KVM: x86: reinstate vendor-agnostic check on SPEC_CTRL cpuid bits

From: Paolo Bonzini
Date: Sun Dec 06 2020 - 05:18:30 EST


On 04/12/20 18:12, Sean Christopherson wrote:
Assuming that's
the case, adding helpers in cpuid.h to detect guest support for SPEC_CTRL (and
maybe for PRED_CMD?) would be helpful. It'd reduce duplicate code and document
that KVM allows cross-vendor emulation. The condition for SPEC_CTRL support is
especially long.

That's a great idea nevertheless.

Paolo