Re: [PATCH v8.1 12/12] x86/retpoline: Fill return stack buffer on vmexit

2018-01-12 Thread Woodhouse, David
> On Fri, 2018-01-12 at 12:15 +0100, Thomas Gleixner wrote: > Fair enough. I surely like the below way more than the sloppy hackery from > Andi which completely removed any form of documentation. Be nice. Andi has been extremely helpful in testing and finding corner cases here, and generally keepi

Re: [PATCH v8.1 12/12] x86/retpoline: Fill return stack buffer on vmexit

2018-01-12 Thread Thomas Gleixner
On Fri, 12 Jan 2018, David Woodhouse wrote: > In accordance with the Intel and AMD documentation, we need to overwrite > all entries in the RSB on exiting a guest, to prevent malicious branch > target predictions from affecting the host kernel. This is needed both > for retpoline and for IBRS. >