Re: [PATCH 46/62] x86/sev-es: Handle INVD Events

From: Joerg Roedel
Date: Wed Feb 12 2020 - 10:36:31 EST


On Tue, Feb 11, 2020 at 04:12:19PM -0800, Andy Lutomirski wrote:
>
>
> > On Feb 11, 2020, at 5:53 AM, Joerg Roedel <joro@xxxxxxxxxx> wrote:
> >
> > ïFrom: Tom Lendacky <thomas.lendacky@xxxxxxx>
> >
> > Implement a handler for #VC exceptions caused by INVD instructions.
>
> Uh, what? Surely the #VC code can have a catch-all OOPS path for things like this. Linux should never ever do INVD.

Right, its hard to come up with a valid use-case for INVD in the Linux
kernel. I changed the patch to mark INVD as unsupported and print an
error message.

Regards,

Joerg