diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-09-26 13:17:29 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-10-01 14:41:08 +0000 |
| commit | 9f36949b26d43c6ccbb08181c9d4452458d2c673 (patch) | |
| tree | 7b9268d4f63e42c11e0abe67168e910b77b887dd /vm/starnix/starnix.go | |
| parent | a6341f95a21baff8dca02c63fea4abccc6056672 (diff) | |
vm: add context to Pool.Create()
Enable external abortion of the instance creation process. This is
especially useful for the qemu case where we retry the creation/boot up
to 1000 times, which can take significant time (e.g. it timeouts
syz-cluster pods on unstable kernels).
The context can be further propagated to WaitForSSH, but that requires
another quite significant vm/ refactoring.
Diffstat (limited to 'vm/starnix/starnix.go')
| -rw-r--r-- | vm/starnix/starnix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/starnix/starnix.go b/vm/starnix/starnix.go index 665b13321..e6da96dc0 100644 --- a/vm/starnix/starnix.go +++ b/vm/starnix/starnix.go @@ -100,7 +100,7 @@ func (pool *Pool) Count() int { return pool.count } -func (pool *Pool) Create(workdir string, index int) (vmimpl.Instance, error) { +func (pool *Pool) Create(_ context.Context, workdir string, index int) (vmimpl.Instance, error) { inst := &instance{ fuchsiaDir: pool.env.KernelSrc, ffxDir: pool.ffxDir, |
