Re: [PATCH 48/61] KVM: x86: Do host CPUID at load time to mask KVM cpu caps

From: Paolo Bonzini
Date: Tue Feb 25 2020 - 10:18:19 EST


On 01/02/20 19:52, Sean Christopherson wrote:
> +#ifdef CONFIG_KVM_CPUID_AUDIT
> + /* Entry needs to be fully populated when auditing is enabled. */
> + entry.function = cpuid.function;
> + entry.index = cpuid.index;
> +#endif

This shows that the audit case is prone to bitrot, which is good reason
to enable it by default.

Paolo