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:
Zvonko Kaiser
2023-05-08 08:00:39 +00:00
parent de39fb7d38
commit da42801c38
13 changed files with 69 additions and 21 deletions

View File

@@ -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
}