Re: [PATCH 11/18] KVM: x86: Pass the instruction length on memory fault user-space exits
From: Sean Christopherson
Date: Fri Sep 13 2024 - 15:12:45 EST
On Sun, Jun 09, 2024, Nicolas Saenz Julienne wrote:
> In order to simplify Hyper-V VSM secure memory intercept generation in
> user-space (it avoids the need of implementing an x86 instruction
> decoder and the actual decoding). Pass the instruction length being run
> at the time of the guest exit as part of the memory fault exit
> information.
Why does userspace need the instruction length, but not the associated code stream?