Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2014 20:00:00 -0700
From:      Jack Vogel <jfvogel@gmail.com>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        FreeBSD Net <freebsd-net@freebsd.org>, Prashant Upadhyaya <praupadhyaya@gmail.com>
Subject:   Re: Regarding Netmap in VM
Message-ID:  <CAFOYbckX72sn0fb%2BMbLtN3bjEcHBtFn0US8GGJs5bmKmbGAE-w@mail.gmail.com>
In-Reply-To: <20140526170643.GE40172@onelab2.iet.unipi.it>
References:  <CAPBAu3XfYXV8Y0y2pudvRtprwh0VzpSqK%2BiR_yi5EmMVrC6MOw@mail.gmail.com> <20140526170643.GE40172@onelab2.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
I don't think we've ever tried this at Intel either. I had meant to check
the ixv code to
see if it had your code in it Luigi but got distracted, if it doesn't then
it obviously can't
work for the case of a VM.

I think with the new 40G VF driver, when that gets committed it might be
desirable to
have netmap support.

And, although we don't have SRIOV yet... that should be changing before
long :)

Jack



On Mon, May 26, 2014 at 10:06 AM, Luigi Rizzo <rizzo@iet.unipi.it> wrote:

> On Thu, May 22, 2014 at 09:28:45AM +0530, Prashant Upadhyaya wrote:
> > Hi,
> >
> > Suppose I am on x86 with Intel 82599 NIC.
> > Now I spawn a VM (running FreeBSD as guest OS with Netmap support)
> > For better I/O performance, I have two main choices --
> >
> > 1. Pass the 82599 NIC as a PCI passthrough device into the VM
> > 2. Use SRIOV VF of 82599 into the VM
> >
> > Question is, will Netmap be able to utilize both the above environments
> > when I run the userspace application in the guest OS in the VM, or will
> > there be any issues.
>
> if i remember well we do not have sriov vf support yet in freebsd
> so you should follow the pci-passthrough approach.
>
> It should probably work, i am not 100% sure who is in charge of
> programming the IOMMU for the guest os when accessing a device
> through pci passthrough. If this part is missing, the symptoms
> you should see is that packets will have all bytes set to 0x00
>
> cheers
> luigi
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFOYbckX72sn0fb%2BMbLtN3bjEcHBtFn0US8GGJs5bmKmbGAE-w>