On Mon, Jul 22, 2019 at 11:33:37AM +0100, Alessio Balsini wrote: > commit 0a987645672ebde7844a9c0732a5a25f3d4bb6c6 upstream. > > Commit a78ff1112263 ("um: add extended processor state save/restore > support") and b6024b21fec8 ("um: extend fpstate to _xstate to support > YMM registers") forced the use of the x86 FP _xstate and > PTRACE_GETREGSET/SETREGSET. On older hosts, we would neither be able to > build UML nor run it anymore with these two commits applied because we > don't have definitions for struct _xstate nor these two ptrace requests. > > We can determine at build time which fp context structure to check > against, just like we can keep using the old i387 fp save/restore if > PTRACE_GETRESET/SETREGSET are not defined. > > Fixes: a78ff1112263 ("um: add extended processor state save/restore support") > Fixes: b6024b21fec8 ("um: extend fpstate to _xstate to support YMM registers") > Change-Id: I2cda034c8a6637de392c2740a993982ad132bda5 No need for change-id in upstream patches :) let me see if I can just take what is already in 4.13 directly...