Re: [PATCH v3 4/7] KVM: VMX: Handle vectoring error in check_emulate_instruction

2024-12-18 Thread Ivan Orlov
On 12/18/24 18:39, Sean Christopherson wrote: I definitely think it's worth explaining that moving the detection covers new emulation cases, and also calling out that handle_ept_misconfig() consults vmx_check_emulate_instruction(), i.e. that moving the detection shouldn't affect KVM's overall han

Re: [PATCH v3 4/7] KVM: VMX: Handle vectoring error in check_emulate_instruction

2024-12-18 Thread Sean Christopherson
On Tue, Dec 17, 2024, Ivan Orlov wrote: > Move unhandleable vmexit during vectoring error detection > into check_emulate_instruction. Implement the function which prohibits > the emulation if EMULTYPE_PF is set when vectoring, otherwise such a > situation may occur: I definitely think it's worth e

[PATCH v3 4/7] KVM: VMX: Handle vectoring error in check_emulate_instruction

2024-12-17 Thread Ivan Orlov
Move unhandleable vmexit during vectoring error detection into check_emulate_instruction. Implement the function which prohibits the emulation if EMULTYPE_PF is set when vectoring, otherwise such a situation may occur: 1. CPU executes an instruction and hits a #GP 2. While vectoring the #GP, a sha