Re: [PATCH v8 1/8] KVM: x86: Provide INVLPG linear address to intercept handlers

From: Jim Mattson

Date: Wed Sep 23 2026 - 16:01:56 EST


On Wed, Sep 23, 2026 at 7:02 AM Tina Zhang <zhang_wei@xxxxxxxxxxxxxx> wrote:
>
> INVLPG's memory operand is decoded with NoAccess, and thus src_val does
> not contain the operand address. Intercept handlers therefore cannot
> construct exit state that reports the linear address from the existing
> x86_instruction_info fields.
>
> Add get_invlpg_linear_addr() to compute the address through __linearize(),
> using the same flags as em_invlpg(), and pass the result through
> x86_instruction_info.
>
> Signed-off-by: Tina Zhang <zhang_wei@xxxxxxxxxxxxxx>
Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>