From: Vasilis Liaskovitis <vliaskovitis@suse.com> To: xen-devel@lists.xenproject.org Cc: jgross@suse.com, sstabellini@kernel.org, wei.liu2@citrix.com, jbeulich@suse.com, George.Dunlap@eu.citrix.com, andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com, tim@xen.org, vliaskovitis@suse.com, anthony.perard@citrix.com, dgdegra@tycho.nsa.gov Subject: [PATCH v4 0/4] Support for reading runtime hypervisor parameters Date: Tue, 28 May 2019 16:54:12 +0200 [thread overview] Message-ID: <20190528145416.16918-1-vliaskovitis@suse.com> (raw) Currently runtime parameters of the hypervisor cannot be inspected through an xl command, however they can be changed with the "xl set-parameter" command. Being able to check these parameters at runtime would be a useful diagnostic tool. This patch series implements a new xl command "xl get-parameters" which takes a string of input parameters and returns their current values in the hypervisor settings. Examples: xl get-parameters "gnttab_max_frames gnttab_max_maptrack_frames" gnttab_max_frames gnttab_max_maptrack_frames : 64 1024 xl set-parameters gnttab_max_frames=128 xl get-parameters gnttab_max_frames gnttab_max_frames : 128 xl get-parameters "gnttab_max_frames gnttab_max_maptrack_frames" gnttab_max_frames gnttab_max_maptrack_frames : 128 1024 Changes v3->v4: - Fix return value and logging in new libxl function. Changes v2->v3: - Several style / formatting fixes - Limitations for signed integer parameters added in code and commit log. Changes v1->v2: - fixed snprintf issues, fixed memory leaks and error handling - removed unnecessary wrapper function - OPT_SIZE is handled Limitations: - Custom runtime parameters (OPT_CUSTOM) are not supported yet. I'd like to do this in a follow-up series. See also discussion at https://lists.xenproject.org/archives/html/xen-devel/2019-03/msg01383.html - For integer parameters (OPT_UINT), only unsigned parameters are printed correctly at the moment. Vasilis Liaskovitis (4): xen: add hypercall for getting parameters at runtime libxc: add function to get hypervisor parameters libxl: add libxl_get_parameters() function xl: add new xl command get-parameters docs/man/xl.1.pod.in | 5 ++ tools/flask/policy/modules/dom0.te | 2 +- tools/libxc/include/xenctrl.h | 1 + tools/libxc/xc_misc.c | 26 ++++++ tools/libxl/libxl.c | 19 +++++ tools/libxl/libxl.h | 1 + tools/xl/xl.h | 1 + tools/xl/xl_cmdtable.c | 5 ++ tools/xl/xl_misc.c | 25 ++++++ xen/common/kernel.c | 118 ++++++++++++++++++++++++++++ xen/common/sysctl.c | 52 +++++++++++- xen/include/public/sysctl.h | 18 +++++ xen/include/xen/lib.h | 1 + xen/xsm/flask/hooks.c | 3 + xen/xsm/flask/policy/access_vectors | 2 + 15 files changed, 276 insertions(+), 3 deletions(-) -- 2.20.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel
WARNING: multiple messages have this Message-ID (diff)
From: Vasilis Liaskovitis <vliaskovitis@suse.com> To: xen-devel@lists.xenproject.org Cc: jgross@suse.com, sstabellini@kernel.org, wei.liu2@citrix.com, jbeulich@suse.com, George.Dunlap@eu.citrix.com, andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com, tim@xen.org, vliaskovitis@suse.com, anthony.perard@citrix.com, dgdegra@tycho.nsa.gov Subject: [Xen-devel] [PATCH v4 0/4] Support for reading runtime hypervisor parameters Date: Tue, 28 May 2019 16:54:12 +0200 [thread overview] Message-ID: <20190528145416.16918-1-vliaskovitis@suse.com> (raw) Message-ID: <20190528145412.jbkawkF-gTqFb8rdulGRlxmUCO7oDzp3adfmXNQjAdc@z> (raw) Currently runtime parameters of the hypervisor cannot be inspected through an xl command, however they can be changed with the "xl set-parameter" command. Being able to check these parameters at runtime would be a useful diagnostic tool. This patch series implements a new xl command "xl get-parameters" which takes a string of input parameters and returns their current values in the hypervisor settings. Examples: xl get-parameters "gnttab_max_frames gnttab_max_maptrack_frames" gnttab_max_frames gnttab_max_maptrack_frames : 64 1024 xl set-parameters gnttab_max_frames=128 xl get-parameters gnttab_max_frames gnttab_max_frames : 128 xl get-parameters "gnttab_max_frames gnttab_max_maptrack_frames" gnttab_max_frames gnttab_max_maptrack_frames : 128 1024 Changes v3->v4: - Fix return value and logging in new libxl function. Changes v2->v3: - Several style / formatting fixes - Limitations for signed integer parameters added in code and commit log. Changes v1->v2: - fixed snprintf issues, fixed memory leaks and error handling - removed unnecessary wrapper function - OPT_SIZE is handled Limitations: - Custom runtime parameters (OPT_CUSTOM) are not supported yet. I'd like to do this in a follow-up series. See also discussion at https://lists.xenproject.org/archives/html/xen-devel/2019-03/msg01383.html - For integer parameters (OPT_UINT), only unsigned parameters are printed correctly at the moment. Vasilis Liaskovitis (4): xen: add hypercall for getting parameters at runtime libxc: add function to get hypervisor parameters libxl: add libxl_get_parameters() function xl: add new xl command get-parameters docs/man/xl.1.pod.in | 5 ++ tools/flask/policy/modules/dom0.te | 2 +- tools/libxc/include/xenctrl.h | 1 + tools/libxc/xc_misc.c | 26 ++++++ tools/libxl/libxl.c | 19 +++++ tools/libxl/libxl.h | 1 + tools/xl/xl.h | 1 + tools/xl/xl_cmdtable.c | 5 ++ tools/xl/xl_misc.c | 25 ++++++ xen/common/kernel.c | 118 ++++++++++++++++++++++++++++ xen/common/sysctl.c | 52 +++++++++++- xen/include/public/sysctl.h | 18 +++++ xen/include/xen/lib.h | 1 + xen/xsm/flask/hooks.c | 3 + xen/xsm/flask/policy/access_vectors | 2 + 15 files changed, 276 insertions(+), 3 deletions(-) -- 2.20.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel
next reply other threads:[~2019-05-28 14:54 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-05-28 14:54 Vasilis Liaskovitis [this message] 2019-05-28 14:54 ` [Xen-devel] [PATCH v4 0/4] Support for reading runtime hypervisor parameters Vasilis Liaskovitis 2019-05-28 14:54 ` [PATCH v4 1/4] xen: add hypercall for reading runtime parameters Vasilis Liaskovitis 2019-05-28 14:54 ` [Xen-devel] " Vasilis Liaskovitis 2019-06-07 13:49 ` Jan Beulich 2019-05-28 14:54 ` [PATCH v4 2/4] libxc: add function to get hypervisor parameters Vasilis Liaskovitis 2019-05-28 14:54 ` [Xen-devel] " Vasilis Liaskovitis 2019-05-28 14:54 ` [PATCH v4 3/4] libxl: add libxl_get_parameters() function Vasilis Liaskovitis 2019-05-28 14:54 ` [Xen-devel] " Vasilis Liaskovitis 2019-05-28 14:54 ` [PATCH v4 4/4] xl: add new xl command get-parameters Vasilis Liaskovitis 2019-05-28 14:54 ` [Xen-devel] " Vasilis Liaskovitis 2019-07-15 4:27 ` [Xen-devel] [PATCH v4 0/4] Support for reading runtime hypervisor parameters Juergen Gross
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=20190528145416.16918-1-vliaskovitis@suse.com \ --to=vliaskovitis@suse.com \ --cc=George.Dunlap@eu.citrix.com \ --cc=andrew.cooper3@citrix.com \ --cc=anthony.perard@citrix.com \ --cc=dgdegra@tycho.nsa.gov \ --cc=ian.jackson@eu.citrix.com \ --cc=jbeulich@suse.com \ --cc=jgross@suse.com \ --cc=sstabellini@kernel.org \ --cc=tim@xen.org \ --cc=wei.liu2@citrix.com \ --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: linkBe 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.