mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 11:06:21 +00:00
virtcontainers: delete out-of-date TODO
drivers package is already removed from this file. fixes #674 Signed-off-by: Ruidong Cao <caoruidong@huawei.com>
This commit is contained in:
parent
7d14aea067
commit
e906095a7b
@ -336,7 +336,7 @@ func (q *qemuArchBase) appendBridges(devices []govmmQemu.Device, bridges []Bridg
|
|||||||
Bus: defaultBridgeBus,
|
Bus: defaultBridgeBus,
|
||||||
ID: b.ID,
|
ID: b.ID,
|
||||||
// Each bridge is required to be assigned a unique chassis id > 0
|
// Each bridge is required to be assigned a unique chassis id > 0
|
||||||
Chassis: (idx + 1),
|
Chassis: idx + 1,
|
||||||
SHPC: true,
|
SHPC: true,
|
||||||
Addr: strconv.FormatInt(int64(bridges[idx].Addr), 10),
|
Addr: strconv.FormatInt(int64(bridges[idx].Addr), 10),
|
||||||
},
|
},
|
||||||
@ -473,7 +473,6 @@ func (q *qemuArchBase) appendBlockDevice(devices []govmmQemu.Device, drive confi
|
|||||||
func (q *qemuArchBase) appendVhostUserDevice(devices []govmmQemu.Device, attr config.VhostUserDeviceAttrs) []govmmQemu.Device {
|
func (q *qemuArchBase) appendVhostUserDevice(devices []govmmQemu.Device, attr config.VhostUserDeviceAttrs) []govmmQemu.Device {
|
||||||
qemuVhostUserDevice := govmmQemu.VhostUserDevice{}
|
qemuVhostUserDevice := govmmQemu.VhostUserDevice{}
|
||||||
|
|
||||||
// TODO: find a way to remove dependency of drivers package
|
|
||||||
switch attr.Type {
|
switch attr.Type {
|
||||||
case config.VhostUserNet:
|
case config.VhostUserNet:
|
||||||
qemuVhostUserDevice.TypeDevID = utils.MakeNameID("net", attr.ID, maxDevIDSize)
|
qemuVhostUserDevice.TypeDevID = utils.MakeNameID("net", attr.ID, maxDevIDSize)
|
||||||
|
Loading…
Reference in New Issue
Block a user