diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-06-28 15:48:43 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-07-01 09:13:47 +0000 |
| commit | 714041c90b9b0efe7fb63d39fa6b0aa643f2450c (patch) | |
| tree | 7f808952cf73868d27cd06ce59ef0a3b5818425d /vm/qemu | |
| parent | a7b22031cdbe8555ef6d4a086bd11dbc9feea4fd (diff) | |
vm: refactor vm.Multiplex arguments
Introduce a MultiplexConfig structure that contains optional parameters.
Include a Scale parameter to control the intended slowdown.
Diffstat (limited to 'vm/qemu')
| -rw-r--r-- | vm/qemu/qemu.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vm/qemu/qemu.go b/vm/qemu/qemu.go index 3a5e9f8a6..e12d8d7c6 100644 --- a/vm/qemu/qemu.go +++ b/vm/qemu/qemu.go @@ -672,7 +672,11 @@ func (inst *instance) Run(timeout time.Duration, stop <-chan bool, command strin return nil, nil, err } wpipe.Close() - return vmimpl.Multiplex(cmd, inst.merger, nil, timeout, stop, nil, inst.debug) + return vmimpl.Multiplex(cmd, inst.merger, timeout, vmimpl.MultiplexConfig{ + Stop: stop, + Debug: inst.debug, + Scale: inst.timeouts.Scale, + }) } func (inst *instance) Info() ([]byte, error) { |
