aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vmimpl/console.go
Commit message (Collapse)AuthorAgeFilesLines
* vm: support console_cmd to run cmd to collect console logJoey Jiao2025-02-101-29/+23
| | | | | | | | - Sometimes we need customized cmd to get serial log, ex FTDI4232H chip gets serial log through usb directly, thus we need to call cmd like `pyterm.py ftdi://ftdi:4232:FT7JLD0U/1`. - There are seveval places in console implementation to call osutil.Command, move the command code into one function.
* all: use min/max functionsDmitry Vyukov2025-01-171-4/+1
| | | | They are shorter, more readable, and don't require temp vars.
* vmimpl: don't build console.go under WindowsAleksandr Nogikh2024-01-101-0/+1
|
* all: use special placeholder for errorsTaras Madan2023-07-241-5/+5
|
* vm/adb: support both old and new device formatHuizi Yang2021-09-101-1/+3
|
* vm/vmimpl/console: tail to kernel log to get serial outputHuizi Yang2021-09-101-0/+27
|
* vm/vmimpl: update console code for the new unix packageDmitry Vyukov2020-09-151-8/+5
| | | | | | | | The current code is now broken on darwin: syzkaller$ GOOS=darwin go install ./vm/... vm/vmimpl/console.go:30:33: undefined: unix.SYS_IOCTL vm/vmimpl/console.go:45:32: undefined: unix.SYS_IOCTL
* all: fix comments formatDmitry Vyukov2020-07-121-3/+3
| | | | | | | Fix capitalization, dots at the end and two spaces after a period. Update #1876
* .golangci.yml: enable godot checkerDmitry Vyukov2020-06-051-1/+1
| | | | | A good one. Lots of fixed comments are contributed by episodic contributors. So it's good to catch these earlier.
* all: get rid of underscores in identifiersDmitry Vyukov2018-05-071-3/+3
| | | | | | Underscores are against Go coding style. Update #538
* all: fix too long linesDmitry Vyukov2018-05-051-3/+6
| | | | | Not sure why I have not seen warnings about these lines on another machine...
* pkg/osutil: don't leace runaway processesDmitry Vyukov2017-11-161-1/+1
| | | | | | When manager is stopped there are sometimes runaway qemu processes still running. Set PDEATHSIG for all subprocesses. We never need child processes outliving parents.
* Add Isolated VMThomas Garnier2017-07-181-7/+13
| | | | | | | | Add a new isolated VM for machines that you cannot easily manage. It assumes the machine is only available through SSH and create a reverse proxy to ensure the machine can connect back to syz-manager. Signed-off-by: Thomas Garnier <thgarnie@google.com>
* vm/vmimpl: fix linux/ppc64le buildDmitry Vyukov2017-06-271-2/+0
|
* Port console to Darwin (#253)Zach Riggle2017-06-261-3/+3
| | | | | | | | | | | | * Port console to Darwin * Get syz-executor to build correctly * Do not export unix and syscall constants * Add presubmit test * Add myself to contributors
* vm: overhaulDmitry Vyukov2017-06-031-0/+134
VM infrastructure currently has several problems: - Config struct is complete mess with a superset of params for all VM types - verification of Config is mess spread across several places - there is no place where VM code could do global initialization like creating GCE connection, uploading GCE image to GCS, matching adb devices with consoles, etc - it hard to add private VM implementations such impl would need to add code to config package which would lead to constant merge conflicts - interface for VM implementation is mixed with interface for VM users this does not allow to provide best interface for both of them - there is no way to add common code for all VM implementations This change solves these problems by: - splitting VM interface for users (vm package) and VM interface for VM implementations (vmimpl pacakge), this in turn allows to add common code - adding Pool concept that allows to do global initialization and config checking at the right time - decoupling manager config from VM-specific config each VM type now defines own config Note: manager configs need to be changed after this change: VM-specific parts are moved to own "vm" subobject. Note: this change also drops "local" VM type. Its story was long unclear and there is now syz-stress which solves the same problem.