crosvm/hypervisor/tests
Frederick Mayle 5441c064e5 hypervisor: kvm: check for KVM_SET_MSRS failures
The KVM docs say

  If setting an MSR fails, ..., it stops processing the MSR list and
  returns the number of MSRs that have been set successfully.

So, a return value of zero really means the operation completely failed.

Change-Id: Ic98cdb02513ff86e22fb6b048e7ceb2d6b7e554a
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4500732
Reviewed-by: Elie Kheirallah <khei@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Frederick Mayle <fmayle@google.com>
Reviewed-by: Noah Gold <nkgold@google.com>
2023-05-03 20:52:05 +00:00
..
kvm hypervisor: kvm: check for KVM_SET_MSRS failures 2023-05-03 20:52:05 +00:00
dirty_log.rs tree-wide: remove unnecessary casts 2023-04-17 23:43:59 +00:00
mmio_and_pio.rs tree-wide: remove unnecessary casts 2023-04-17 23:43:59 +00:00
mmio_fetch_memory.rs hypervisor: fix whpx build failures 2023-02-02 02:29:31 +00:00
read_only_memory.rs tree-wide: remove unnecessary casts 2023-04-17 23:43:59 +00:00
real_run_addr.rs hypervisor: only check whpx feature for Windows targets 2022-10-27 22:46:27 +00:00
remove_memory.rs tree-wide: remove unnecessary casts 2023-04-17 23:43:59 +00:00
tsc_offsets.rs tree-wide: remove unnecessary casts 2023-04-17 23:43:59 +00:00