Re: [PATCH 01/23] x86, kaiser: prepare assembly for entry/exit CR3 switching

From: Dave Hansen
Date: Tue Oct 31 2017 - 21:09:02 EST


On 10/31/2017 05:43 PM, Brian Gerst wrote:
>>
>> + RESTORE_CR3 save_reg=%r14
>> +
>> testl %ebx, %ebx /* swapgs needed? */
>> jnz nmi_restore
>> nmi_swapgs:
>> _
> This all needs to be conditional on a config option. Something with
> this amount of performance impact needs to be 100% optional.

The 07/23 patch does just this. I should have at least called that out
in the description.