qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] In-kernel emulation
@ 2011-10-07 12:32 Xin Tong
  2011-10-07 16:33 ` 陳韋任
  0 siblings, 1 reply; 4+ messages in thread
From: Xin Tong @ 2011-10-07 12:32 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 602 bytes --]

I am wondering that whether there are any attempts (product-oriented or
research-based ) to push QEMU into the Linux kernel to speed up emulation.
If the emulation is running in the kernel, there are some resources it can
manipulate to speed up emulation in comparison to the when it is running as
a user process, i.e. MMU. Also, IO emulation may become faster, because 2
kernel enters and exits are incurred for a network packet if QEMU is running
as a user process. If QEMU is running in the kernel, only 1 kernel enter and
exit are needed.  Any suggestions or discussions are welcome.


Thanks

Xin

[-- Attachment #2: Type: text/html, Size: 684 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] In-kernel emulation
  2011-10-07 12:32 [Qemu-devel] In-kernel emulation Xin Tong
@ 2011-10-07 16:33 ` 陳韋任
       [not found]   ` <CALKntY1nQ2AE5tD7TuSar2ygNivN5U5T4-PmsXZFx1JD1a1R9w@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: 陳韋任 @ 2011-10-07 16:33 UTC (permalink / raw)
  To: Xin Tong; +Cc: qemu-devel

> I am wondering that whether there are any attempts (product-oriented or
> research-based ) to push QEMU into the Linux kernel to speed up emulation.
> If the emulation is running in the kernel, there are some resources it can
> manipulate to speed up emulation in comparison to the when it is running as
> a user process, i.e. MMU. Also, IO emulation may become faster, because 2
> kernel enters and exits are incurred for a network packet if QEMU is running
> as a user process. If QEMU is running in the kernel, only 1 kernel enter and
> exit are needed.  Any suggestions or discussions are welcome.

  You want to use QEMU to emulate guest ISA different from the host?
If the ISA of guest and host is the same, then KVM is enough, I think.

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] In-kernel emulation
       [not found]   ` <CALKntY1nQ2AE5tD7TuSar2ygNivN5U5T4-PmsXZFx1JD1a1R9w@mail.gmail.com>
@ 2011-10-07 19:10     ` 陳韋任
  2011-10-07 19:16       ` Xin Tong
  0 siblings, 1 reply; 4+ messages in thread
From: 陳韋任 @ 2011-10-07 19:10 UTC (permalink / raw)
  To: Xin Tong; +Cc: qemu-devel

> guest isa is different from host isa in this case.
> 
> Xin
> 
> On Fri, Oct 7, 2011 at 12:33 PM, 陳韋任 <chenwj@iis.sinica.edu.tw> wrote:
> 
> > > I am wondering that whether there are any attempts (product-oriented or
> > > research-based ) to push QEMU into the Linux kernel to speed up emulation.
> > > If the emulation is running in the kernel, there are some resources it can
> > > manipulate to speed up emulation in comparison to the when it is running as
> > > a user process, i.e. MMU. Also, IO emulation may become faster, because 2

  I would like to know how you can leverage linux kernel to speed up
MMU/IO emulation if guest and host are different ISAs. :)

> > > kernel enters and exits are incurred for a network packet if QEMU is running
> > > as a user process. If QEMU is running in the kernel, only 1 kernel enter and
> > > exit are needed.  Any suggestions or discussions are welcome.
> >
> >   You want to use QEMU to emulate guest ISA different from the host?
> > If the ISA of guest and host is the same, then KVM is enough, I think.


-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] In-kernel emulation
  2011-10-07 19:10     ` 陳韋任
@ 2011-10-07 19:16       ` Xin Tong
  0 siblings, 0 replies; 4+ messages in thread
From: Xin Tong @ 2011-10-07 19:16 UTC (permalink / raw)
  To: 陳韋任; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1713 bytes --]

I am kind of speculating here. I could be wrong


MMU. in the kernel you can manipulate the EPT reg which is normally used by
kvm ( introduced by intel vmx, or amd svm).

IO, specifically for network packets, they do not need to go to user space,
they can be handled to the virtual machine directly.


Thanks


Xin


On Fri, Oct 7, 2011 at 3:10 PM, 陳韋任 <chenwj@iis.sinica.edu.tw> wrote:

> > guest isa is different from host isa in this case.
> >
> > Xin
> >
> > On Fri, Oct 7, 2011 at 12:33 PM, 陳韋任 <chenwj@iis.sinica.edu.tw> wrote:
> >
> > > > I am wondering that whether there are any attempts (product-oriented
> or
> > > > research-based ) to push QEMU into the Linux kernel to speed up
> emulation.
> > > > If the emulation is running in the kernel, there are some resources
> it can
> > > > manipulate to speed up emulation in comparison to the when it is
> running as
> > > > a user process, i.e. MMU. Also, IO emulation may become faster,
> because 2
>
>   I would like to know how you can leverage linux kernel to speed up
> MMU/IO emulation if guest and host are different ISAs. :)
>
> > > > kernel enters and exits are incurred for a network packet if QEMU is
> running
> > > > as a user process. If QEMU is running in the kernel, only 1 kernel
> enter and
> > > > exit are needed.  Any suggestions or discussions are welcome.
> > >
> > >   You want to use QEMU to emulate guest ISA different from the host?
> > > If the ISA of guest and host is the same, then KVM is enough, I think.
>
>
> --
> Wei-Ren Chen (陳韋任)
> Computer Systems Lab, Institute of Information Science,
> Academia Sinica, Taiwan (R.O.C.)
> Tel:886-2-2788-3799 #1667
>

[-- Attachment #2: Type: text/html, Size: 2402 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-07 19:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-07 12:32 [Qemu-devel] In-kernel emulation Xin Tong
2011-10-07 16:33 ` 陳韋任
     [not found]   ` <CALKntY1nQ2AE5tD7TuSar2ygNivN5U5T4-PmsXZFx1JD1a1R9w@mail.gmail.com>
2011-10-07 19:10     ` 陳韋任
2011-10-07 19:16       ` Xin Tong

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).