aboutsummaryrefslogtreecommitdiffstats
path: root/vm/proxyapp
Commit message (Collapse)AuthorAgeFilesLines
* all: remove unused nolint directivesDmitry Vyukov2026-01-022-12/+2
|
* all: use any instead of interface{}Dmitry Vyukov2025-12-221-3/+3
| | | | Any is the preferred over interface{} now in Go.
* vm: add context to Pool.Create()Aleksandr Nogikh2025-10-012-6/+6
| | | | | | | | | | 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.
* all: manual linter fixesTaras Madan2025-07-171-1/+1
| | | | | | | | 1. recover the removed comment 2. unnecessary leading newline 3. unnecessary brackets 4. restore dropped "..." 5. use bytes.Equal instead of conversion to string
* all: apply linter auto fixesTaras Madan2025-07-171-2/+2
| | | | ./tools/syz-env bin/golangci-lint run ./... --fix
* all/mocks: regenerate with mockery v3Taras Madan2025-07-012-187/+283
|
* vm: func Run accepts contextTaras Madan2025-05-192-33/+17
| | | | It allows to use context as a single termination signal source.
* all/mocks: updateTaras Madan2025-03-282-0/+441
|
* all: use mockery config instead of go:generateTaras Madan2025-03-281-3/+0
|
* go.mod: update mockeryTaras Madan2025-02-072-7/+7
|
* all: regenerate mocksTaras Madan2024-09-102-2/+2
| | | | ./tools/syz-env make generate
* vmimpl: refactor VM type registrationDmitry Vyukov2024-07-231-4/+3
| | | | | | | | | Pass Type struct directly during registration. This allows to add additional optional parameters to VM types without changing all VM implementations. We we will need to add SupportsSnapshots flag and one flag to resolve #5028. With this change it will be possible to add "SupportsSnapshots: true" to just one VM type implemenetation.
* vm: make Instance implement io.CloserAleksandr Nogikh2024-07-111-1/+2
| | | | It's better to follow standard interfaces.
* Revert "tools/mockery.sh: update to 2.43.2"Taras Madan2024-06-052-2/+2
| | | | This reverts commit 5aa1a7c940d309a8251de3a1fb423ab0cacb6317.
* tools/mockery.sh: update to 2.43.2Taras Madan2024-06-052-2/+2
|
* vm/proxyapp/mocks: update mock filesTaras Madan2024-05-062-12/+70
|
* pkg/rpctype: prepare for not using for target communicationDmitry Vyukov2024-05-031-1/+1
| | | | | | Remove things that are only needed for target VM communication: conditional compression, timeout scaling, traffic stats. To minimize diffs when we switch target VM communication to flatrpc.
* pkg/rpctype: make RPC compression optionalDmitry Vyukov2024-04-031-1/+1
| | | | | | | | RPC compression take up to 10% of CPU time in profiles, but it's unlikely to be beneficial for local VM runs (we are mostly copying memory in this case). Enable RPC compression based on the VM type (local VM don't use it, remove machines use it).
* all: use special placeholder for errorsTaras Madan2023-07-241-8/+8
|
* vm/proxyapp/proxyappclient_mocks_test.go: copy mock interface to fix the errorTaras Madan2023-02-241-1/+7
| | | | | After the mockery version up I just didn't find better solution. If you see better approach - please share your idea.
* all: tools/syz-env make generate resultTaras Madan2023-02-243-12/+23
|
* vm/proxyapp: pass kernel image data to ProxyApp (#3696)kalder2023-02-212-10/+25
| | | | | | | We need the kernel built by Syzkaller to start the VM. If transfer_file_content is set, pass the image data in addition to the path. It's sent in the CreatePool RPC, since future CreateInstance RPCs should use the same image.
* vm/proxyapp: pass file data when running in tcp mode (#3648)kalder2023-02-073-21/+68
| | | | | Instead of just passing the path to the file (on the local machine) to the ProxyApp, we need to pass the file data. This applies for both calls to Copy() and CreateInstance().
* vm/proxyapp: add TLS authentication (#3642)kalder2023-01-273-8/+145
| | | | | | | | | | The "security" field must be set if ProxyApp-over-TCP is used. If "none", do no authentication If "tls", do server TLS, optionally using the certificate specified by "server_tls_cert". mTLS is unimplemented for now.
* all: fix duplicate parameter typesDmitry Vyukov2023-01-131-1/+1
|
* vm/proxyapp: fix race on mock calls in the test (#3584)Taras Madan2022-12-131-0/+4
|
* vm/proxyapp: use localhost, not 127.0.0.1 (#3579)Taras Madan2022-12-051-1/+1
|
* vm/proxyapp: rpc over tcpTaras Madan2022-12-013-27/+247
|
* vm/proxyapp: configure TCP connected pluginTaras Madan2022-12-012-1/+130
|
* vm/proxyapp: logging over rpcTaras Madan2022-10-243-26/+110
|
* vm/proxyapp: extend RPC API to support loggingTaras Madan2022-10-242-0/+26
|
* vm/proxyapp: configure proxyApp log output (#3459)Taras Madan2022-10-242-2/+4
|
* vm: add the proxyapp support (#3269)Taras Madan2022-09-267-0/+1389
* vm: add pool.Close() support * vm: add proxyapp client implementation * vm/proxyapp: autogenerate mocks * vm/proxyapp: add proxyapp tests * pkg/mgrconfig: add proxyapp type tests