DragonFly BSD
DragonFly kernel List (threaded) for 2011-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: about virtio driver porting from FreeBSD

From: Tim Bisson <bissont@xxxxxxx>
Date: Sun, 27 Feb 2011 19:33:02 -0800


Actually the drivers you linked to are completely ported from NetBSD and under the BSD license, so they can be used. The non-BSD licensed virtio drivers that were ported from FreeBSD have been removed from gitorious.

There's also a different copy of FreeBSD virtio drivers that are under the BSD license, which you could use as a reference for your work if you want:

The NetBSD driver code also has balloon driver at nbsd_code/viomb.c, which you could also implement.


On 2/27/11 5:34 PM, Pratyush Kshirsagar wrote:
Yes, you are right but I did some work porting virtio network driver from NetBSD before we moved forward to port it from FreeBSD.
Attached is the partly done code.
The other basic calls needed for block and network drivers are kept same by Tim and me so that we don't do lot of cleaning and book keeping stuff.

The working code is in "net" directory and not the nbsd_code.
you need to make the outer dir and then the do make in net.
use kldload -v ./virtio.ko followed by kldload -v ./virtio_net.ko
Thus when you use dmesg it will show the messages during the netword device probe and attach() with the network device number/id.

You can mail me for further information.

- Pratyush Kshirsagar.

2011/2/27 Stéphanie Ouillon <stephanie@minet.net <mailto:stephanie@minet.net>>


    I've read the posts on the DragonFly BSD Digest site about virtio,
    but I have some questions about it.

    A virtual network driver was ported from NetBSD, using some
    FreeBSD code that wasn't supposed to be public under a BSD
    license. So for the moment, the code that is published on
    can't be used at all ? Can somebody tell me more about that ?
    Thanks !



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]