Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs
From: Thomas Gleixner
Date: Tue Feb 20 2018 - 03:52:59 EST
On Mon, 19 Feb 2018, Linus Torvalds wrote:
> 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.
>
> In fact, I'd be very surprised it it worked in the general case.
We pretend to work with different CPU models mostly by having per cpu
feature bits, but in practice this would fall apart in bits and pieces all
over the place.
Thanks,
tglx