mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 04:34:27 +00:00
runtime: Fix typo in hotplugVFIODevice()
"machineType" is misspelled as "machinneType". Fixes: #670 Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
c422d061cb
commit
cb9993759b
@ -1273,13 +1273,13 @@ func (q *qemu) hotplugVFIODevice(device *config.VFIODev, op operation) (err erro
|
||||
}
|
||||
|
||||
devID := device.ID
|
||||
machinneType := q.hypervisorConfig().HypervisorMachineType
|
||||
machineType := q.hypervisorConfig().HypervisorMachineType
|
||||
|
||||
if op == addDevice {
|
||||
|
||||
buf, _ := json.Marshal(device)
|
||||
q.Logger().WithFields(logrus.Fields{
|
||||
"machine-type": machinneType,
|
||||
"machine-type": machineType,
|
||||
"hotplug-vfio-on-root-bus": q.state.HotplugVFIOOnRootBus,
|
||||
"pcie-root-port": q.state.PCIeRootPort,
|
||||
"device-info": string(buf),
|
||||
@ -1291,7 +1291,7 @@ func (q *qemu) hotplugVFIODevice(device *config.VFIODev, op operation) (err erro
|
||||
if q.state.HotplugVFIOOnRootBus {
|
||||
|
||||
// In case MachineType is q35, a PCIe device is hotplugged on a PCIe Root Port.
|
||||
switch machinneType {
|
||||
switch machineType {
|
||||
case QemuQ35:
|
||||
if device.IsPCIe && q.state.PCIeRootPort <= 0 {
|
||||
q.Logger().WithField("dev-id", device.ID).Warn("VFIO device is a PCIe device. It's recommended to add the PCIe Root Port by setting the pcie_root_port parameter in the configuration for q35")
|
||||
|
Loading…
Reference in New Issue
Block a user