All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Expose PMU to the guests
@ 2021-10-06 10:58 Michal Orzel
  2021-10-06 10:58 ` [PATCH v2 1/3] xen+tools: Introduce XEN_SYSCTL_PHYSCAP_vpmu Michal Orzel
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Michal Orzel @ 2021-10-06 10:58 UTC (permalink / raw)
  To: xen-devel
  Cc: George Dunlap, Nick Rosbrook, Ian Jackson, Wei Liu,
	Andrew Cooper, Jan Beulich, Julien Grall, Stefano Stabellini,
	Anthony PERARD, Juergen Gross, Christian Lindig, David Scott,
	Volodymyr Babchuk, Roger Pau Monné,
	bertrand.marquis

This patch series is a rework of an already pushed patch
exposing PMU to the guests. In the second version the vpmu
parameter is common and prework in the form of reporting
availability of vPMU on the hardware is added.

The current status is that the PMU registers are not virtualized
and the physical registers are directly accessible when "vpmu"
parameter is enabled in the guest config file. There is no interrupt
support and Xen will not save/restore the register values on context
switches. This is to be done in the future.

Michal Orzel (3):
  xen+tools: Introduce XEN_SYSCTL_PHYSCAP_vpmu
  xen/arm: Check for PMU platform support
  xen: Expose the PMU to the guests

 docs/man/xl.cfg.5.pod.in             | 17 ++++++++++
 tools/golang/xenlight/helpers.gen.go |  8 +++++
 tools/golang/xenlight/types.gen.go   |  2 ++
 tools/include/libxl.h                | 12 +++++++
 tools/libs/light/libxl.c             |  1 +
 tools/libs/light/libxl_create.c      |  4 +++
 tools/libs/light/libxl_types.idl     |  3 ++
 tools/ocaml/libs/xc/xenctrl.ml       |  2 ++
 tools/ocaml/libs/xc/xenctrl.mli      |  2 ++
 tools/xl/xl_info.c                   |  5 +--
 tools/xl/xl_parse.c                  |  2 ++
 xen/arch/arm/domain.c                | 10 ++++--
 xen/arch/arm/setup.c                 |  1 +
 xen/arch/x86/domain.c                |  6 ++++
 xen/common/domain.c                  | 11 ++++++-
 xen/common/sysctl.c                  |  3 ++
 xen/include/asm-arm/cpufeature.h     | 49 ++++++++++++++++++++++++++--
 xen/include/asm-arm/domain.h         |  1 +
 xen/include/public/domctl.h          |  5 ++-
 xen/include/public/sysctl.h          |  8 +++--
 xen/include/xen/domain.h             |  2 ++
 21 files changed, 144 insertions(+), 10 deletions(-)

-- 
2.29.0



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

end of thread, other threads:[~2021-10-07  8:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-06 10:58 [PATCH v2 0/3] Expose PMU to the guests Michal Orzel
2021-10-06 10:58 ` [PATCH v2 1/3] xen+tools: Introduce XEN_SYSCTL_PHYSCAP_vpmu Michal Orzel
2021-10-07  4:45   ` Stefano Stabellini
2021-10-07  7:59   ` Jan Beulich
2021-10-07  8:02     ` Michal Orzel
2021-10-07  8:05       ` Jan Beulich
2021-10-06 10:58 ` [PATCH v2 2/3] xen/arm: Check for PMU platform support Michal Orzel
2021-10-07  4:42   ` Stefano Stabellini
2021-10-06 10:58 ` [PATCH v2 3/3] xen: Expose the PMU to the guests Michal Orzel
2021-10-06 12:31   ` Christian Lindig
2021-10-07  8:03   ` Jan Beulich
2021-10-07  8:21     ` Michal Orzel
2021-10-07  8:34       ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.