From: Frederic Beck Subject: Re: VM System Calls Date: Wed, 26 Nov 2008 17:30:21 +0100 Message-ID: <20081126173021.300b71c8@hobbes.loria.fr> References: <20081124173832.7dddcc32@hobbes.loria.fr> <20081125144632.3f953643@hobbes.loria.fr> <20081126095032.10723596@hobbes.loria.fr> <20081126115703.54f88a38@hobbes.loria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20081126115703.54f88a38@hobbes.loria.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Well, stupid question in then end. the hypervisor is in xen/ .... I managed to compile a 3.3.0 hypervisor and make my 2.6.26 kernel running fighting now with the tools with compiling errors, but it's advancing :) thanks Fred Le Wed, 26 Nov 2008 11:57:03 +0100, Frederic Beck a =C3=A9crit : > Just another quick question. >=20 > After modifying traps.c, to recompile the hypervisor, do I need to > recompile the whole sources with a make world ? Or is it unnecessary ? >=20 > At the moment I'm running a Debian unstable with the debian packages > distribution of Xen with hypervisor 3.2 and kernel 2.6.26, and the > 2.6.18 is not running on my computer. >=20 > The idea would be to compile only the hypervisor, but id did not found > yet in the documentation how to do it. I'll keep on looking, but is > you have an idea it would be welcomed :) >=20 > Thanks > Fred >=20 > Le Wed, 26 Nov 2008 09:50:32 +0100, > Frederic Beck a =C3=A9crit : >=20 > > Hello > >=20 > > > If you're not averse to modifying the hypervisor, you should be > > > able to arrange to get what you want. > >=20 > > Not at all :) It's what i was planning to do in the first case. > >=20 > > > For 32-bit guests, we allow the system call to trap directly from > > > userspace into the PV kernel. But that's actually an > > > optimization; it used to be the case that if you disable that > > > direct-trap, then it will trap to Xen, and Xen will forward it on > > > to the PV kernel. This will make guest system calls slightly more > > > expensive, but it will allow you to add the tracing / > > > instrumentation you want. > > >=20 > > > Yes, it looks like if you comment out the following line in > > > xen/arch/x86/traps.c:do_set_trap_table(): > > > if ( cur.vector =3D=3D 0x80 ) > > > init_int80_direct_trap(curr); > > >=20 > > > Then all guest traps, including system call, will go through > > > traps.c:do_guest_trap(), which already traces the trap number. If > > > you want more information, you can add more trace info there. > >=20 > > Thanks a lot for your help, i'll give it a try. I just commented out > > that part, i'll recompile the hypervisor and play with it. > >=20 > > I'll let you know how it works out. > >=20 > > Thanks > > Fred > >=20 > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel