HomeFreeBSD

bhyve: vtnet: fix locking on receive

Description

bhyve: vtnet: fix locking on receive

The vsc_rx_ready and the RX virtqueue is protected by the rx_mtx lock.
However, pci_vtnet_ping_rxq() (currently called only once after each
device reset) accesses those without acquiring the lock.

Reviewed by: markj
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D20609

Details

Provenance
vmaffioneAuthored on Jun 18 2019, 5:51 PM
Parents
rGedd96b9fb91f: Handle labels specified with hints even on FDT systems. Hints are the
Branches
Unknown
Tags
Unknown

Event Timeline