From: Tim Deegan Subject: Re: recent changes to xen/public/hvm/hvm_op.h Date: Tue, 31 Aug 2010 11:39:52 +0100 Message-ID: <20100831103952.GD23648@whitby.uk.xensource.com> References: <4C7CCC7C02000078000130D6@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="M9NhX3UHpAaciwkO" Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , Jan Beulich List-Id: xen-devel@lists.xenproject.org --M9NhX3UHpAaciwkO Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline At 10:52 +0100 on 31 Aug (1283251971), Stefano Stabellini wrote: > On Tue, 31 Aug 2010, Jan Beulich wrote: > > Hi, > > > > changesets 21674, 21772, and 21773 all insert definitions into a block > > restricting the use to Xen and its tools, while I believe these operations > > are all supposed to be used directly by guests. > > > > Am I missing something? > > > > I think we made a mistake: I am sure HVMOP_pagetable_dying is executed > directly by guests and probably HVMOP_get_time too. Yes, this is a porting error; all three of those are intended to be used by guests. Cheers, Tim. -- Tim Deegan Principal Software Engineer, XenServer Engineering Citrix Systems UK Ltd. (Company #02937203, SL9 0BG) --M9NhX3UHpAaciwkO Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: attachment; filename="hvmop" Move new HVM-op definitions outside the tools-only #ifdef Signed-off-by: Tim Deegan diff -r 32c9a19ac98b xen/include/public/hvm/hvm_op.h --- a/xen/include/public/hvm/hvm_op.h Mon Aug 30 14:59:12 2010 +0100 +++ b/xen/include/public/hvm/hvm_op.h Tue Aug 31 11:36:31 2010 +0100 @@ -128,6 +128,8 @@ typedef struct xen_hvm_set_mem_type xen_ typedef struct xen_hvm_set_mem_type xen_hvm_set_mem_type_t; DEFINE_XEN_GUEST_HANDLE(xen_hvm_set_mem_type_t); +#endif /* defined(__XEN__) || defined(__XEN_TOOLS__) */ + /* Hint from PV drivers for pagetable destruction. */ #define HVMOP_pagetable_dying 9 struct xen_hvm_pagetable_dying { @@ -155,6 +157,4 @@ typedef struct xen_hvm_xentrace xen_hvm_ typedef struct xen_hvm_xentrace xen_hvm_xentrace_t; DEFINE_XEN_GUEST_HANDLE(xen_hvm_xentrace_t); -#endif /* defined(__XEN__) || defined(__XEN_TOOLS__) */ - #endif /* __XEN_PUBLIC_HVM_HVM_OP_H__ */ --M9NhX3UHpAaciwkO Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --M9NhX3UHpAaciwkO--