On Tue, Oct 20, 2026 at 05:00:46PM -1000, Linus Torvalds wrote:
> I don't know that code at all, but from my reading it will only
> trigger in fairly unusual cases ("rep movs/ins/outs" that need
> emulation).

Right, and when the src/dst are MMIO, see 

        case INSN_MMIO_MOVS:
                ret = vc_handle_mmio_movs(ctxt, bytes);

which calls that vc_*_mem() gunk.

I presume you've also found:

  4954f5b8ef0b ("x86/sev-es: Use __put_user()/__get_user() for data accesses")

which explains why we use those.

> But the replacement code *should* do what __get_user/__put_user did
> before, just with a local helper, so unlike the i915 case it shouldn't
> actually change any semantics.

Yeah, I wanted to take a detailed look on a fresh head but you pulled it
again. :-P

I'll have a look when it shows up again.

Thx.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette

Reply via email to