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 6 of 8] Xen: remove run_in_exception_handler() an

To: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 6 of 8] Xen: remove run_in_exception_handler() and recode its only caller
From: Keir Fraser <keir.xen@xxxxxxxxx>
Date: Mon, 07 Mar 2011 16:00:06 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 07 Mar 2011 08:01:39 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:user-agent:date:subject:from:to:cc:message-id :thread-topic:thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=scupjHqTvpa53dS+t3URe7CyY7gMXO9Vfw2elR6fmvc=; b=HP0cxuL0wjpbc9eSL82pgvZSbQNLZLnVKuI5NZnySobULKRjvPSnBIhw7b5xLunVrT YawuYBJR4v1hqvmiercfE3MOUGCykfRin5pb308BuzSqQafM2yR0MnDnbSW3rBZfnEuL qwRz0OKnHMc5lXFddLh20AnVIcnowZz0qE6zk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=q5mMoLrQrg+pWJzOw9vCsYwo85f2N0yWjxwozo/HBkdURYOGIfmxYM28LX/rgWNcm1 S9W9a6FXO34Em9ERaGv1JZ1pv8Q25vl2n19XGElJk1y6V4DlRS5Ty92avznCAb+fD1al 6tNMMsWpXbm3s5jZb3/Wn3l877WYz7cHEuehs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110307155621.GB28479@xxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acvc4LnotnM+DHwRE0++0QwB1O+ltA==
Thread-topic: [Xen-devel] [PATCH 6 of 8] Xen: remove run_in_exception_handler() and recode its only caller
User-agent: Microsoft-Entourage/12.28.0.101117
On 07/03/2011 15:56, "Tim Deegan" <Tim.Deegan@xxxxxxxxxx> wrote:

> At 15:38 +0000 on 07 Mar (1299512321), Tim Deegan wrote:
>> At 15:15 +0000 on 07 Mar (1299510944), Keir Fraser wrote:
>>> On 07/03/2011 15:05, "Keir Fraser" <keir.xen@xxxxxxxxx> wrote:
>>> 
>>> Like the attached patch (against latest tip).
>> 
>> Sorry, I had missed that other user.  I'll see if I can find a way to
>> make clang use the function address directly; if not, I'd be inclined to
>> have dump_execution_state have its own ID anyway, to keep %rax valid(er)
>> in BUG()s.
> 
> Turns out to be very straightforward: another level of indirection makes
> the parser happy.  If it's OK with you, I'll revert 22987:3147f2d1c6fb
> and apply this instead:

If you've successfully both build- and run-tested it with gcc then it's fine
with me. It needs testing as it's a moderately skanky construct in the first
place.

 -- Keir

> diff -r 3147f2d1c6fb xen/include/asm-x86/bug.h
> --- a/xen/include/asm-x86/bug.h Mon Mar 07 15:47:59 2011 +0000
> +++ b/xen/include/asm-x86/bug.h Mon Mar 07 15:48:32 2011 +0000
> @@ -22,7 +22,7 @@ struct bug_frame {
>      asm volatile (                                 \
>          "ud2 ; ret %0" BUG_STR(1)                  \
>          : : "i" (BUGFRAME_run_fn),                 \
> -            "i" (fn) )
> +            "i" (&(fn)) )
>  
>  #define WARN()                                     \
>      asm volatile (                                 \
> 
> Cheers,
> 
> Tim.



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

<Prev in Thread] Current Thread [Next in Thread>