[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] VM System Calls


  • To: "Frederic Beck" <frederic.beck@xxxxxxxx>
  • From: "George Dunlap" <dunlapg@xxxxxxxxx>
  • Date: Tue, 25 Nov 2008 14:32:13 +0000
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 25 Nov 2008 06:32:36 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=axpGXkoNoDtC8zty8cjye12wBrJ9GPphdaxneyEqRJ3jV7uXhl/kpWyiM24PgGAcmT e22omGx50q6h0FArxWtM83oW9PiR6cYJp+BChknPR3nR/OGcy2gOTcGNskkIfjfFi++2 OX/EA1dDekKXT0aYwnTPEvBIjzjajMsRhjcck=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

If you're not averse to modifying the hypervisor, you should be able
to arrange to get what you want.

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.

Yes, it looks like if you comment out the following line in
xen/arch/x86/traps.c:do_set_trap_table():
       if ( cur.vector == 0x80 )
            init_int80_direct_trap(curr);

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.

 -George

On Tue, Nov 25, 2008 at 1:46 PM, Frederic Beck <frederic.beck@xxxxxxxx> wrote:
> Le Tue, 25 Nov 2008 11:57:20 +0000,
> "George Dunlap" <George.Dunlap@xxxxxxxxxxxxx> a écrit :
>
>> Do you mean system calls (guest process calls into guest kernels), or
>> hypercalls (guest kernel calls into the hypervisor)?
>>
>> If you mean system calls, Xen is not involved; you need to take that
>> up with your guest OSes. :-)
>
> Yep, that's what i was looking for. I was hoping to be able to get the
> system calls from the guest OSes in the Dom0, but after a few more
> digging and your answer, i realized that it was not possible.
>
> I'll have to look for another type of virtualization, something that
> performs emulation such as Qemu, as the idea is to not modify the guest
> OS.
>
> Thanks for your reply
> Fred
>
> _______________________________________________
> 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.