devices: vfio: factorize code in new() Once we have opened /dev/vfio/vfio we can leverage new_from_container(). BUG=None TEST=cargo build Change-Id: Ib309ab708cf561ec5dde8a606164a7df9a1bc4aa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3675886 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
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 Chrome OS 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 Chrome OS devices.