From: Carlo Maiero <zesster@gmail.com>
To: xen-devel@lists.xensource.com
Subject: Re: Suspend or kill a syscall in hypervisor
Date: Wed, 6 Oct 2010 18:10:17 +0200 [thread overview]
Message-ID: <AANLkTikHzTzSm+GJOwS7aArYBoWury86n4NrX9Aa6R-4@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikDtHUpvudhHbAKH=VMWTCDaAe013kk=GqZODQv@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 687 bytes --]
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,
> 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?
[-- Attachment #1.2: Type: text/html, Size: 1173 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
prev parent reply other threads:[~2010-10-06 16:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-04 13:32 Suspend or kill a syscall in hypervisor Carlo Maiero
2010-10-06 16:10 ` Carlo Maiero [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTikHzTzSm+GJOwS7aArYBoWury86n4NrX9Aa6R-4@mail.gmail.com \
--to=zesster@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).