From: "Jan Beulich" Subject: Re: [PATCH v2 03/12] x86/HVM: Hardware alternate p2m support detection. Date: Wed, 24 Jun 2015 11:07:29 +0100 Message-ID: <558A9D810200007800088C3C@mail.emea.novell.com> References: <1434999372-3688-1-git-send-email-edmund.h.white@intel.com> <1434999372-3688-4-git-send-email-edmund.h.white@intel.com> <558A7BE1.2010401@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <558A7BE1.2010401@citrix.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: Andrew Cooper , Ed White , xen-devel@lists.xen.org Cc: RaviSahita , Wei Liu , Tim Deegan , Ian Jackson , tlengyel@novetta.com, Daniel De Graaf List-Id: xen-devel@lists.xenproject.org >>> On 24.06.15 at 11:44, wrote: > On 22/06/15 19:56, Ed White wrote: >> @@ -6474,6 +6481,11 @@ enum hvm_intblk nhvm_interrupt_blocked(struct vcpu *v) >> return hvm_funcs.nhvm_intr_blocked(v); >> } >> >> +bool_t hvm_altp2m_supported() >> +{ >> + return hvm_funcs.altp2m_supported; >> +} > > I would put this as a static inline in hvm.h, as opposed to forcing a > call into a different translation unit to retrieve a global boolean. +1 Jan