[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC] Next gen kvm api
From: |
Rusty Russell |
Subject: |
Re: [Qemu-devel] [RFC] Next gen kvm api |
Date: |
Wed, 08 Feb 2012 04:42:58 +1030 |
User-agent: |
Notmuch/0.6.1-1 (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu) |
On Mon, 06 Feb 2012 11:34:01 +0200, Avi Kivity <address@hidden> wrote:
> On 02/05/2012 06:36 PM, Anthony Liguori wrote:
> > If userspace had a way to upload bytecode to the kernel that was
> > executed for a PIO operation, it could either pass the operation to
> > userspace or handle it within the kernel when possible without taking
> > a heavy weight exit.
> >
> > If the bytecode can access variables in a shared memory area, it could
> > be pretty efficient to work with.
> >
> > This means that the kernel never has to deal with specific in-kernel
> > devices but that userspace can accelerator as many of its devices as
> > it sees fit.
>
> I would really love to have this, but the problem is that we'd need a
> general purpose bytecode VM with binding to some kernel APIs. The
> bytecode VM, if made general enough to host more complicated devices,
> would likely be much larger than the actual code we have in the kernel now.
We have the ability to upload bytecode into the kernel already. It's in
a great bytecode interpreted by the CPU itself.
If every user were emulating different machines, LPF this would make
sense. Are they? Or should we write those helpers once, in C, and
provide that for them.
Cheers,
Rusty.
- Re: [Qemu-devel] [RFC] Next gen kvm api, (continued)
- Re: [Qemu-devel] [RFC] Next gen kvm api, Anthony Liguori, 2012/02/05
- Re: [Qemu-devel] [RFC] Next gen kvm api, Avi Kivity, 2012/02/06
- Re: [Qemu-devel] [RFC] Next gen kvm api, Anthony Liguori, 2012/02/06
- Re: [Qemu-devel] [RFC] Next gen kvm api, Avi Kivity, 2012/02/06
- Re: [Qemu-devel] [RFC] Next gen kvm api, Anthony Liguori, 2012/02/06
- Re: [Qemu-devel] [RFC] Next gen kvm api, Avi Kivity, 2012/02/06
- Re: [Qemu-devel] [RFC] Next gen kvm api,
Rusty Russell <=
- Re: [Qemu-devel] [RFC] Next gen kvm api, Avi Kivity, 2012/02/15
- Re: [Qemu-devel] [RFC] Next gen kvm api, Anthony Liguori, 2012/02/15
- Re: [Qemu-devel] [RFC] Next gen kvm api, Gleb Natapov, 2012/02/16
- Re: [Qemu-devel] [RFC] Next gen kvm api, Anthony Liguori, 2012/02/16
- Re: [Qemu-devel] [RFC] Next gen kvm api, Avi Kivity, 2012/02/16
- Re: [Qemu-devel] [RFC] Next gen kvm api, Rusty Russell, 2012/02/15