Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 141de5c

Browse files
committed
arm64: correct bridge type for QEMUVIRT machine
The device pcie-pci-bridge in qemu will create a pci bus not pcie bus. It should be corrected for QEMUVIRT. After correct this, vfio pci device can be hotplugged in arm64. Fixes: #3016 Signed-off-by: Jianyong Wu <[email protected]>
1 parent cb196de commit 141de5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

virtcontainers/qemu.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1977,7 +1977,7 @@ func genericBridges(number uint32, machineType string) []types.Bridge {
19771977
case QemuPC:
19781978
bt = types.PCI
19791979
case QemuVirt:
1980-
bt = types.PCIE
1980+
bt = types.PCI
19811981
case QemuPseries:
19821982
bt = types.PCI
19831983
case QemuCCWVirtio:

virtcontainers/qemu_arm64_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func TestQemuArm64AppendBridges(t *testing.T) {
7575

7676
expectedOut := []govmmQemu.Device{
7777
govmmQemu.BridgeDevice{
78-
Type: govmmQemu.PCIEBridge,
78+
Type: govmmQemu.PCIBridge,
7979
Bus: defaultBridgeBus,
8080
ID: bridges[0].ID,
8181
Chassis: 1,

0 commit comments

Comments
 (0)