Re: [PATCH 0/6] KVM: x86: Make the cause of instruction emulation available to user-space

From: Jim Mattson
Date: Mon Apr 12 2021 - 14:34:49 EST


On Mon, Apr 12, 2021 at 6:09 AM David Edmondson
<david.edmondson@xxxxxxxxxx> wrote:
>
> Instruction emulation happens for a variety of reasons, yet on error
> we have no idea exactly what triggered it. Add a cause of emulation to
> the various originators and pass it upstream when emulation fails.

What is userspace going to do with this information? It's hard to say
whether or not this is the right ABI without more context.