aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/x86_64/sync_regs_test.c
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2019-10-10 09:37:29 +0200
committerChristian Borntraeger <borntraeger@de.ibm.com>2019-10-10 13:18:35 +0200
commitefec8d219fb1bc2d7ab4f1c582e7beed44e309f4 (patch)
treedb765bd5f3a4371ef8262b26c682319ed2c22828 /tools/testing/selftests/kvm/x86_64/sync_regs_test.c
parentKVM: s390: Cleanup kvm_arch_init error path (diff)
downloadlinux-dev-efec8d219fb1bc2d7ab4f1c582e7beed44e309f4.tar.xz
linux-dev-efec8d219fb1bc2d7ab4f1c582e7beed44e309f4.zip
selftests: kvm: make syncregs more reliable on s390
similar to commit 2c57da356800 ("selftests: kvm: fix sync_regs_test with newer gccs") and commit 204c91eff798a ("KVM: selftests: do not blindly clobber registers in guest asm") we better do not rely on gcc leaving r11 untouched. We can write the simple ucall inline and have the guest code completely as small assembler function. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/x86_64/sync_regs_test.c')
0 files changed, 0 insertions, 0 deletions