From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [PATCH 3/3] libxc: add xc_tbuf_trace() to insert trace records Date: Thu, 25 Jul 2013 14:39:23 +0100 Message-ID: <51F12A8B.6090300@citrix.com> References: <1374758582-29038-1-git-send-email-david.vrabel@citrix.com> <1374758582-29038-4-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1374758582-29038-4-git-send-email-david.vrabel@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: David Vrabel Cc: George Dunlap , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 25/07/13 14:23, David Vrabel wrote: > From: David Vrabel > > Add xc_tbuf_trace() to allow trace records to be added to the trace > buffer. The subclass and event number and up to 7 uin32_t arguments > may be specified. > > The hypercall sub-op used is HVMOP_xentrace which (despite the name) > may be used by PV guests. > [...] > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -4388,7 +4388,7 @@ long do_hvm_op(unsigned long op, XEN_GUEST_HANDLE_PARAM(void) arg) > return -EFAULT; > > if ( tr.extra_bytes > sizeof(tr.extra) > - || (tr.event & ~((1u< + || (tr.event & ~((1u< return -EINVAL; > > trace_var(TRC_GUEST_EVENT(tr.event), 1 /*cycles*/, This hunk shouldn't be here. I made a mistake when refactoring the series. David