qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/2] Enable legacy LBR support for guest
@ 2022-01-22 16:11 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
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Yang Weijiang @ 2022-01-22 16:11 UTC (permalink / raw)
  To: pbonzini, ehabkost, mtosatti, richard.henderson, qemu-devel, kvm,
	likexu, wei.w.wang
  Cc: weijiang.yang

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,
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.,
only -cpu host is supported.

Change in v5:
	1. This patchset is rebased on tip : 6621441db5
	2. No functional change since v4.


Yang Weijiang (2):
  qdev-properties: Add a new macro with bitmask check for uint64_t
    property
  target/i386: Add lbr-fmt vPMU option to support guest LBR

 hw/core/qdev-properties.c    | 19 +++++++++++++++++
 include/hw/qdev-properties.h | 12 +++++++++++
 target/i386/cpu.c            | 40 ++++++++++++++++++++++++++++++++++++
 target/i386/cpu.h            | 10 +++++++++
 4 files changed, 81 insertions(+)

-- 
2.27.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-02-10  0:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH v5 0/2] Enable legacy LBR support for guest Like Xu
2022-02-10  0:37   ` Yang, Weijiang

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).