From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: Re: NX related build failure in latest pv_ops dom0 hackery tree Date: Thu, 16 Apr 2009 16:54:45 -0700 Message-ID: <49E7C545.9000205@goop.org> References: <20090404192338.GJ24960@edu.joroinen.fi> <49D840D4.1070701@goop.org> <1239555359.12706.4.camel@leto.intern.saout.de> <49E4BF6F.2010308@goop.org> <1239887761.30384.13.camel@leto.intern.saout.de> <49E7591E.3030402@goop.org> <1239919531.8028.31.camel@leto.intern.saout.de> <49E7B0B5.4070003@goop.org> <1239925535.9443.5.camel@leto.intern.saout.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1239925535.9443.5.camel@leto.intern.saout.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christophe Saout Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Christophe Saout wrote: > Ok, you are right. The hackery kernel sees a different issue. The AHCI > setup actually works and hard disks are detected, but then it crashes in > my initrd: > > Write protecting the kernel read-only data: 5868k > init[1] general protection ip:ffffe42f sp:ffc5cfa4 error:0 > > (the init process is a bash in this case) > > Note that this probably has to do with the fact that my initrd is 32 bit > and hence runs in 32 bit compat mode (I was just to lazy to make me a > new one when I initially bought my first 64 machine). > > The funny thing is that I also see this when running the kernel under > qemu but just assumed a problem in qemu and never investigated. qemu is > emulating an AMD CPU I think, so maybe it's something related to > sysenter vs. syscall or something. (?) Because 32 bit compat mode under > XEN works on my Intel notebook. > Yes, likely. There's an outstanding bug in 32-bit compat on AMD systems, but I haven't got around to setting up a system to repro+debug on. The workaround is vdso32=0 on the kernel command line. > So I guess if I redo the initramfs as 64 bit the hackery kernel would > boot. Maybe someone else who has the kernel running on an AMD machine > can test 32 bit compat mode to confirm this observation? > > Ok, back to the AHCI issue, test push2/xen/dom0/master is ongoing. > Thanks, J