]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: explicitly disable PIE for tests
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 13 Mar 2019 23:19:30 +0000 (16:19 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Mar 2019 16:29:07 +0000 (17:29 +0100)
commita7611293229c328f31ef54b7c56b3bb6507f6eaf
tree6c2132e1f8957fdaa9f8bcb3e15ad78518b74b25
parentdf5d961d443da338c3b9eaaf2c42f3720be0f78d
KVM: selftests: explicitly disable PIE for tests

KVM selftests embed the guest "image" as a function in the test itself
and extract the guest code at runtime by manually parsing the elf
headers.  The parsing is very simple and doesn't supporting fancy things
like position independent executables.  Recent versions of gcc enable
pie by default, which results in triple fault shutdowns in the guest due
to the virtual address in the headers not matching up with the virtual
address retrieved from the function pointer.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/Makefile