Re: [PATCH v2] um: Allow building and running on older hosts

From: Florian Fainelli
Date: Thu Jun 01 2017 - 16:40:22 EST


On 05/25/2017 03:34 PM, Richard Weinberger wrote:
> Thomas, Florian,
>
> Am 26.05.2017 um 00:28 schrieb Florian Fainelli:
>> On 05/25/2017 12:51 PM, Thomas Meyer wrote:
>>>
>>>> Am 25.05.2017 um 20:36 schrieb Florian Fainelli <f.fainelli@xxxxxxxxx>:
>>>>
>>>> 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.
>>>
>>> Btw. what soy you mean with older host? I need to revert two commits to make an UML kernel work again on a Fedora 25 installation.
>>
>> This is centos 6.9, so kernel 2.6.32 and glibc 2.12, this neither has
>> xstate nor PTRACE_GETREGSET/SETREGSET, hence this patch.
>
> Commits a78ff1112263 and b6024b21fec8 are broken.
> You see two different issues.
> Eli, please have a look too.

Eli, can we get an answer here? And Thomas what's that problem that
Richard is referring to?
--
Florian