[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 3/3] xen: Expose the PMU to the guests


  • To: Michal Orzel <michal.orzel@xxxxxxx>
  • From: Christian Lindig <christian.lindig@xxxxxxxxxx>
  • Date: Wed, 6 Oct 2021 12:31:14 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QqwnsqGreIGepn7vGHFKmOXIUoFNtrXVQo/7qYAg5d0=; b=SwKMm636IJRFPWCnNTtawO1Yg8bXHsEwTdWoLEmuTaeGpVxdAckqwagJkTUPdRqFY0rUopqR1q278FKM6MoOyJs+/uP61a9rxBS3SAMgym7DRjZwhh8ZXEYXjnl4zYXvj7wBXUfdzkZ7EX/CNwnpKCeFKDBhu06x3DEMvaIyUn/hox+qBsz9hLd0dZNWky7wJTxhU0OpCCW1A5u9AwW2/3f1H7pDRPXCt4//hfIoVnI2WczV9MEOp+DVZTg3xosQH6ny086eCU8Q8nWgL/5tuUCepfdeJAkUuxYngv8Y6e+Gsmm9P8TwgqFsIyE+bkS/rkQC36HEL9/AaHvNblYSFg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HRLUUg49DszpXSwARl5COtBZMouuMYGKMMTNSeUTPwtWP6s8wNQvgeAzCGxjp1ArvzCCoUmiGY3kmViv/wNDkFOEQwncqO1BW8KRH2E37fc2z+GBYlb79vsISJcleVcI2W5TSsdzSig786cbKiNWtPEuea/DNYNoW7RYmMGA2J7zaCjRZvlld8VtSuQWxdvfD92hAj5GgfaZE3ApjkklP0PwqGkl4fJCJ6bhuyYoluvN1oRr/aRJBuJrQDsSNdis8FiiqUJm1Nu3FjZ8Jkq3w/Um8cfj6gCzISwQukLmUsaHfuX9xFq1L3O3PZmsa5tCMyWNFtpes4wiDEuqYOxfTg==
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "Ian Jackson" <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxx>, "Jan Beulich" <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>, Nick Rosbrook <rosbrookn@xxxxxxxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, David Scott <dave@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>, "bertrand.marquis@xxxxxxx" <bertrand.marquis@xxxxxxx>
  • Delivery-date: Wed, 06 Oct 2021 12:31:41 +0000
  • Ironport-data: A9a23:RPXbTahBh0iqrQi0UxV/YZIrX161QxYKZh0ujC45NGQN5FlHY01je htvCG/SMqmCYDT0edsjaYqw/B4E7Z+DnYAxGwtvrCA9H34b9cadCdqndUqhZCn6wu8v7a5EA 2fyTvGacajYm1eF/k/F3oAMKRCQ7InQLlbGILes1htZGEk0FU/NtTo5w7Rg29Yw34Dga++wk YiaT/P3aQfNNwFcagr424rbwP+4lK2v0N+wlgVWicFj5DcypVFMZH4sDfjZw0/DaptVBoaHq 9Prl9lVyI97EyAFUbtJmp6jGqEDryW70QKm0hK6UID66vROS7BbPg/W+5PwZG8O4whlkeydx /1Hm8S7EgM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J1oI7nN DbXFZRpQcJCgrT4A21rdR2GzX2MRGAtBjWu7NjDqlCy8vBreDQQF6+oXgV4r6dn8k=
  • Ironport-sdr: ItPhTKARXuXSz7QnPAxegE2DZSTlHxWDzF0gF/J55uK9s9f9a7Otwp3a/kFLxun3twIb5y8iF8 AFVF00Rc99Nl1ZjhQadh3xPFfFS9LbAHCXkVyueGpqYX7TnaRSVLyqGKUnVxZTJGK6yDrqqFGp d7Qgqyzsu+mVoJAQtJWXj/kEutX4T71QvE7My2F1JQVh86f2SINGp1l6WZf8DpGmeTWDNZbAAB 3nPWuH29uTgcxbzwkBLpJdk8DPaT/LeY6YmTMFDLV1y4a/Yl9EireAowzOLy+JYV8jBU6x/FYZ muE9OShu4g4lMmXjohhs7m/T
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHXuqF33PA+mkkVkkOV14cr2obRMKvF5taA
  • Thread-topic: [PATCH v2 3/3] xen: Expose the PMU to the guests



On 6 Oct 2021, at 11:58, Michal Orzel <michal.orzel@xxxxxxx> wrote:

Add parameter vpmu to xl domain configuration syntax
to enable the access to PMU registers by disabling
the PMU traps(currently only for ARM).

The current status is that the PMU registers are not
virtualized and the physical registers are directly
accessible when this parameter is enabled. There is no
interrupt support and Xen will not save/restore the
register values on context switches.

Please note that this feature is experimental.

Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
Signed-off-by: Julien Grall <julien@xxxxxxx>
---
docs/man/xl.cfg.5.pod.in             | 17 +++++++++++++++++
tools/golang/xenlight/helpers.gen.go |  6 ++++++
tools/golang/xenlight/types.gen.go   |  1 +
tools/include/libxl.h                |  6 ++++++
tools/libs/light/libxl_create.c      |  4 ++++
tools/libs/light/libxl_types.idl     |  2 ++
tools/ocaml/libs/xc/xenctrl.ml       |  1 +
tools/ocaml/libs/xc/xenctrl.mli      |  1 +
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                  |  9 ++++++++-
xen/include/asm-arm/domain.h         |  1 +
xen/include/public/domctl.h          |  5 ++++-
15 files changed, 68 insertions(+), 4 deletions(-)

Acked-by: Christian Lindig <christian.lindig@xxxxxxxxxx>

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.