commit | 102c2b6592037c92222c16716ff4158b98133fca | [log] [tgz] |
---|---|---|
author | Richard Zhang <rizhang@google.com> | Thu Jun 15 19:26:35 2023 |
committer | crosvm LUCI <crosvm-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 23 20:49:48 2023 |
tree | cebac90e5b6de576aa78de13b226145f6c3da9cb | |
parent | 608c59b265916bd33de20525150d00d29045c68f [diff] |
vhost-user: Implement restore in device process * Creates a RESTORE message that the vmm sends to the device * Starts up the worker on the vhost user VMM side if the device is activated * Rewires up irqfds and doorbell events (ie. queue_evts) * Restore vrings on the device process side * Log error from restoring devices, which will making debugging e2e_tests easier Unlike non-vhost user virtio devices, vhost user devices won't have their queues and fds rewired on "wake". Instead it will happen on "restore". BUG=b:280607404 TEST=e2e_tests snapshot_vhost_user pass. presubmits Change-Id: I0221dff1448e33d8b82bda48a151f94f90c691d4 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4618095 Commit-Queue: Richard Zhang <rizhang@google.com> Reviewed-by: Frederick Mayle <fmayle@google.com>
crosvm is a virtual machine monitor (VMM) based on Linux’s KVM hypervisor, with a focus on simplicity, security, and speed. crosvm is intended to run Linux guests, originally as a security boundary for running native applications on the ChromeOS platform. Compared to QEMU, crosvm doesn’t emulate architectures or real hardware, instead concentrating on paravirtualized devices, such as the virtio standard.
crosvm is currently used to run Linux/Android guests on ChromeOS devices.