From: "Jan Beulich" Subject: Re: [PATCH 2/4] xen: add xen parameter to control A/D bits support Date: Tue, 19 Jun 2012 10:56:47 +0100 Message-ID: <4FE068FF020000780008A954@nat28.tlf.novell.com> References: <1340087306-6096-1-git-send-email-xudong.hao@intel.com> <1340087306-6096-3-git-send-email-xudong.hao@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1340087306-6096-3-git-send-email-xudong.hao@intel.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xudong Hao Cc: keir@xen.org, Haitao Shan , xiantao.zhang@intel.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 19.06.12 at 08:28, Xudong Hao wrote: > @@ -1574,6 +1579,9 @@ struct hvm_function_table * __init start_vmx(void) > if ( cpu_has_vmx_ept_1gb ) > vmx_function_table.hap_capabilities |= HVM_HAP_SUPERPAGE_1GB; > > + if ( cpu_has_vmx_ept_ad_bits ) > + hap_has_access_bit = hap_has_dirty_bit = 1; So you're using these flags here, ... > + > setup_ept_dump(); > } > > --- a/xen/include/asm-x86/hap.h > +++ b/xen/include/asm-x86/hap.h > @@ -64,6 +64,9 @@ int hap_track_dirty_vram(struct domain *d, > > extern const struct paging_mode *hap_paging_get_mode(struct vcpu *); > > +extern int hap_has_dirty_bit __read_mostly; > +extern int hap_has_access_bit __read_mostly; ... and you're declaring them here, but I fail to find their definition. How does the result of applying up to this patch build? Also, they should clearly be bool_t. Jan