summaryrefslogtreecommitdiff
path: root/tools/objtool
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2019-09-25 15:12:42 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-09-25 15:15:03 +0200
commit90a48843a18663a25aa70c6d717d38a4443e5e29 (patch)
tree26a98b940d442f4f98e942e503427f6daa067a49 /tools/objtool
parent89340d0935c9296c7b8222b6eab30e67cb57ab82 (diff)
KVM: selftests: fix ucall on x86
After commit e8bb4755eea2("KVM: selftests: Split ucall.c into architecture specific files") selftests which use ucall on x86 started segfaulting and apparently it's gcc to blame: it "optimizes" ucall() function throwing away va_start/va_end part because it thinks the structure is not being used. Previously, it couldn't do that because the there was also MMIO version and the decision which particular implementation to use was done at runtime. With older gccs it's possible to solve the problem by adding 'volatile' to 'struct ucall' but at least with gcc-8.3 this trick doesn't work. 'memory' clobber seems to do the job. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/objtool')
0 files changed, 0 insertions, 0 deletions