crosvm/seccomp/arm
Daniel Verkamp ec5916daa0 devices: virtio: block: use FileReadWriteAtVolatile
Use the "at" variants of the read/write functions in the block device.
This reduces the number of syscalls on the host per I/O to one
(pread64/pwrite64) rather than two (lseek + read/write).

The CompositeDiskFile implementation is also updated in this commit,
since it's both a producer and consumer of DiskFile, and it isn't
trivial to update it in a separate commit without breaking compilation.

BUG=None
TEST=Start Crostini on kevin, banon, and nami

Change-Id: I031e7e87cd6c99504db8c56b1725ea51c1e27a53
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1845948
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
2019-10-29 22:06:22 +00:00
..
9p_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
balloon_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
block_device.policy devices: virtio: block: use FileReadWriteAtVolatile 2019-10-29 22:06:22 +00:00
common_device.policy seccomp: add sendto, writev, and readv to common seccomp policies 2019-07-27 03:50:22 +00:00
cras_audio_device.policy ac97: Fix device real time priority issue 2019-08-01 09:25:59 +00:00
gpu_device.policy gpu: Fix sandboxing support for ARM. 2019-09-17 23:24:55 +00:00
input_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
net_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
null_audio_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
pmem_device.policy devices: Add separate seccomp policy for pmem device 2019-06-21 21:47:58 +00:00
rng_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
serial.policy devices: jail serial device 2019-10-10 02:09:13 +00:00
tpm_device.policy seccomp: return error from socket for TPM device 2019-07-09 23:34:57 +00:00
vhost_net_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
vhost_vsock_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
wl_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
xhci.policy usb: Arm seccomp policy needs _llseek, not lseek 2019-06-27 17:07:01 +00:00