mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-21 08:14:19 +01:00
gpu: Add config settings tests for hot-plug
Updated all references and config settings for hot-plug to match cold-plug Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
This commit is contained in:
@@ -45,13 +45,13 @@ const (
|
||||
func (p PCIePort) String() string {
|
||||
switch p {
|
||||
case RootPort:
|
||||
return "root-port"
|
||||
fallthrough
|
||||
case SwitchPort:
|
||||
return "switch-port"
|
||||
fallthrough
|
||||
case BridgePort:
|
||||
return "bridge-port"
|
||||
fallthrough
|
||||
case NoPort:
|
||||
return "no-port"
|
||||
return string(p)
|
||||
}
|
||||
return fmt.Sprintf("<unknown PCIePort: %s>", string(p))
|
||||
}
|
||||
@@ -76,7 +76,7 @@ type HypervisorState struct {
|
||||
Pid int
|
||||
PCIeRootPort int
|
||||
PCIeSwitchPort int
|
||||
ColdPlugVFIO PCIePort
|
||||
HotPlugVFIO PCIePort
|
||||
ColdPlugVFIO PCIePort
|
||||
HotplugVFIOOnRootBus bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user