From: "Robert Kaiser (FH)" Subject: Re: mini-os: more bugs (was: mini-os: gnttab.c does not compile) Date: Wed, 30 Aug 2006 23:29:57 +0200 Message-ID: <44F60355.9030703@informatik.fh-wiesbaden.de> References: <200608291442.50081.kaiser@informatik.fh-wiesbaden.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Grzegorz Milos Cc: "John D. Ramsdell" , Steven Smith , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hello Gregor Thanks for your response. Grzegorz Milos schrieb: > Hi there > Thanks for the reports guys. > > I'm very busy for the next 2 days, but I will have a look afterwards.=20 > My guess is that public xen interfaces changed, which causes our grant=20 > table implementation to fail to compile. > > If you remove gnttab.c (together with the init call from kernel.c)=20 > then Mini-OS should work just fine. > I switched to xen-3.0.2 for now. The mini-os here does compile, but it=20 has some bugs too: Exception handling does not display the correct=20 registers and gets into an endless loop. I have developed a patch to fix=20 these issues. I suppose it would be best if I "forward-ported" this=20 patch to xen-unstable and submit it to you? Another issue I found is that mini-os blocks its VM when idle (I posted=20 a question about this a few weeks ago, but didn't get any response): Xen=20 signals timer events to mini-os, but because mini-os is blocked most of=20 the time, it misses roughly 99% of those. That is why the periodic=20 output of the current time that mini-os is supposed to display does not=20 show (actually it would if one were patient enough to wait for a few=20 hours or even days..). This could be fixed easily by removing the=20 blocking call. Cheers Rob > Cheers > Gregor > >> Hello, >> >> sorry to bother you with this: while trying to compile mini-os from >> xen-unstable.hg, I noticed that compilation failed like this: >> >> >> gcc -fno-builtin -Wall -Werror -Wredundant-decls -Wno-format >> -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline -m32 >> -march=3Di686 -g -Iinclude -Iinclude/x86 -Iinclude/x86/x86_32 -c= =20 >> gnttab.c >> -o gnttab.o >> gnttab.c: In Funktion =BBinit_gnttab=AB: >> gnttab.c:165: error: request for member `p' in something not a=20 >> structure or >> union >> make: *** [gnttab.o] Error 1 >> >> Looking at the source code, I'm not surprised that this happens, and=20 >> I suspect >> that the file of the same name (gnttab.c) found in >> linux-2.6-xen-sparse/drivers/xen/core will also fail to compile=20 >> (though I >> have not checked this). >> >> It seems that the grant-table functions are currently in a=20 >> non-functional >> state and that mini-os does not use these functions anyway (except=20 >> for a call >> to the init function): After commenting out this call, I was able to=20 >> build >> the mini-os binary. >> >> Is there a particular reason for this? Can I expect the mini-os to=20 >> work after >> removing gnttab.c? >> >> >> Kind Regards >> >> Rob >