Re: [PATCH v2 3/5] KVM: x86: Use common 'enable_apicv' variable for both APICv and AVIC

From: Paolo Bonzini
Date: Thu May 27 2021 - 07:39:30 EST


On 26/05/21 17:52, Maxim Levitsky wrote:
I don't love the intermediate "avic" either, but there isn't a good alternative.
Forcing VMX to also use an intermediate doesn't make much sense, we'd be penalizing
ourselves in the form of unnecessary complexity just because AVIC needs to be
disabled by default for reasons KVM can't fix.
This is also something we should eventually reconsider.
These days, the AVIC works quite well and disables itself when needed.
When do you think it will be the time to enable it by default?

We can probably enable it, but most guests won't use it because of x2apic.

Paolo