aboutsummaryrefslogtreecommitdiffstats
path: root/executor/test_kvm.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-01-27 20:53:49 +0100
committerGitHub <noreply@github.com>2017-01-27 20:53:49 +0100
commit9a1fbc16bec5a5d79a9f1ce3a50d3f8916d5daea (patch)
tree355c08ec5cb5bbe7ba1eb6af1bcc7d7031349a63 /executor/test_kvm.cc
parentedb0141529e09ca152803885cd94e1e3915d4ca9 (diff)
parent83cf8e39241b9862d65a96bc7a9c0fb3827661ce (diff)
Merge pull request #121 from google/new_cover
New cover
Diffstat (limited to 'executor/test_kvm.cc')
-rw-r--r--executor/test_kvm.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/test_kvm.cc b/executor/test_kvm.cc
index 6c76b5e78..79b951f62 100644
--- a/executor/test_kvm.cc
+++ b/executor/test_kvm.cc
@@ -174,7 +174,7 @@ extern "C" int test_kvm()
// If we do MOV to RAX and then RSM, RAX will be restored to host value so RAX check will fail.
// So instead we execute just RSM, if we are in SMM we will get KVM_EXIT_HLT, otherwise KVM_EXIT_INTERNAL_ERROR.
const char text_rsm[] = "\x0f\xaa";
- if (res = test_one(16, text_rsm, sizeof(text_rsm) - 1, KVM_SETUP_SMM, KVM_EXIT_HLT, false))
+ if (res = test_one(8, text_rsm, sizeof(text_rsm) - 1, KVM_SETUP_SMM, KVM_EXIT_HLT, false))
return res;
if (res = test_one(32, text_rsm, sizeof(text_rsm) - 1, KVM_SETUP_SMM, KVM_EXIT_HLT, false))
return res;