From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Maiero Subject: Re: Suspend or kill a syscall in hypervisor Date: Wed, 6 Oct 2010 18:10:17 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1882521594==" 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: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1882521594== Content-Type: multipart/alternative; boundary=0016e6d55a867067010491f503f4 --0016e6d55a867067010491f503f4 Content-Type: text/plain; charset=ISO-8859-1 2010/10/4 Carlo Maiero > I've made a patch that intercept some type of (malicious) hypercall and > syscall of domU in the hypervisor, > and handle the log in the dom0. > > How can i suspend or kill a certain syscall (or hypercall) on a vcpu? > The easy way is to suspend the virtual machine, but i think it's > unnecessary. > > To block the instruction, i think i've to clear vcpu register and skip to the next instruction, or set failure result in a register. To stop the execution of the process i've to call a function in traps.c i think near line 400. This function will wait for a value to be 1. Which is the best way to implement a semaphore at this level? --0016e6d55a867067010491f503f4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2010/10/4 Carlo Maiero <zesster@gmail.com>
I've made a patch that intercept some type of (malicious) hypercall and= syscall of domU in the hypervisor,=A0
and handle the log in the dom0.<= div>
How can i suspend or kill a certain syscall (or hypercal= l) on a vcpu?=A0
The easy way is to suspend the virtual machine, but i think it's= =A0unnecessary.


To block the instruction, i think i've to c= lear vcpu register and skip =A0to the next instruction, or set failure resu= lt in a register.

To stop the execution of the pro= cess i've to call a function in traps.c i think near line 400.=A0
This function will wait for a value to be 1.=A0

Which is the best way to implement a semaphore at this level?
=
--0016e6d55a867067010491f503f4-- --===============1882521594== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1882521594==--