summary refs log tree commit diff
path: root/tests/plugins.rs
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@chromium.org>2018-02-26 15:17:53 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-02-28 21:30:20 -0800
commit9786573e07992d43bfd5304ca7490a35aca2c61f (patch)
treef1082dcd1d1121ccdaf850251384825e1baab6f3 /tests/plugins.rs
parentd1c761354f5d2583763704c8f9a8a7dd61d1dbb7 (diff)
downloadcrosvm-9786573e07992d43bfd5304ca7490a35aca2c61f.tar
crosvm-9786573e07992d43bfd5304ca7490a35aca2c61f.tar.gz
crosvm-9786573e07992d43bfd5304ca7490a35aca2c61f.tar.bz2
crosvm-9786573e07992d43bfd5304ca7490a35aca2c61f.tar.lz
crosvm-9786573e07992d43bfd5304ca7490a35aca2c61f.tar.xz
crosvm-9786573e07992d43bfd5304ca7490a35aca2c61f.tar.zst
crosvm-9786573e07992d43bfd5304ca7490a35aca2c61f.zip
allow plugin to query KVM for supported/emulated CPUIDs
This plumbs calls to KVM_GET_SUPPORTED_CPUID and KVM_GET_EMULATED_CPUID
to be available to plugins.

TEST=cargo test --features plugin; cargo test -p kvm
BUG=chromium:800626

Change-Id: I98879599b5f970c6c2720772658689a505d8abe1
Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/938674
Reviewed-by: Zach Reizner <zachr@chromium.org>
Diffstat (limited to 'tests/plugins.rs')
-rw-r--r--tests/plugins.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/plugins.rs b/tests/plugins.rs
index 1a99a43..d036e97 100644
--- a/tests/plugins.rs
+++ b/tests/plugins.rs
@@ -231,6 +231,11 @@ fn test_extensions() {
 }
 
 #[test]
+fn test_supported_cpuid() {
+    test_plugin(include_str!("plugin_supported_cpuid.c"));
+}
+
+#[test]
 fn test_vcpu_pause() {
     test_plugin(include_str!("plugin_vcpu_pause.c"));
 }