]> xenbits.xensource.com Git - xen.git/commit
x86/EFI: meet further spec requirements for runtime calls
authorJan Beulich <JBeulich@suse.com>
Thu, 10 Nov 2016 16:06:30 +0000 (09:06 -0700)
committerWei Liu <wei.liu2@citrix.com>
Sat, 12 Nov 2016 06:47:10 +0000 (06:47 +0000)
commit67b5b302f5319f70288587dc98ab505c4deada1e
tree64ca1390f036918a5ec237b82d42092e40ddd8ce
parent1a5245528ee3d3287f940a44b6cf91fea3dbae32
x86/EFI: meet further spec requirements for runtime calls

So far we didn't guarantee 16-byte alignment of the stack: While (so
far) we don't tell the compiler to use smaller alignment, we also don't
guarantee 16-byte alignment when establishing stack pointers for new
vCPU-s. Runtime service functions using SSE instructions may end with

Note that -mpreferred-stack-boundary=3 is can be used only from gcc 4.8
onwards, and -mincoming-stack-boundary=3 only from 5.3 onwards. It is
for that reason that an alternative approach (using higher than
necessary alignment) is being used when building with such older
compilers.

Furthermore we should avoid #MF to be raised on the FLDCW we do.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/efi/Makefile
xen/common/efi/runtime.c