aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vmimpl
diff options
context:
space:
mode:
authorHuizi Yang <yanghuiz@google.com>2021-09-10 01:41:42 -0700
committerAleksandr Nogikh <wp32pw@gmail.com>2021-09-10 20:57:52 +0200
commit8a703291444d2233bd9179a4d1586111dab999b2 (patch)
treebf373a64aeeae21f30ae31265614338045d7a787 /vm/vmimpl
parent09a90cb2789a758ff9540eda063d49f30379249b (diff)
vm/adb: support both old and new device format
Diffstat (limited to 'vm/vmimpl')
-rw-r--r--vm/vmimpl/console.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm/vmimpl/console.go b/vm/vmimpl/console.go
index 38314bcf5..5958b2a19 100644
--- a/vm/vmimpl/console.go
+++ b/vm/vmimpl/console.go
@@ -76,7 +76,9 @@ func (t *tty) Close() error {
return nil
}
-func OpenRemoteKernelLog(ip string, console string) (rc io.ReadCloser, err error) {
+// OpenRemoteKernelLog accesses to the host where Android VM runs on, not Android VM itself.
+// The host stores all kernel outputs of Android VM so in case of crashes nothing will be lost.
+func OpenRemoteKernelLog(ip, console string) (rc io.ReadCloser, err error) {
rpipe, wpipe, err := osutil.LongPipe()
if err != nil {
return nil, err