From: Dor Laor <dor.laor@qumranet.com>
To: "Dong, Eddie" <eddie.dong@intel.com>
Cc: Sukanto Ghosh <sukanto.cse.iitb@gmail.com>, kvm@vger.kernel.org
Subject: Re: KVM IO performance
Date: Tue, 15 Jul 2008 10:22:08 +0300 [thread overview]
Message-ID: <487C5020.3000209@qumranet.com> (raw)
In-Reply-To: <08DF4D958216244799FC84F3514D70F001ABD037@pdsmsx415.ccr.corp.intel.com>
Dong, Eddie wrote:
> Sukanto Ghosh wrote:
>
>> Hi all,
>>
>> Why has the IO device emulation part been kept in
>> userspace ?
>> IO attempts cause VM-exits to the KVM (running in
>> kernel-mode) it then forwards these requests to the
>> userspace (mode-switch). After completion of IO in
>> userspace, another mode switch is done to KVM before
>> resuming the guests.
>> What would be the problems had the device emulation parts
>> been moved totally to kernelspace ?
>>
>>
> The simple reason is that people don't want to pull a lot of code into
> kernel whose failure may crash the whole system, of course there are
> many other reasons such as maintaining synchronization with Qemu
> upstream, coding style, maintanence effort etc.
> Eddie
>
Nevertheless there is work in progress to integrate virtio network with
the kernel's tap.
This will eventually lead to zero copy networking (with some dma ioat
magic).
For block devices, there is no activity for kernel side, mainly because
qcow2 format is complex and better be userspace, and the performance is
relatively good.
Dor
prev parent reply other threads:[~2008-07-15 7:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-14 20:24 KVM IO performance Sukanto Ghosh
2008-07-15 0:32 ` Dong, Eddie
2008-07-15 7:22 ` Dor Laor [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=487C5020.3000209@qumranet.com \
--to=dor.laor@qumranet.com \
--cc=eddie.dong@intel.com \
--cc=kvm@vger.kernel.org \
--cc=sukanto.cse.iitb@gmail.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