Comment 3 for bug 1834522

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Also needed:

commit 35be0aded76b54a24dc8aa678a71bca22273e8d8
Author: Sean Christopherson <email address hidden>
Date: Thu Aug 23 17:56:47 2018

    KVM: x86: SVM: Set EMULTYPE_NO_REEXECUTE for RSM emulation

    Re-execution after an emulation decode failure is only intended to
    handle a case where two or vCPUs race to write a shadowed page, i.e.
    we should never re-execute an instruction as part of RSM emulation.

    Add a new helper, kvm_emulate_instruction_from_buffer(), to support
    emulating from a pre-defined buffer. This eliminates the last direct
    call to x86_emulate_instruction() outside of kvm_mmu_page_fault(),
    which means x86_emulate_instruction() can be unexported in a future
    patch.

    Fixes: 7607b7174405 ("KVM: SVM: install RSM intercept")
    Cc: Brijesh Singh <email address hidden>
    Signed-off-by: Sean Christopherson <email address hidden>
    Cc: <email address hidden>
    Signed-off-by: Radim Krčmář <email address hidden>