Project

General

Profile

Bug #7089

MSI-x on KVM prevents VMs from accessing the network

Added by Matthew Ahrens over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
driver - device drivers
Start date:
2016-06-09
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

Also, enable it (MSI-X on KVM) by default.

The receive queue was getting full before interrupts were enabled, which meant the device would never trigger any interrupts. We just needed to clear the queue as we enabled interrupts to solve this issue.

I also added a couple of small improvements to the vioif code in this diff.

KVM systems use a pci bus which always supports a version >= 2.2 of the PCI standard. When we're checking whether the system we're on supports MSI-x, we should recognize this fact (either by detecting the version of the PCI bus, or by recognizing that we're on KVM).

#1

Updated by Electric Monk over 4 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 970db7b7a5b4656c659fc7c5226da7be313dc336

commit  970db7b7a5b4656c659fc7c5226da7be313dc336
Author: Dan Kimmel <dan.kimmel@delphix.com>
Date:   2016-07-01T02:45:02.000Z

    7089 MSI-x on KVM prevents VMs from accessing the network
    Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>
    Reviewed by: Daniel Hoffman <dj.hoffman@delphix.com>
    Reviewed by: Prachetaa Raghavan <prachetaa.raghavan@delphix.com>
    Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Robert Mustacchi <rm@joyent.com>

Also available in: Atom PDF