HomeFreeBSD

bhyve: Use VMIO_SIOCSIFFLAGS instead of SIOCGIFFLAGS

Description

bhyve: Use VMIO_SIOCSIFFLAGS instead of SIOCGIFFLAGS

Creating an IP socket to invoke the SIOCGIFFLAGS ioctl on is the only
thing preventing bhyve from working inside a bhyve jail with IPv4 and
IPv6 disabled restricting the jailed bhyve process to only access the
host network via a tap/vmnet device node.

Approved by: re (gjb)
PR: 273557
Fixes: 56be282bc999 ("bhyve: net_backends, automatically IFF_UP tap devices")
Reviewed by: markj
MFC after: 1 week

(cherry picked from commit fd8b9c73a5a63a7aa438a73951d7a535b4f25d9a)
(cherry picked from commit 700689bc2abaf860801b3896ceae86b0072f406c)

Details

Provenance
crest_freebsd_rlwinm.deAuthored on Sep 4 2023, 8:38 AM
markjCommitted on Oct 25 2023, 4:52 PM
Parents
rG472d697e556c: x86 msi: Enable/disable IDT vectors for MSI groups all at once
Branches
Unknown
Tags
Unknown