diff --git a/hypervisor/src/haxm/vm.rs b/hypervisor/src/haxm/vm.rs index b2e46ffb71..d82a6d002b 100644 --- a/hypervisor/src/haxm/vm.rs +++ b/hypervisor/src/haxm/vm.rs @@ -122,6 +122,13 @@ impl HaxmVm { return false; } + // If wstatus is zero, HAXM is not usable. + // In this case, the winfo bits indicate why, rather than communicating capability + // information. + if capability_info.wstatus == 0 { + return false; + } + (cap & capability_info.winfo as u32) != 0 }