On Fri, Sep 18, 2026 at 1:56 AM Tina Zhang <[email protected]> wrote: > > Preserve the bytes used by the emulator when synthesizing a data #NPF. > Reuse the fetch cache only when the fault is the current emulator > exception, identified by fault == &ctxt->exception. > > Add an emulator accessor to copy cached instruction bytes, checking > the RIP and cache bounds. These checks alone do not establish that > the cache belongs to the current emulation. > > Write the cached bytes directly to VMCB02 and fetch any missing tail > through the instruction-fetch helper. If the tail cannot be read, > report only the bytes already available. For SEV guests, retain only > the cached bytes because KVM cannot fetch plaintext guest instructions. > > Signed-off-by: Tina Zhang <[email protected]> > Reviewed-by: Jim Mattson <[email protected]>
Oops. My bad. Reviewed-by: Jim Mattson <[email protected]>

