tsc: Refactor test imports Use `cfg_if` to refactor test imports to provide test only definition for `__cpuid_count`. Otherwise use the definition from `std::arch::x86_64`. BUG=b:234508273 TEST=Compiled. Change-Id: I0d93f6a86522451c540af9d520bfdeffd4f8dbf9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3701441 Commit-Queue: Vaibhav Nagarnaik <vnagarnaik@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@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.