xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Xudong Hao <xudong.hao@intel.com>
To: xen-devel@lists.xen.org
Cc: xudong.hao@intel.com, haitao.shan@intel.com, keir@xen.org,
	xiantao.zhang@intel.com, JBeulich@suse.com
Subject: [PATCH v2 1/4] xen: Add EPT A/D bits definitions
Date: Wed, 20 Jun 2012 09:57:44 +0800	[thread overview]
Message-ID: <1340157467-19553-2-git-send-email-xudong.hao@intel.com> (raw)
In-Reply-To: <1340157467-19553-1-git-send-email-xudong.hao@intel.com>

Add EPT A/D bits definitions.

Signed-off-by: Haitao Shan<haitao.shan@intel.com>
Signed-off-by: Xudong Hao <xudong.hao@intel.com>
---
 xen/include/asm-x86/hvm/vmx/vmcs.h |    4 +++-
 xen/include/asm-x86/hvm/vmx/vmx.h  |    3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/xen/include/asm-x86/hvm/vmx/vmcs.h b/xen/include/asm-x86/hvm/vmx/vmcs.h
index 6100619..c0b9a44 100644
--- a/xen/include/asm-x86/hvm/vmx/vmcs.h
+++ b/xen/include/asm-x86/hvm/vmx/vmcs.h
@@ -62,7 +62,8 @@ struct vmx_domain {
         struct {
             u64 ept_mt :3,
                 ept_wl :3,
-                rsvd   :6,
+                ept_ad :1,
+                rsvd   :5,
                 asr    :52;
         };
         u64 eptp;
@@ -194,6 +195,7 @@ extern bool_t cpu_has_vmx_ins_outs_instr_info;
 #define VMX_EPT_SUPERPAGE_2MB                   0x00010000
 #define VMX_EPT_SUPERPAGE_1GB                   0x00020000
 #define VMX_EPT_INVEPT_INSTRUCTION              0x00100000
+#define VMX_EPT_AD_BITS_SUPPORT                 0x00200000
 #define VMX_EPT_INVEPT_SINGLE_CONTEXT           0x02000000
 #define VMX_EPT_INVEPT_ALL_CONTEXT              0x04000000
 
diff --git a/xen/include/asm-x86/hvm/vmx/vmx.h b/xen/include/asm-x86/hvm/vmx/vmx.h
index accfa3f..416504f 100644
--- a/xen/include/asm-x86/hvm/vmx/vmx.h
+++ b/xen/include/asm-x86/hvm/vmx/vmx.h
@@ -37,7 +37,8 @@ typedef union {
         emt         :   3,  /* bits 5:3 - EPT Memory type */
         ipat        :   1,  /* bit 6 - Ignore PAT memory type */
         sp          :   1,  /* bit 7 - Is this a superpage? */
-        rsvd1       :   2,  /* bits 9:8 - Reserved for future use */
+        a           :   1,  /* bit 8 - Access bit */
+        d           :   1,  /* bit 9 - Dirty bit */
         avail1      :   1,  /* bit 10 - Software available 1 */
         rsvd2_snp   :   1,  /* bit 11 - Used for VT-d snoop control
                                in shared EPT/VT-d usage */
-- 
1.5.5

  reply	other threads:[~2012-06-20  1:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-20  1:57 [PATCH v2 0/4] xen: enable EPT A/D bit feature Xudong Hao
2012-06-20  1:57 ` Xudong Hao [this message]
2012-06-20  1:57 ` [PATCH v2 2/4] xen: add xen parameter to control A/D bits support Xudong Hao
2012-06-20  1:57 ` [PATCH v2 3/4] xen: introduce new function update_dirty_bitmap Xudong Hao
2012-06-28 13:42   ` Tim Deegan
2012-06-29  8:46     ` Hao, Xudong
2012-06-20  1:57 ` [PATCH v2 4/4] xen: enable EPT dirty bit for guest live migration Xudong Hao
2012-06-28 13:52   ` Tim Deegan
2012-06-29  7:50     ` Hao, Xudong
2012-06-25  6:27 ` [PATCH v2 0/4] xen: enable EPT A/D bit feature Hao, Xudong
2012-06-25  7:22   ` Keir Fraser
2012-06-25  9:02 ` Tim Deegan
2012-06-26  5:31   ` Hao, Xudong
2012-06-28 10:30     ` Tim Deegan
2012-06-29  9:27       ` Hao, Xudong
2012-06-28 12:14     ` George Dunlap
2012-06-29  9:31       ` Hao, Xudong

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=1340157467-19553-2-git-send-email-xudong.hao@intel.com \
    --to=xudong.hao@intel.com \
    --cc=JBeulich@suse.com \
    --cc=haitao.shan@intel.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xen.org \
    --cc=xiantao.zhang@intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).