* [ANNOUNCE] kvm-guest-drivers-linux-1
@ 2008-03-06 9:26 Avi Kivity
[not found] ` <7fac565a0803060148k418756f1sb558993f9a5aad1c@mail.gmail.com>
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Avi Kivity @ 2008-03-06 9:26 UTC (permalink / raw)
To: KVM
This is the first release of block and network drivers for Linux guests
running on a kvm host. The drivers are intended for guest kernels
2.6.18-2.6.24. Newer kernels include the drivers; older kernels may not
work. kvm-61 or later is needed in the host.
Network throughput is around 1 Gbit/sec; latency is currently a less
than stellar 0.3 msec. Both these figures will be improved in the future.
The drivers are available from the download page of the kvm website, below.
To use, download the drivers into the guest (using one of the emulated
network cards), unpack the package, and type
make
sudo make install
You will need the kernel development package installed.
To use the drivers, reboot with '-net nic,model=virtio' instead of the
usual setting, and 'modprobe virtio_net' to load the module. Similarly
use '-drive ...,if=virtio' for the block device, and the corresponding
virtio_blk.ko.
Initial release:
- virtio pci driver (Anthony Liguori, Rusty Russell, Dor Laor)
- virtio network driver (Anthony Liguori, Rusty Russell, Dor Laor)
- virtio block driver (Anthony Liguori, Rusty Russell, Dor Laor)
- backports to Linux 2.6.18-2.6.24 (Anthony Liguori, Rusty Russell, Dor
Laor)
http://kvm.qumranet.com/
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 10+ messages in thread[parent not found: <7fac565a0803060148k418756f1sb558993f9a5aad1c@mail.gmail.com>]
* Re: [ANNOUNCE] kvm-guest-drivers-linux-1
[not found] ` <7fac565a0803060148k418756f1sb558993f9a5aad1c@mail.gmail.com>
@ 2008-03-06 10:12 ` Alexey Eremenko
2008-03-06 15:59 ` Anthony Liguori
0 siblings, 1 reply; 10+ messages in thread
From: Alexey Eremenko @ 2008-03-06 10:12 UTC (permalink / raw)
To: kvm-devel
Very nice !
1. How about releasing those in ISO format instead (or in addition
to...) tarballs?
2. I have a problem compiling it.
"make sync LINUX=." fails.
I have read the README:
"Where /path/to/kernel is the path to a recent kernel tree containing virtio
drivers. At the moment, this must be Rusty Russell's virtio patch queue[1]
applied on top of Linus' git tree[2]."
What does it means ? That I need kernel-2.6.25 sources?
Well, since we release a tarball, can we include part of 2.6.25 ?
It is a bit unclear, what must I do to compile it.
--
-Alexey Eremenko "Technologov"
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [ANNOUNCE] kvm-guest-drivers-linux-1
2008-03-06 10:12 ` Alexey Eremenko
@ 2008-03-06 15:59 ` Anthony Liguori
0 siblings, 0 replies; 10+ messages in thread
From: Anthony Liguori @ 2008-03-06 15:59 UTC (permalink / raw)
To: Alexey Eremenko; +Cc: kvm-devel
Alexey Eremenko wrote:
> Very nice !
>
> 1. How about releasing those in ISO format instead (or in addition
> to...) tarballs?
>
It's not a bad idea. What we really need is for people to submit
spec/deb files for older distros. Then it's a matter of compiling those
RPMs/debs and putting them on an ISO.
> 2. I have a problem compiling it.
> "make sync LINUX=." fails.
>
> I have read the README:
> "Where /path/to/kernel is the path to a recent kernel tree containing virtio
> drivers. At the moment, this must be Rusty Russell's virtio patch queue[1]
> applied on top of Linus' git tree[2]."
>
The released tarball has already done a "make sync". The README is out
of date, it should work against Linus' latest git tree.
> What does it means ? That I need kernel-2.6.25 sources?
> Well, since we release a tarball, can we include part of 2.6.25 ?
> It is a bit unclear, what must I do to compile it.
>
It should just be a matter of doing a make && make install in the guest.
Regards,
Anthony Liguori
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ANNOUNCE] kvm-guest-drivers-linux-1
2008-03-06 9:26 [ANNOUNCE] kvm-guest-drivers-linux-1 Avi Kivity
[not found] ` <7fac565a0803060148k418756f1sb558993f9a5aad1c@mail.gmail.com>
@ 2008-03-06 10:31 ` Jun Koi
2008-03-06 11:08 ` Thomas Mueller
2008-03-06 14:29 ` Balaji Rao
2008-03-06 22:19 ` Iain Paton
2 siblings, 2 replies; 10+ messages in thread
From: Jun Koi @ 2008-03-06 10:31 UTC (permalink / raw)
To: Avi Kivity; +Cc: KVM
On 3/6/08, Avi Kivity <avi@qumranet.com> wrote:
> This is the first release of block and network drivers for Linux guests
> running on a kvm host. The drivers are intended for guest kernels
> 2.6.18-2.6.24. Newer kernels include the drivers; older kernels may not
> work. kvm-61 or later is needed in the host.
>
> Network throughput is around 1 Gbit/sec; latency is currently a less
> than stellar 0.3 msec. Both these figures will be improved in the future.
>
> The drivers are available from the download page of the kvm website, below.
>
> To use, download the drivers into the guest (using one of the emulated
> network cards), unpack the package, and type
>
> make
> sudo make install
>
> You will need the kernel development package installed.
Excellent, thanks!
Just 1 question: Above is the instruction for guest. How about the
host? Dont we need to install anything??
I suppose that qemu in the latest kvm package already supported
virtio, but I think we need some support from host kernel as well?
J
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [ANNOUNCE] kvm-guest-drivers-linux-1
2008-03-06 10:31 ` Jun Koi
@ 2008-03-06 11:08 ` Thomas Mueller
2008-03-06 14:29 ` Balaji Rao
1 sibling, 0 replies; 10+ messages in thread
From: Thomas Mueller @ 2008-03-06 11:08 UTC (permalink / raw)
To: kvm-devel
> On 3/6/08, Avi Kivity <avi@qumranet.com> wrote:
>
>> This is the first release of block and network drivers for Linux guests
>> running on a kvm host. The drivers are intended for guest kernels
>> 2.6.18-2.6.24. Newer kernels include the drivers; older kernels may not
>> work. kvm-61 or later is needed in the host.
>> installed.
>>
>
>
thanks alot for this!
> Just 1 question: Above is the instruction for guest. How about the
> host? Dont we need to install anything??
>
> I suppose that qemu in the latest kvm package already supported
> virtio, but I think we need some support from host kernel as well?
>
no, virtio drivers are only needed on guest - but you need latest kvm
modules on host.
Thomas
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ANNOUNCE] kvm-guest-drivers-linux-1
2008-03-06 10:31 ` Jun Koi
2008-03-06 11:08 ` Thomas Mueller
@ 2008-03-06 14:29 ` Balaji Rao
2008-03-06 16:00 ` Anthony Liguori
1 sibling, 1 reply; 10+ messages in thread
From: Balaji Rao @ 2008-03-06 14:29 UTC (permalink / raw)
To: kvm-devel
On Thursday 06 March 2008 04:01:53 pm Jun Koi wrote:
> On 3/6/08, Avi Kivity <avi@qumranet.com> wrote:
> > This is the first release of block and network drivers for Linux guests
> > running on a kvm host. The drivers are intended for guest kernels
> > 2.6.18-2.6.24. Newer kernels include the drivers; older kernels may not
> > work. kvm-61 or later is needed in the host.
> >
> > Network throughput is around 1 Gbit/sec; latency is currently a less
> > than stellar 0.3 msec. Both these figures will be improved in the
> > future.
> >
> > The drivers are available from the download page of the kvm website,
> > below.
> >
> > To use, download the drivers into the guest (using one of the emulated
> > network cards), unpack the package, and type
> >
> > make
> > sudo make install
> >
> > You will need the kernel development package installed.
>
> Excellent, thanks!
>
> Just 1 question: Above is the instruction for guest. How about the
> host? Dont we need to install anything??
>
> I suppose that qemu in the latest kvm package already supported
> virtio, but I think we need some support from host kernel as well?
Hi Jun,
No, AFAIK we don't need any support from the host kernel. We just need a
virtio backend to be present in qemu, which is there in the latest
kvm-userspace.
--
regards,
balaji rao
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ANNOUNCE] kvm-guest-drivers-linux-1
2008-03-06 14:29 ` Balaji Rao
@ 2008-03-06 16:00 ` Anthony Liguori
0 siblings, 0 replies; 10+ messages in thread
From: Anthony Liguori @ 2008-03-06 16:00 UTC (permalink / raw)
To: Balaji Rao; +Cc: kvm-devel
Balaji Rao wrote:
>> Excellent, thanks!
>>
>> Just 1 question: Above is the instruction for guest. How about the
>> host? Dont we need to install anything??
>>
>> I suppose that qemu in the latest kvm package already supported
>> virtio, but I think we need some support from host kernel as well?
>>
> Hi Jun,
>
> No, AFAIK we don't need any support from the host kernel. We just need a
> virtio backend to be present in qemu, which is there in the latest
> kvm-userspace.
>
Correct. In the future, we may have kernel backends but you should
still be able to use the userspace backends.
Regards,
Anthony Liguori
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ANNOUNCE] kvm-guest-drivers-linux-1
2008-03-06 9:26 [ANNOUNCE] kvm-guest-drivers-linux-1 Avi Kivity
[not found] ` <7fac565a0803060148k418756f1sb558993f9a5aad1c@mail.gmail.com>
2008-03-06 10:31 ` Jun Koi
@ 2008-03-06 22:19 ` Iain Paton
2008-03-07 2:52 ` Paul Collins
2 siblings, 1 reply; 10+ messages in thread
From: Iain Paton @ 2008-03-06 22:19 UTC (permalink / raw)
To: KVM
Avi Kivity wrote:
> > This is the first release of block and network drivers for Linux guests
> > running on a kvm host. The drivers are intended for guest kernels
> > 2.6.18-2.6.24. Newer kernels include the drivers; older kernels may not
> > work. kvm-61 or later is needed in the host.
Trying to build against 2.6.24 gives the following:
CC [M] /root/kvm/kvm-guest-drivers-linux-1/virtio_net.o
/root/kvm/kvm-guest-drivers-linux-1/virtio_net.c: In function 'receive_skb':
/root/kvm/kvm-guest-drivers-linux-1/virtio_net.c:101: error: implicit declaration of function 'skb_partial_csum_set'
make[2]: *** [/root/kvm/kvm-guest-drivers-linux-1/virtio_net.o] Error 1
make[1]: *** [_module_/root/kvm/kvm-guest-drivers-linux-1] Error 2
it seems that function isn't available in 2.6.18-2.6.24 or in the driver
download.
Looks like the missing function doesn't show up until 2.6.25-rc1 which
appears to have all of the virtio drivers anyway ?
Iain
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [ANNOUNCE] kvm-guest-drivers-linux-1
2008-03-06 22:19 ` Iain Paton
@ 2008-03-07 2:52 ` Paul Collins
2008-03-16 14:47 ` Avi Kivity
0 siblings, 1 reply; 10+ messages in thread
From: Paul Collins @ 2008-03-07 2:52 UTC (permalink / raw)
To: Iain Paton; +Cc: KVM
Iain Paton <ilp@lkml.darkvoyage.org.uk> writes:
> Trying to build against 2.6.24 gives the following:
>
> CC [M] /root/kvm/kvm-guest-drivers-linux-1/virtio_net.o
> /root/kvm/kvm-guest-drivers-linux-1/virtio_net.c: In function 'receive_skb':
> /root/kvm/kvm-guest-drivers-linux-1/virtio_net.c:101: error: implicit declaration of function 'skb_partial_csum_set'
> make[2]: *** [/root/kvm/kvm-guest-drivers-linux-1/virtio_net.o] Error 1
> make[1]: *** [_module_/root/kvm/kvm-guest-drivers-linux-1] Error 2
This change fixes the build here.
--- external-module-compat.h~ 2008-03-06 21:08:36.000000000 +1300
+++ external-module-compat.h 2008-03-07 15:49:57.000000000 +1300
@@ -13,6 +13,8 @@
#define COMPAT_cb_softirq
#endif
+#define COMPAT_csum_offset
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
struct virtio_device_id {
@@ -63,8 +65,6 @@
} while(0)
#define netif_rx_schedule(dev, napi) netif_rx_schedule(dev)
-#define COMPAT_csum_offset
-
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
#define scsi_cmd_ioctl(filp, rq, gendisk, cmd, data) \
--
Paul Collins
Wellington, New Zealand
Dag vijandelijk luchtschip de huismeester is dood
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [ANNOUNCE] kvm-guest-drivers-linux-1
2008-03-07 2:52 ` Paul Collins
@ 2008-03-16 14:47 ` Avi Kivity
0 siblings, 0 replies; 10+ messages in thread
From: Avi Kivity @ 2008-03-16 14:47 UTC (permalink / raw)
To: Paul Collins; +Cc: KVM, Iain Paton
Paul Collins wrote:
> Iain Paton <ilp@lkml.darkvoyage.org.uk> writes:
>
>
>> Trying to build against 2.6.24 gives the following:
>>
>> CC [M] /root/kvm/kvm-guest-drivers-linux-1/virtio_net.o
>> /root/kvm/kvm-guest-drivers-linux-1/virtio_net.c: In function 'receive_skb':
>> /root/kvm/kvm-guest-drivers-linux-1/virtio_net.c:101: error: implicit declaration of function 'skb_partial_csum_set'
>> make[2]: *** [/root/kvm/kvm-guest-drivers-linux-1/virtio_net.o] Error 1
>> make[1]: *** [_module_/root/kvm/kvm-guest-drivers-linux-1] Error 2
>>
>
> This change fixes the build here.
>
Applied, thanks.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-03-16 14:47 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-06 9:26 [ANNOUNCE] kvm-guest-drivers-linux-1 Avi Kivity
[not found] ` <7fac565a0803060148k418756f1sb558993f9a5aad1c@mail.gmail.com>
2008-03-06 10:12 ` Alexey Eremenko
2008-03-06 15:59 ` Anthony Liguori
2008-03-06 10:31 ` Jun Koi
2008-03-06 11:08 ` Thomas Mueller
2008-03-06 14:29 ` Balaji Rao
2008-03-06 16:00 ` Anthony Liguori
2008-03-06 22:19 ` Iain Paton
2008-03-07 2:52 ` Paul Collins
2008-03-16 14:47 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox