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] Question about alignment check in sh_x86_emulate_write

To: "Tim Deegan" <Tim.Deegan@xxxxxxxxxx>
Subject: Re: [Xen-devel] Question about alignment check in sh_x86_emulate_write
From: "Trolle Selander" <trolle.selander@xxxxxxxxx>
Date: Tue, 4 Dec 2007 14:20:05 +0100
Cc: "Su, Disheng" <disheng.su@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 04 Dec 2007 05:41:00 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=fxEQY2BiuqU9ZfaBcVyXmfCxLUyrsDPWidiB1+BtQgI=; b=clYNvl6AjL9AtPI8Al7Dd2uTuoEh0C+EyOyGLUaxLpTrRSOGetFqhhi5aQ4YxJRcQjpVRVKtDBPaddvbJSezE/WOdR2MBtDC0Sb+folsS0WjCZ2rYSQrxqniTDx78MbPRsIebn71FDuPhaoSGJkL/YoK6KQPBQPTpmikWk5/ILI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=NakgixDJnwbIIvHGyU0L7M36c2S5bIM6ziPAQM/B0w+wN5almVJbtzL96d2V4VKoRuTGXKW8hXejFzlav8J8MaIpsa9mAY8J1SFwffVfrAE+vfvASJ/t6yiRd0YU0giS466J4XTepg40qsoVAf+4CBMEEdRxsW4ro8H5my9Pr0o=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20071204124334.GB2062@xxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <FF386CB4AE0E4648B0A96060EC00F36C5BB8FA@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20071204124334.GB2062@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Wow... I had a mail in my drafts folder about exactly this. To answer the question if any OS's are affectedm, the answer is yes -  OS/2 in newer versions than Warp 4  Fix Pack 12 gets stuck on this check. I've tested other guests with this check removed without any apparent ill effects, and was about to send a patch/RFC about removing it. It looks like 64 bit linux is the only guest that ever triggers the check, but like I said, I've seen no ill effect from removing the check even there.

On Dec 4, 2007 1:43 PM, Tim Deegan < Tim.Deegan@xxxxxxxxxx> wrote:
At 20:38 +0800 on 04 Dec (1196800681), Su, Disheng wrote:
> In in sh_x86_emulate_write:
>       if ( vaddr & (bytes-1) )
>               return X86EMUL_UNHANDLE;
> I met a problem the vaddr is not aligned on word or dword, but have to
> emulate it.

Have you got an OS that does unaligned writes to its pagetables?
Exciting!  What is it doing?

> I am wordering about the reason for this check. Is it safe to get rid of
> it?

Not really.  Among other things, self-aligned writes never cross page
boundaries.

Tim.

--
Tim Deegan <Tim.Deegan@xxxxxxxxxx >
Principal Software Engineer, Citrix Systems.
[Company #5334508: XenSource UK Ltd, reg'd c/o EC2Y 5EB, UK.]

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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>