From: Anthony PERARD <anthony.perard@citrix.com>
To: Michal Orzel <michal.orzel@arm.com>
Cc: <xen-devel@lists.xenproject.org>,
Andrew Cooper <andrew.cooper3@citrix.com>,
George Dunlap <george.dunlap@citrix.com>,
"Ian Jackson" <iwj@xenproject.org>,
Jan Beulich <jbeulich@suse.com>, Julien Grall <julien@xen.org>,
Stefano Stabellini <sstabellini@kernel.org>, Wei Liu <wl@xen.org>,
Nick Rosbrook <rosbrookn@ainfosec.com>,
Juergen Gross <jgross@suse.com>,
Christian Lindig <christian.lindig@citrix.com>,
"David Scott" <dave@recoil.org>,
Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>,
<bertrand.marquis@arm.com>
Subject: Re: [PATCH v5 3/3] xen: Expose the PMU to the guests
Date: Tue, 12 Oct 2021 15:31:25 +0100 [thread overview]
Message-ID: <YWWcPTdeK3s960i2@perard> (raw)
In-Reply-To: <20211012081323.14141-4-michal.orzel@arm.com>
On Tue, Oct 12, 2021 at 10:13:23AM +0200, Michal Orzel wrote:
> diff --git a/tools/libs/light/libxl_create.c b/tools/libs/light/libxl_create.c
> index e356b2106d..2a0234ec16 100644
> --- a/tools/libs/light/libxl_create.c
> +++ b/tools/libs/light/libxl_create.c
> @@ -622,6 +623,9 @@ int libxl__domain_make(libxl__gc *gc, libxl_domain_config *d_config,
> create.flags |= XEN_DOMCTL_CDF_nested_virt;
> }
>
> + if ( libxl_defbool_val(b_info->vpmu) )
We don't usually have space between the parentheses and the condition in
libxl.
> + create.flags |= XEN_DOMCTL_CDF_vpmu;
> +
> assert(info->passthrough != LIBXL_PASSTHROUGH_DEFAULT);
> LOG(DETAIL, "passthrough: %s",
> libxl_passthrough_to_string(info->passthrough));
> @@ -1199,6 +1203,12 @@ int libxl__domain_config_setdefault(libxl__gc *gc,
> goto error_out;
> }
>
> + if (libxl_defbool_val(d_config->b_info.vpmu) && !physinfo.cap_vpmu) {
> + ret = ERROR_INVAL;
> + LOGD(ERROR, domid, "vpmu not supported on this platform\n");
You don't need a '\n' here. Also, you could write "vPMU" instead of
"vpmu" in the error message.
Otherwise, changes for libxl and xl looks good:
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Thanks,
--
Anthony PERARD
next prev parent reply other threads:[~2021-10-12 14:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-12 8:13 [PATCH v5 0/3] Expose PMU to the guests Michal Orzel
2021-10-12 8:13 ` [PATCH v5 1/3] xen+tools: Introduce XEN_SYSCTL_PHYSCAP_vpmu Michal Orzel
2021-10-12 8:13 ` [PATCH v5 2/3] xen/arm: Check for PMU platform support Michal Orzel
2021-10-12 22:07 ` Julien Grall
2021-10-13 0:49 ` Stefano Stabellini
2021-10-12 8:13 ` [PATCH v5 3/3] xen: Expose the PMU to the guests Michal Orzel
2021-10-12 14:31 ` Anthony PERARD [this message]
2021-10-12 15:34 ` Julien Grall
2021-10-12 8:25 ` [PATCH v5 0/3] Expose " Christian Lindig
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=YWWcPTdeK3s960i2@perard \
--to=anthony.perard@citrix.com \
--cc=Volodymyr_Babchuk@epam.com \
--cc=andrew.cooper3@citrix.com \
--cc=bertrand.marquis@arm.com \
--cc=christian.lindig@citrix.com \
--cc=dave@recoil.org \
--cc=george.dunlap@citrix.com \
--cc=iwj@xenproject.org \
--cc=jbeulich@suse.com \
--cc=jgross@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@arm.com \
--cc=rosbrookn@ainfosec.com \
--cc=sstabellini@kernel.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/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 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.