crosvm/tests
Matt Delco a52b2a6c81 crosvm: add plugin API for async writes
A plugin might care to be immediately notified when a write
is made to a port, but it doesn't care to have the VM stopped
while the plugin calls back to resume the VM.

Unfortunately this means that multiple messages can be queued up in the
pipe and read() together by the plugin API.  Protobuf's parsing function
doesn't report how many bytes it read, so I've resorted to having crosvm
prefix every message with a length and then have the plugin lib parse
this number.  Impact on performance has not been measured.

BUG=b:143294496
TEST=Local build and run of build_test.  Verified that new unit
test was executed, exercised the case where multiple msgs are
received together, and completed successfully.

Change-Id: If6ef463e7b4d2e688e649f832a764fa644bf2d36
Signed-off-by: Matt Delco <delco@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1896376
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
2019-11-06 23:01:15 +00:00
..
boot.rs
mini_plugin_template.c
plugin.policy
plugin_adder.c
plugin_async_write.c crosvm: add plugin API for async writes 2019-11-06 23:01:15 +00:00
plugin_dirty_log.c
plugin_extensions.c
plugin_hint.c
plugin_ioevent.c
plugin_irqfd.c
plugin_msr_index_list.c
plugin_net_config.c
plugin_supported_cpuid.c
plugin_vcpu_pause.c
plugin_vm_state.c
plugins.rs crosvm: add plugin API for async writes 2019-11-06 23:01:15 +00:00