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-merge

Re: [Xen-merge] [PATCH] loosen write_cr0/4 restrictions

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: Re: [Xen-merge] [PATCH] loosen write_cr0/4 restrictions
From: "Stephen C. Tweedie" <sct@xxxxxxxxxx>
Date: Fri, 13 Jan 2006 10:35:45 -0500
Cc: Chris Wright <chrisw@xxxxxxxxxxxx>, xen-merge@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 13 Jan 2006 15:42:20 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <43C61978.76F0.0078.0@xxxxxxxxxx>
List-help: <mailto:xen-merge-request@lists.xensource.com?subject=help>
List-id: xen-merge <xen-merge.lists.xensource.com>
List-post: <mailto:xen-merge@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-merge>, <mailto:xen-merge-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-merge>, <mailto:xen-merge-request@lists.xensource.com?subject=unsubscribe>
References: <20060111235434.GN3335@xxxxxxxxxxxxxxxxxx> <43C61978.76F0.0078.0@xxxxxxxxxx>
Sender: xen-merge-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

On Thu, 2006-01-12 at 08:55 +0100, Jan Beulich wrote:

> I disagree with this change; it should rather be done similarly to the
> merge for x86-64's xor.h.

Whichever way it's done, we definitely don't want to preserve the
WARN_ON():

> -#define write_cr0(x) BUG()
> +#define write_cr0(x) \
> +     WARN_ON(1); \
> +     __asm__ __volatile__("movl %0,%%cr0": :"r" (x));

That will let the boot xor tests pass, but will result in massive
console spam if anybody actually uses raid5.  Better to fix it for good
right away, either by relying on the hypervisor %cr0 virtualisation or
just by doing a conditional stts() in the XMMS_RESTORE (the latter is
probably more efficient.)

--Stephen



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

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