Messages in this thread | | | Date | Wed, 10 Jan 2018 09:01:02 +0100 | From | Ingo Molnar <> | Subject | Re: [RFC PATCH v2 3/6] x86/pti: add a per-cpu variable pti_disable |
| |
* Willy Tarreau <w@1wt.eu> wrote:
> [...] If we had "pit_enabled", something like this could be confusing because > it's not obvious whether this pti_enabled *enforces* PTI or if its absence > disables it : > > cmpb $0, PER_CPU_VAR(pti_enabled) > jz .Lend\@
The natural sequence would be:
cmpb $1, PER_CPU_VAR(pti_enabled) jne .Lend\@
which is not confusing to me at all.
Thanks,
Ingo
| |