<div dir="auto">Actually have a Xeon setup where ootb all iommu groups were sane and separated, I just use the second NIC on my motherboard for the Windows vm as virtio makes it a bottleneck</div><div class="gmail_extra"><br><div class="gmail_quote">On Aug 13, 2017 8:19 AM, "Torbjorn Jansson" <<a href="mailto:torbjorn.jansson@mbox200.swipnet.se">torbjorn.jansson@mbox200.swipnet.se</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2017-08-08 00:40, Alex Williamson wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, 24 Jul 2017 09:35:40 +0200<br>
Torbjorn Jansson <<a href="mailto:torbjorn.jansson@mbox200.swipnet.se" target="_blank">torbjorn.jansson@mbox200.swip<wbr>net.se</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello.<br>
<br>
i'm considering upgrading my linux box that i use for virtualization (i5-3470,<br>
Z77 mb).<br>
at the moment i have a successfully working setup where i pass thru a gtx970 to<br>
a windows vm.<br>
i also have an aging 4 port network card, see below:<br>
------<br>
04:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet<br>
Controller (Copper) (rev 06)<br>
04:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet<br>
Controller (Copper) (rev 06)<br>
05:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet<br>
Controller (Copper) (rev 06)<br>
05:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet<br>
Controller (Copper) (rev 06)<br>
------<br>
</blockquote>
<br>
<br>
Interestingly, we have quirks for most of the 82571 cards, but not the<br>
quad port because the onboard switch doesn't support ACS so everything<br>
would get grouped back together anyway.<br>
  <br>
</blockquote>
<br>
yes i have noticed they all get grouped together no matter what i do.<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
i was thinking of replacing this card since i at the moment can't assign this<br>
in a good way, my only option now is to assign all 4 ports to same vm which<br>
doesn't really help.<br>
</blockquote>
<br>
A dual port version of the same might give your two NICs in separate<br>
groups depending on the ACS capabilities/quirks where it's installed<br>
if you're looking for a cheap option.<br>
  <br>
</blockquote>
<br>
problem is, i will most likely need more than 2 ports.<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
so, i was thinking of getting a x99 based mb, a xeon e5 v4 cpu and a I350-T2<br>
network card that supports sr-iov.<br>
<br>
question is, how do i know that the main board also have the necessary bits for<br>
sr-iov support?<br>
as i understand it, the bios have to do something too to make it work.<br>
<br>
<br>
main boards i was considering was MSI X99A gaming 7 and also ASUS X99-E WS.<br>
the msi board have a nice block diagram that says how things is connected and<br>
manual looks abit better<br>
<br>
asus manual i don't really get, i didn't find any clear indication of how many<br>
lanes you get on the slots and what is listed is a bit confusing.<br>
<br>
my thinking was that maybe a workstation mb have higher probability of better<br>
support for more advanced features like this.<br>
but this might be an incorrect assumption.<br>
<br>
any advice would be welcomed.<br>
</blockquote>
<br>
An SR-IOV card needs to be installed into an ACS capable/quirked slot<br>
or everything will be grouped together and it'd be pointless.  The PCH<br>
slot on your Z77 (if it has one) would meet this requirement.  Beyond<br>
that, ARI support can play a factor in the bus number layout and if it<br>
exists can make something like an 82756/i350 work without BIOS support<br>
given its scant SR-IOV resource requirements.  Without it, extra bus<br>
numbers might need to be allocated which requires BIOS support, but<br>
Linux can do as well with a pci=assign-buses boot options (pci=realloc<br>
is also a useful options).  For a 1Gbps NIC, you're not really losing<br>
anything by installing it into a PCH root port slot, so I'd give that a<br>
shot on your current board unless you're just using this as an excuse to<br>
upgrade the whole system.  Thanks,<br>
<br>
</blockquote>
<br>
thanks for the advice.<br>
i decided to go ahead with my upgrade, the reason was not only the sr-iov part but mainly to get more cores and memory.<br>
i just want to make sure i can use the sr-iov part too while i'm upgrading.<br>
<br>
i decided to go for the "MSI X99A gaming 7" mainboard, but unfortunately i didn't have much luck in getting sr-iov working.<br>
booting with pci=realloc,assign-busses doesn't help.<br>
only difference i see in dmesg is things like:<br>
[    1.432766] pci_bus 0000:03: busn_res: [bus 03-ff] end is updated to 03<br>
[    1.432915] pci_bus 0000:04: busn_res: can not insert [bus 04-ff] under [bus 00-fe] (conflicts with (null) [bus 00-fe])<br>
<br>
so i suspect something is wrong.<br>
i have attached some logs.<br>
<br>
i also tried asking msi support about this and they were nice enough to create a custom bios where sr-iov is supposed to be enabled but unfortunately i still didn't have much luck.<br>
<br>
the mainboard in question is a desktop board and not a server board so i can kind of understand that it isn't working since sr-iov is not something your average desktop user is going to need or ask for.<br>
<br>
anyway, any input is appreciated.<br>
<br>______________________________<wbr>_________________<br>
vfio-users mailing list<br>
<a href="mailto:vfio-users@redhat.com">vfio-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/vfio-users" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/vfio-users</a><br>
<br></blockquote></div></div>