RE: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs

From: Van De Ven, Arjan
Date: Mon Feb 19 2018 - 20:08:58 EST


> > On Mon, Feb 19, 2018 at 4:13 PM, Alan Cox <gnomes@xxxxxxxxxxxxxxxxxxx>
> wrote:
> > >
> > > In theory there's nothing stopping a guest getting a 'you are about to
> > > gain/lose IBRS' message or having a new 'CPU' hotplugged and the old one
> > > removed.
> >
> > I'm not convinced we handle the case of hotplug CPU's with different
> > CPU models correctly.
>
> We don't. And even if we did the user space doesn't. It would be a
> painful task to resolve.


in a cloud world it ends up being the launch/restart of the VM in reality.
Just the JIT caches all over in userspace make this case not pretty.

And we as kernel don't even really do mixed cpus without hotplug afaict
(other than maybe taking lowest subset, while the case here would be the opposite direction)