[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200708133646.GM3448022@tassilo.jf.intel.com>
Date: Wed, 8 Jul 2020 06:36:46 -0700
From: Andi Kleen <ak@...ux.intel.com>
To: Like Xu <like.xu@...ux.intel.com>
Cc: Paolo Bonzini <pbonzini@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Sean Christopherson <sean.j.christopherson@...el.com>,
Vitaly Kuznetsov <vkuznets@...hat.com>,
Wanpeng Li <wanpengli@...cent.com>,
Jim Mattson <jmattson@...gle.com>,
Joerg Roedel <joro@...tes.org>, wei.w.wang@...el.com,
linux-kernel@...r.kernel.org, kvm@...r.kernel.org
Subject: Re: [PATCH v12 06/11] KVM: vmx/pmu: Expose LBR to guest via
MSR_IA32_PERF_CAPABILITIES
> + /*
> + * As a first step, a guest could only enable LBR feature if its cpu
> + * model is the same as the host because the LBR registers would
> + * be pass-through to the guest and they're model specific.
> + */
> + if (boot_cpu_data.x86_model != guest_cpuid_model(vcpu))
> + return false;
Could we relax this in a followon patch? (after this series is merged)
It's enough of the perf cap LBR version matches, don't need full model
number match. This would require a way to configure the LBR version
from qemu.
This would allow more flexibility, for example migration from
Icelake to Skylake and vice versa.
-Andi
Powered by blists - more mailing lists