Re: [PATCH 1/2] KVM: vmx/pmu: Fix dummy check if lbr_desc->event is created

From: Paolo Bonzini
Date: Tue Feb 23 2021 - 12:21:37 EST


On 23/02/21 18:15, Sean Christopherson wrote:
If event
creation fails in that flow, I would think KVM would do its best to create an
event in future runs without waiting for additional actions from the guest.

Also, this bug suggests there's a big gaping hole in the test coverage. AFAICT,
event contention would lead to a #GP crash in the host due to lbr_desc->event
being dereferenced, no?

Yes, testing contention would use the tools/testing/selftests/kvm framework rather than just kvm-unit-tests.

Paolo