Re: [PATCH v3 1/7] KVM: SVM: Drop RAX check for SVM instructions from the emulator

From: Paolo Bonzini

Date: Sun Mar 15 2026 - 08:56:03 EST


On 3/13/26 01:10, Yosry Ahmed wrote:
Outside of forced emulation or code stream rewriting,

But isn't that the point? Due to code stream rewriting or intentional usage of stale TLBs (so that the processor executes one instruction and the emulator another), the emulator cannot assume that it will "never be invoked with an actually illegal RAX".

I realize that I'm late to the show, so I apologize in advance if this has been discussed before.

Paolo