From: Like Xu <like.xu.linux@gmail.com>
To: Yang Weijiang <weijiang.yang@intel.com>
Cc: ehabkost@redhat.com, kvm@vger.kernel.org, mtosatti@redhat.com,
richard.henderson@linaro.org, qemu-devel@nongnu.org,
wei.w.wang@intel.com, likexu@tencent.com, pbonzini@redhat.com
Subject: Re: [PATCH v5 0/2] Enable legacy LBR support for guest
Date: Wed, 9 Feb 2022 17:14:24 +0800 [thread overview]
Message-ID: <e2c18d80-7c4e-6a0a-d37e-3a585d53d3f2@gmail.com> (raw)
In-Reply-To: <20220122161201.73528-1-weijiang.yang@intel.com>
Hi Weijiang,
On 23/1/2022 12:11 am, Yang Weijiang wrote:
> KVM legacy LBR patches have been merged in kernel 5.12, this patchset
> is to expose the feature to guest from the perf capability MSR. Qemu can
> add LBR format in cpu option to achieve it, e.g., -cpu host,lbr-fmt=0x5,
Some older Intel CPUs may have lbr-fmt=LBR_FORMAT_32 (which is 0), would
you help verify that KVM is supported on these platforms ? If so, how do we enable
guest LBR form the QEMU side, w/ -cpu host,lbr-fmt=0x0 ?
> the format should match host value in IA32_PERF_CAPABILITIES.
>
> Note, KVM legacy LBR solution accelerates guest perf performace by LBR MSR
> passthrough so it requires guest cpu model matches that of host's, i.e.,
Would you help add live migration support across host/guest CPU models when
hosts at both ends have the same number of LBR entries and the same lbr-fmt ?
Thanks,
Like Xu
> only -cpu host is supported.
>
> Change in v5:
> 1. This patchset is rebased on tip : 6621441db5
> 2. No functional change since v4.
next prev parent reply other threads:[~2022-02-09 9:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-22 16:11 [PATCH v5 0/2] Enable legacy LBR support for guest Yang Weijiang
2022-01-22 16:12 ` [PATCH v5 1/2] qdev-properties: Add a new macro with bitmask check for uint64_t property Yang Weijiang
2022-01-22 16:12 ` [PATCH v5 2/2] target/i386: Add lbr-fmt vPMU option to support guest LBR Yang Weijiang
2022-02-09 9:14 ` Like Xu [this message]
2022-02-10 0:37 ` [PATCH v5 0/2] Enable legacy LBR support for guest Yang, Weijiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e2c18d80-7c4e-6a0a-d37e-3a585d53d3f2@gmail.com \
--to=like.xu.linux@gmail.com \
--cc=ehabkost@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=likexu@tencent.com \
--cc=mtosatti@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=wei.w.wang@intel.com \
--cc=weijiang.yang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).