From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Kai Huang <kai.huang@linux.intel.com>,
tim@xen.org, jbeulich@suse.com, kevin.tian@intel.com,
xen-devel@lists.xen.org
Subject: Re: [v3 01/10] vmx: add new boot parameter to control PML enabling
Date: Fri, 24 Apr 2015 11:46:44 +0100 [thread overview]
Message-ID: <553A1F14.8060201@citrix.com> (raw)
In-Reply-To: <1429863578-16741-2-git-send-email-kai.huang@linux.intel.com>
On 24/04/15 09:19, Kai Huang wrote:
> A top level EPT parameter "ept=<options>" and a sub boolean "opt_pml_enabled"
> are added to control PML. Other booleans can be further added for any other EPT
> related features.
>
> The document description for the new parameter is also added.
>
> Signed-off-by: Kai Huang <kai.huang@linux.intel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
> ---
> docs/misc/xen-command-line.markdown | 15 +++++++++++++++
> xen/arch/x86/hvm/vmx/vmcs.c | 30 ++++++++++++++++++++++++++++++
> 2 files changed, 45 insertions(+)
>
> diff --git a/docs/misc/xen-command-line.markdown b/docs/misc/xen-command-line.markdown
> index 1dda1f0..4889e27 100644
> --- a/docs/misc/xen-command-line.markdown
> +++ b/docs/misc/xen-command-line.markdown
> @@ -685,6 +685,21 @@ requirement can be relaxed. This option is particularly useful for nested
> virtualization, to allow the L1 hypervisor to use EPT even if the L0 hypervisor
> does not provide VM\_ENTRY\_LOAD\_GUEST\_PAT.
>
> +### ept (Intel)
> +> `= List of ( pml<boolean> )`
> +
> +> Default: `false`
> +
> +Controls EPT related features. Currently only Page Modification Logging (PML) is
> +the controllable feature as boolean type.
> +
> +PML is a new hardware feature in Intel's Broadwell Server and further platforms
> +which reduces hypervisor overhead of log-dirty mechanism by automatically
> +recording GPAs (guest physical addresses) when guest memory gets dirty, and
> +therefore significantly reducing number of EPT violation caused by write
> +protection of guest memory, which is a necessity to implement log-dirty
> +mechanism before PML.
> +
> ### gdb
> > `= <baud>[/<clock_hz>][,DPS[,<io-base>[,<irq>[,<port-bdf>[,<bridge-bdf>]]]] | pci | amt ] `
>
> diff --git a/xen/arch/x86/hvm/vmx/vmcs.c b/xen/arch/x86/hvm/vmx/vmcs.c
> index 63007a9..79efa42 100644
> --- a/xen/arch/x86/hvm/vmx/vmcs.c
> +++ b/xen/arch/x86/hvm/vmx/vmcs.c
> @@ -64,6 +64,36 @@ integer_param("ple_gap", ple_gap);
> static unsigned int __read_mostly ple_window = 4096;
> integer_param("ple_window", ple_window);
>
> +static bool_t __read_mostly opt_pml_enabled = 0;
> +
> +/*
> + * The 'ept' parameter controls functionalities that depend on, or impact the
> + * EPT mechanism. Optional comma separated value may contain:
> + *
> + * pml Enable PML
> + */
> +static void __init parse_ept_param(char *s)
> +{
> + char *ss;
> +
> + do {
> + bool_t val = !!strncmp(s, "no-", 3);
> + if ( !val )
> + s += 3;
> +
> + ss = strchr(s, ',');
> + if ( ss )
> + *ss = '\0';
> +
> + if ( !strcmp(s, "pml") )
> + opt_pml_enabled = val;
> +
> + s = ss + 1;
> + } while ( ss );
> +}
> +
> +custom_param("ept", parse_ept_param);
> +
> /* Dynamic (run-time adjusted) execution control flags. */
> u32 vmx_pin_based_exec_control __read_mostly;
> u32 vmx_cpu_based_exec_control __read_mostly;
next prev parent reply other threads:[~2015-04-24 10:46 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-24 8:19 [v3 00/10] PML (Page Modification Logging) support Kai Huang
2015-04-24 8:19 ` [v3 01/10] vmx: add new boot parameter to control PML enabling Kai Huang
2015-04-24 10:46 ` Andrew Cooper [this message]
2015-04-24 14:33 ` Jan Beulich
2015-04-25 15:00 ` Kai Huang
2015-04-27 6:56 ` Jan Beulich
2015-05-04 7:46 ` Kai Huang
2015-05-04 7:52 ` Jan Beulich
2015-05-04 7:53 ` Kai Huang
2015-04-24 8:19 ` [v3 02/10] log-dirty: add new paging_mark_gfn_dirty Kai Huang
2015-04-24 8:19 ` [v3 03/10] vmx: add PML definition and feature detection Kai Huang
2015-04-24 8:19 ` [v3 04/10] vmx: add new data structure member to support PML Kai Huang
2015-04-24 8:19 ` [v3 05/10] vmx: add help functions " Kai Huang
2015-04-24 8:19 ` [v3 06/10] vmx: handle PML buffer full VMEXIT Kai Huang
2015-04-24 8:19 ` [v3 07/10] vmx: handle PML enabling in vmx_vcpu_initialise Kai Huang
2015-04-24 8:19 ` [v3 08/10] vmx: disable PML in vmx_vcpu_destroy Kai Huang
2015-04-24 8:19 ` [v3 09/10] log-dirty: refine common code to support PML Kai Huang
2015-04-24 8:19 ` [v3 10/10] p2m/ept: enable PML in p2m-ept for log-dirty Kai Huang
2015-04-30 11:04 ` [v3 00/10] PML (Page Modification Logging) support Tim Deegan
2015-05-01 9:06 ` Kai Huang
2015-05-04 7:40 ` Tian, Kevin
2015-05-04 7:46 ` Kai Huang
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=553A1F14.8060201@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=kai.huang@linux.intel.com \
--cc=kevin.tian@intel.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.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.