Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jan 2011 00:11:01 +0900
From:      Takeshi HASEGAWA <hasegaw@gmail.com>
To:        freebsd-current@freebsd.org
Cc:        wakatono@todo.gr.jp, soda@netbsd.org, rusty@au.ibm.com, Takeshi HASEGAWA <hasegaw@gmail.com>, ito@virtualtech.jp, aliguori@us.ibm.com
Subject:   Another virtio drivers for FreeBSD
Message-ID:  <AANLkTi=7gB7wrWLd7zSn31GY7f61vt5TbHkcOchVOJGv@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi freebsd-current,

I noticed there are some threads about virtio drivers for FreeBSD and NetBSD
on this mailing list, so I would like to post my virtio drivers.
I've worked on these drivers for a few months to understand
para-virtalized drivers.
I sent early versions to Rusty Russel, the author of virtio, since I
attended to Rusty's
virtio session at LinuxCon 2010 Tokyo and decided to work on it.

My virtio-net & virtio-blk driver is not complete just now, but it
looks working fine.
I confirmed these drivers working with FreeBSD 8.1-R on Fedora 14 KVM.
Both driver can deliver better performance than h/w emulation.

http://ysr.jp/~hasegaw/virtio-20110103-2316.tar.gz

I'm sorry for very nasty code; I am newbie in both of C and
kernel-space code. ;)

Now I am suffering with performance problem with virtio-blk driver.
I've heard some people said FreeBSD's disk I/O on KVM is very poor
so I have implemented block I/O, but the paravirtual driver's performance is
still very bad - "almost same" with SCSI emulation, expecting CPU stress.

http://ysr.jp/~hasegaw/20101203virtio-blk5.txt

Now I am doubting FreeBSD and qemu-kvm's storage layer may not be
compatible so well. Anyone is examining about this?

I especially thank to Noriyuki Soda <soda at netbsd dot org> because he gave
me a lot of advices when I was suffering with usage of bus_dma framework and
some other issues.

For NetBSD, it looks Makoto Minoura <minoura at netbsd dot org> has already
ported virtio drivers. (I'm not sure these are already commited to
main tree or not)
http://www.minoura.org/~minoura/virtio-100605/

-- 
Takeshi HASEGAWA <hasegaw@gmail.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=7gB7wrWLd7zSn31GY7f61vt5TbHkcOchVOJGv>