Re: [RFC PATCH 2/5] KVM: x86: avoid useless set of KVM_REQ_EVENT after emulation

2014-03-28 Thread Paolo Bonzini
Il 27/03/2014 12:30, Paolo Bonzini ha scritto: > Despite the provisions to emulate up to 130 consecutive instructions, in > practice KVM will emulate just one before exiting handle_invalid_guest_state, > because x86_emulate_instructionn always sets KVM_REQ_EVENT. > > However, we only need to do th

[RFC PATCH 2/5] KVM: x86: avoid useless set of KVM_REQ_EVENT after emulation

2014-03-27 Thread Paolo Bonzini
Despite the provisions to emulate up to 130 consecutive instructions, in practice KVM will emulate just one before exiting handle_invalid_guest_state, because x86_emulate_instructionn always sets KVM_REQ_EVENT. However, we only need to do this if an interrupt could be injected, which happens a) if