mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +00:00
qemu: Remove the extra parameters field from the Config structure
The extraParams is confusing and can conflict with the rest of the Config structure definitions. We remove it and will add new fields to that structure as needed. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
15bce61a90
commit
fe1bdcd2f7
15
qemu.go
15
qemu.go
@ -175,12 +175,15 @@ type Config struct {
|
||||
// Name is the qemu guest name
|
||||
Name string
|
||||
|
||||
// Machine
|
||||
Machine Machine
|
||||
// UUID is the qemu process UUID.
|
||||
UUID string
|
||||
|
||||
// CPUModel is the CPU model to be used by qemu.
|
||||
CPUModel string
|
||||
|
||||
// Machine
|
||||
Machine Machine
|
||||
|
||||
// QMPSocket is the QMP socket description.
|
||||
QMPSocket QMPSocket
|
||||
|
||||
@ -202,9 +205,6 @@ type Config struct {
|
||||
// VGA is the qemu VGA mode.
|
||||
VGA string
|
||||
|
||||
// UUID is the qemu process UUID.
|
||||
UUID string
|
||||
|
||||
// Kernel is the guest kernel configuration.
|
||||
Kernel Kernel
|
||||
|
||||
@ -217,9 +217,6 @@ type Config struct {
|
||||
// GlobalParam is the -global parameter
|
||||
GlobalParam string
|
||||
|
||||
// ExtraParams is a slice of options to pass to qemu.
|
||||
ExtraParams []string
|
||||
|
||||
// FDs is a list of open file descriptors to be passed to the spawned qemu process
|
||||
FDs []*os.File
|
||||
}
|
||||
@ -513,8 +510,6 @@ func LaunchQemu(config Config, logger QMPLog) (string, error) {
|
||||
params = appendGlobalParam(params, config)
|
||||
params = appendVGA(params, config)
|
||||
|
||||
params = append(params, config.ExtraParams...)
|
||||
|
||||
return LaunchCustomQemu(config.Ctx, config.Path, params, config.FDs, logger)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user