2022-09-13 17:55:17 +00:00
|
|
|
# Copyright 2022 The ChromiumOS Authors
|
crosvm: add serial support to "devices" command
Add support for creating serial devices using the `crosvm devices`
command.
BUG=b:217480043
TEST=`crosvm devices --serial hardware=virtio-console,console,stdin,type=stdout,earlycon,vhost=/tmp/vu-serial`
results in a working vhost-user serial device.
TEST=`crosvm devices --serial hardware=virtio-console,console,stdin,type=stdout,earlycon,vhost=0000:00:10.0`
results in a working VVU serial device.
Change-Id: I06fa4c8e27e90fa00c64b38dd25c7e9a91ee77fc
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3762975
Reviewed-by: Morg <morg@chromium.org>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Tested-by: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
2022-07-06 09:40:25 +00:00
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
# Policy file for a serial device used as a vhost-user backend.
|
|
|
|
|
|
|
|
@include /usr/share/policy/crosvm/vhost_user.policy
|
|
|
|
|
|
|
|
@include /usr/share/policy/crosvm/common_device.policy
|
|
|
|
@include /usr/share/policy/crosvm/serial.policy
|
2022-07-12 07:50:56 +00:00
|
|
|
|
|
|
|
# From vhost_user.policy.
|
2022-08-17 19:59:27 +00:00
|
|
|
lseek: arg2 == SEEK_END
|