aboutsummaryrefslogtreecommitdiffstats
path: root/executor/test_kvm.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-01-27 11:08:57 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-01-27 20:46:09 +0100
commit1c190bb96354172fb7589a87a86747f4e06ad605 (patch)
tree0376c3579f179f0b2177f6fe8433f9320a8daa4a /executor/test_kvm.cc
parent362f1a61a17ee0c8392ae3897f443b1a43ddd720 (diff)
executor: fix KVM test
SMM is now supported for real code instead of prot16.
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;