[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Yu1GNEDQyrdgnV/G@google.com>
Date: Fri, 5 Aug 2022 16:32:52 +0000
From: Sean Christopherson <seanjc@...gle.com>
To: Like Xu <like.xu.linux@...il.com>
Cc: Paolo Bonzini <pbonzini@...hat.com>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/3] KVM: selftests: Test writing PERF_CAPABILITIES after
KVM_RUN is rejected
On Fri, Aug 05, 2022, Like Xu wrote:
> From: Like Xu <likexu@...cent.com>
>
> KVM should also disallow changing the feature MSR PERF_CAPABILITIES after
> KVM_RUN to prevent unexpected behavior. Implement run_vcpu() in a separate
> thread approach and opportunistically rearrange test cases.
>
> Signed-off-by: Like Xu <likexu@...cent.com>
> ---
> .../selftests/kvm/x86_64/vmx_pmu_caps_test.c | 49 +++++++++++++------
Rather than add a one-off PERF_CAPABILITIES test, I would rather we rename and
extend get_msr_index_features, e.g. call it feature_msrs_test and then have it
test all feature MSRs.
Powered by blists - more mailing lists