KVM: selftests: Move flds instruction emulation failure handling to header
authorDavid Matlack <dmatlack@google.com>
Wed, 2 Nov 2022 18:46:48 +0000 (11:46 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 17 Nov 2022 00:58:59 +0000 (16:58 -0800)
commit19a2b32f5d242844e49764cf88256cfd53de0082
treea4b579627e922a3fc949634a099ceeadd61bf3b9
parent50824c6eee39eb2d7a60d665b4b245552e852705
KVM: selftests: Move flds instruction emulation failure handling to header

Move the flds instruction emulation failure handling code to a header
so it can be re-used in an upcoming test.

No functional change intended.

Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20221102184654.282799-5-dmatlack@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/flds_emulation.h [new file with mode: 0644]
tools/testing/selftests/kvm/x86_64/smaller_maxphyaddr_emulation_test.c