From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ed White Subject: Re: [PATCH v2 04/12] x86/altp2m: basic data structures and support routines. Date: Fri, 26 Jun 2015 14:17:43 -0700 Message-ID: <558DC177.3020004@intel.com> References: <1434999372-3688-1-git-send-email-edmund.h.white@intel.com> <1434999372-3688-5-git-send-email-edmund.h.white@intel.com> <558A8689.2060501@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <558A8689.2060501@citrix.com> 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 , xen-devel@lists.xen.org Cc: Ravi Sahita , Wei Liu , Ian Jackson , Tim Deegan , Jan Beulich , tlengyel@novetta.com, Daniel De Graaf List-Id: xen-devel@lists.xenproject.org On 06/24/2015 03:29 AM, Andrew Cooper wrote: > On 22/06/15 19:56, Ed White wrote: >> diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h >> index 3d8f4dc..a1529c0 100644 >> --- a/xen/include/asm-x86/hvm/vcpu.h >> +++ b/xen/include/asm-x86/hvm/vcpu.h >> @@ -118,6 +118,13 @@ struct nestedvcpu { >> >> #define vcpu_nestedhvm(v) ((v)->arch.hvm_vcpu.nvcpu) >> >> +struct altp2mvcpu { >> + uint16_t p2midx; /* alternate p2m index */ >> + uint64_t veinfo_gfn; /* #VE information page guest pfn */ > > Please use the recently-introduced pfn_t here. pfn is a more > appropriate term than gfn in this case. Did you mean pfn_t, or xen_pfn_t? I'm having a hard time figuring out how to use a pfn_t, I can't even assign INVALID_PFN to one. Ed