crosvm/hypervisor/tests/kvm
Daniel Verkamp 8fef190b71 hypervisor: kvm: get vcpu mmap size at startup
We don't need to call ioctl(KVM_GET_VCPU_MMAP_SIZE) repeatedly for each
vcpu; the result is constant. Retrieve it once during Kvm::new().

BUG=None
TEST=tools/dev_container tools/presubmit

Change-Id: Ibe9607524198cc65c00f1ac0be1311934d7a9671
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5671063
Reviewed-by: Frederick Mayle <fmayle@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-07-08 20:10:34 +00:00
..
aarch64.rs Move hypervisor::kvm tests to integration tests 2022-11-03 23:19:11 +00:00
main.rs hypervisor: kvm: get vcpu mmap size at startup 2024-07-08 20:10:34 +00:00
x86_64.rs base: define ioctls as consts rather than functions 2024-06-25 19:17:21 +00:00