From 1c190bb96354172fb7589a87a86747f4e06ad605 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 27 Jan 2017 11:08:57 +0100 Subject: executor: fix KVM test SMM is now supported for real code instead of prot16. --- executor/test_kvm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor') 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; -- cgit mrf-deployment