From: Avi Kivity <avi@redhat.com>
To: Joanna Rutkowska <joanna@invisiblethingslab.com>
Cc: Anthony Liguori <anthony@codemonkey.ws>, kvm@vger.kernel.org
Subject: Re: A few KVM security questions
Date: Mon, 07 Dec 2009 20:34:11 +0200 [thread overview]
Message-ID: <4B1D4AA3.2010909@redhat.com> (raw)
In-Reply-To: <4B1D3C6F.8040806@invisiblethingslab.com>
On 12/07/2009 07:33 PM, Joanna Rutkowska wrote:
>
>> AFAIK VT-d is only supported in Xen for fully virtualized guests. Maybe
>> it changed while I wasn't watching, though.
>>
>>
> Negative. VT-d can be used to contain PV DomUs as well. We actually
> verified it.
>
>
Ah, good for them.
>> It can use read() and write() (and shared memory) to communicate, just
>> like Xen stub domains.
>>
>>
> Well, but the read() and write() syscalls, on a system like Linux, it's
> a gate to *lots* of code. These are very powerful system calls.
>
But you control all the file descriptors. A minimal system would just
consist of a pair of eventfd fds for signalling and shared memory (the
Xen equivalent is event channels and grant tables).
>> It's a lot of surgery, but it can be done.
>>
>>
> And then you have the code with whom this qemu communicates (e.g. the
> network stack). You said we could somehow use IPC to delegate it to some
> VM (that would have VT-d assigned NIC). But then this VM would need to
> use qemu again (of course this time not for net emulation). Looks
> non-trivial.
>
It doesn't really need to be a VM. Once the seccomp constrained qemu
processes the guest actions, the result is a fairly simple event stream.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
next prev parent reply other threads:[~2009-12-07 18:34 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-07 13:05 A few KVM security questions Joanna Rutkowska
2009-12-07 13:17 ` Avi Kivity
2009-12-07 13:30 ` Joanna Rutkowska
2009-12-07 13:38 ` Avi Kivity
2009-12-07 14:06 ` Joanna Rutkowska
2009-12-07 14:09 ` Avi Kivity
2009-12-07 16:44 ` Anthony Liguori
2009-12-07 17:09 ` Joanna Rutkowska
2009-12-07 17:13 ` Avi Kivity
2009-12-07 17:15 ` Joanna Rutkowska
2009-12-07 17:18 ` Avi Kivity
2009-12-07 17:33 ` Joanna Rutkowska
2009-12-07 18:34 ` Avi Kivity [this message]
2009-12-09 10:43 ` Pasi Kärkkäinen
2009-12-07 17:38 ` Anthony Liguori
2009-12-07 17:45 ` Joanna Rutkowska
[not found] ` <20091207181556.GM4679@tyrion.haifa.ibm.com>
2009-12-07 19:58 ` Anthony Liguori
2009-12-07 17:33 ` Anthony Liguori
2009-12-07 17:58 ` Joanna Rutkowska
2009-12-07 17:47 ` Daniel P. Berrange
2009-12-07 13:55 ` Joanna Rutkowska
2009-12-07 14:01 ` Avi Kivity
2009-12-07 16:47 ` Anthony Liguori
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=4B1D4AA3.2010909@redhat.com \
--to=avi@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=joanna@invisiblethingslab.com \
--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