RE: [PATCH v2] x86/cpu: Use SERIALIZE in sync_core() when available

From: Luck, Tony
Date: Wed Aug 05 2020 - 18:20:14 EST


> I meant asm as in a .S file. But the code we have is fine for this purpose, at least for now.

There seem to be some drivers that call sync_core:

drivers/misc/sgi-gru/grufault.c: sync_core();
drivers/misc/sgi-gru/grufault.c: sync_core(); /* make sure we are have current data */
drivers/misc/sgi-gru/gruhandles.c: sync_core();
drivers/misc/sgi-gru/gruhandles.c: sync_core();
drivers/misc/sgi-gru/grukservices.c: sync_core();

So if you go this path some day be sure to EXPORT the iret_to_self() function.

-Tony