WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 2 of 2] Add a hypercall to allow HVM PV drivers t

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 2 of 2] Add a hypercall to allow HVM PV drivers to insert xentrace records
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Fri, 9 Jul 2010 16:07:41 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 09 Jul 2010 08:09:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C3751E4020000780000A81E@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1278682223@xxxxxxxxxxxxxxxxxxxxxxxx> <ed89d064acc184b0c10a.1278682225@xxxxxxxxxxxxxxxxxxxxxxxx> <4C3751E4020000780000A81E@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
At 15:44 +0100 on 09 Jul (1278690260), Jan Beulich wrote:
> >>> On 09.07.10 at 15:30, Tim Deegan <Tim.Deegan@xxxxxxxxxx> wrote:
> >+        if ( tr.extra_bytes > 28 || tr.event >= 0x1000 )
> 
> Couldn't you use TRACE_EXTRA_MAX * sizeof(u32) instead of the
> literal 28?

Indeed I should.

> The literal 0x1000 also doesn't look nice - I'm no sure though
> whether this really is (1 << TRC_SUBCLS_SHIFT).

Yes it is (the guest's not allowed to define the class or subclass of
the trace entry).  How about the attached patch instead?

Cheers, 

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, XenServer Engineering
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

Attachment: hvm-op-trace
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel