diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-11-30 13:11:47 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-12-28 07:18:01 -0500 |
commit | 129c48cde6c9e519d033305649665427c6cac494 (patch) | |
tree | 8d8d7f83e150275eff93c2434f0140619763a55d /include | |
parent | 02d9a04da453984b16f4a585ad808cf961df495e (diff) | |
download | linux-stable-129c48cde6c9e519d033305649665427c6cac494.tar.gz linux-stable-129c48cde6c9e519d033305649665427c6cac494.tar.bz2 linux-stable-129c48cde6c9e519d033305649665427c6cac494.zip |
KVM: selftests: restore special vmmcall code layout needed by the harness
Commit 8fda37cf3d41 ("KVM: selftests: Stuff RAX/RCX with 'safe' values
in vmmcall()/vmcall()", 2022-11-21) broke the svm_nested_soft_inject_test
because it placed a "pop rbp" instruction after vmmcall. While this is
correct and mimics what is done in the VMX case, this particular test
expects a ud2 instruction right after the vmmcall, so that it can skip
over it in the L1 part of the test.
Inline a suitably-modified version of vmmcall() to restore the
functionality of the test.
Fixes: 8fda37cf3d41 ("KVM: selftests: Stuff RAX/RCX with 'safe' values in vmmcall()/vmcall()"
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20221130181147.9911-1-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions