summary refs log tree commit diff
path: root/Cargo.lock
diff options
context:
space:
mode:
authorDaniel Verkamp <dverkamp@chromium.org>2020-02-20 12:13:09 -0800
committerCommit Bot <commit-bot@chromium.org>2020-02-22 08:41:29 +0000
commit0275efb3a00b2cbe15ec92a314bf163a3ca1433e (patch)
tree0913044d798176f4715fda6d4cad933dae02b8be /Cargo.lock
parentf84c2298e9d7138be0998c289825128144234862 (diff)
downloadcrosvm-0275efb3a00b2cbe15ec92a314bf163a3ca1433e.tar
crosvm-0275efb3a00b2cbe15ec92a314bf163a3ca1433e.tar.gz
crosvm-0275efb3a00b2cbe15ec92a314bf163a3ca1433e.tar.bz2
crosvm-0275efb3a00b2cbe15ec92a314bf163a3ca1433e.tar.lz
crosvm-0275efb3a00b2cbe15ec92a314bf163a3ca1433e.tar.xz
crosvm-0275efb3a00b2cbe15ec92a314bf163a3ca1433e.tar.zst
crosvm-0275efb3a00b2cbe15ec92a314bf163a3ca1433e.zip
x86_64: use __cpuid intrinsic
Use the Rust __cpuid and __cpuid_count intrinsics to replace the C
implementation in host_cpuid.c.

These are defined in core, but they are also re-exported in std, despite
being undocumented there due to technical reasons:
https://github.com/rust-lang/rust/pull/57808#issuecomment-457390549

Use the std version for consistency (we don't currently use anything
from core anywhere else in crosvm).

BUG=None
TEST=cargo test -p x86_64
TEST=Boot crosvm on x86_64

Change-Id: Ic7a1094d1b804304a2944f8ee1fe55c5e2db23e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2067159
Reviewed-by: Zach Reizner <zachr@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Diffstat (limited to 'Cargo.lock')
-rw-r--r--Cargo.lock1
1 files changed, 0 insertions, 1 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 0ec0a39..879c5bd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -639,7 +639,6 @@ version = "0.1.0"
 dependencies = [
  "arch 0.1.0",
  "assertions 0.1.0",
- "cc 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)",
  "data_model 0.1.0",
  "devices 0.1.0",
  "io_jail 0.1.0",