public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Florian Pester <florian.pester@tu-dresden.de>
To: kvm-devel <kvm@vger.kernel.org>
Subject: VMCALL to KVM userspace?
Date: Tue, 13 Aug 2013 16:33:49 +0200	[thread overview]
Message-ID: <520A43CD.1040809@tu-dresden.de> (raw)

Hi,

for a uni project I'm trying to write a userspace for KVM that can run
ELF binaries without a full blown OS in the guest. The idea is to handle
any syscalls made by the binary running inside the guest in the
userspace of the host. In the simplest case you could forward them to
the host Linux kernel.

In any case, I've gotten pretty far, setting up IDTs, the VCPU, Page
Tables and whatnot, but right now I'm stuck. I setup my syscall handler
to do a VMCALL, which according to the Intel manual is supposed to
return control to the host. However this seems to be handled by KVM
without an exit into userspace?

If this is correct, is there any way to make a call to the host VMM,
that will be transfered to userspace by KVM?

Thanks
Florian


             reply	other threads:[~2013-08-13 15:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-13 14:33 Florian Pester [this message]
2013-08-13 15:43 ` VMCALL to KVM userspace? Paolo Bonzini
2013-08-14 19:55 ` Muli Ben-Yehuda

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=520A43CD.1040809@tu-dresden.de \
    --to=florian.pester@tu-dresden.de \
    --cc=kvm@vger.kernel.org \
    /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