From: Kai Huang <kai.huang@linux.intel.com>
To: andrew.cooper3@citrix.com, tim@xen.org, jbeulich@suse.com,
kevin.tian@intel.com, xen-devel@lists.xen.org
Cc: Kai Huang <kai.huang@linux.intel.com>
Subject: [v3 04/10] vmx: add new data structure member to support PML
Date: Fri, 24 Apr 2015 16:19:32 +0800 [thread overview]
Message-ID: <1429863578-16741-5-git-send-email-kai.huang@linux.intel.com> (raw)
In-Reply-To: <1429863578-16741-1-git-send-email-kai.huang@linux.intel.com>
A new 4K page pointer is added to arch_vmx_struct as PML buffer for vcpu. And a
new 'status' field is added to vmx_domain to indicate whether PML is enabled for
the domain or not.
Signed-off-by: Kai Huang <kai.huang@linux.intel.com>
---
xen/include/asm-x86/hvm/vmx/vmcs.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/xen/include/asm-x86/hvm/vmx/vmcs.h b/xen/include/asm-x86/hvm/vmx/vmcs.h
index f831a78..441e974 100644
--- a/xen/include/asm-x86/hvm/vmx/vmcs.h
+++ b/xen/include/asm-x86/hvm/vmx/vmcs.h
@@ -70,8 +70,12 @@ struct ept_data {
cpumask_var_t synced_mask;
};
+#define _VMX_DOMAIN_PML_ENABLED 0
+#define VMX_DOMAIN_PML_ENABLED (1ul << _VMX_DOMAIN_PML_ENABLED)
struct vmx_domain {
unsigned long apic_access_mfn;
+ /* VMX_DOMAIN_* */
+ unsigned int status;
};
struct pi_desc {
@@ -85,6 +89,8 @@ struct pi_desc {
#define ept_get_eptp(ept) ((ept)->eptp)
#define ept_get_synced_mask(ept) ((ept)->synced_mask)
+#define NR_PML_ENTRIES 512
+
struct arch_vmx_struct {
/* Virtual address of VMCS. */
struct vmcs_struct *vmcs;
@@ -142,6 +148,8 @@ struct arch_vmx_struct {
/* Bitmap to control vmexit policy for Non-root VMREAD/VMWRITE */
struct page_info *vmread_bitmap;
struct page_info *vmwrite_bitmap;
+
+ struct page_info *pml_pg;
};
int vmx_create_vmcs(struct vcpu *v);
--
2.1.0
next prev parent reply other threads:[~2015-04-24 8:19 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
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 ` Kai Huang [this message]
2015-04-24 8:19 ` [v3 05/10] vmx: add help functions to support PML 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=1429863578-16741-5-git-send-email-kai.huang@linux.intel.com \
--to=kai.huang@linux.intel.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.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.