Re: [PATCH] PPC: KVM: fix VCPU run for HV KVM

2014-02-04 Thread Alexander Graf
On 04.02.2014, at 09:03, Alexey Kardashevskiy wrote: > On 01/13/2014 02:44 AM, Alexander Graf wrote: >> >> On 10.01.2014, at 08:21, Alexey Kardashevskiy wrote: >> >>> When write to MMIO happens and there is an ioeventfd for that and >>> is handled successfully, ioeventfd_write() returns 0 (su

Re: [PATCH] PPC: KVM: fix VCPU run for HV KVM

2014-02-04 Thread Alexey Kardashevskiy
On 01/13/2014 02:44 AM, Alexander Graf wrote: > > On 10.01.2014, at 08:21, Alexey Kardashevskiy wrote: > >> When write to MMIO happens and there is an ioeventfd for that and >> is handled successfully, ioeventfd_write() returns 0 (success) and >> kvmppc_handle_store() returns EMULATE_DONE. Then

Re: [PATCH] PPC: KVM: fix VCPU run for HV KVM

2014-01-12 Thread Alexander Graf
On 10.01.2014, at 08:21, Alexey Kardashevskiy wrote: > When write to MMIO happens and there is an ioeventfd for that and > is handled successfully, ioeventfd_write() returns 0 (success) and > kvmppc_handle_store() returns EMULATE_DONE. Then kvmppc_emulate_mmio() > converts EMULATE_DONE to RESUME

[PATCH] PPC: KVM: fix VCPU run for HV KVM

2014-01-09 Thread Alexey Kardashevskiy
When write to MMIO happens and there is an ioeventfd for that and is handled successfully, ioeventfd_write() returns 0 (success) and kvmppc_handle_store() returns EMULATE_DONE. Then kvmppc_emulate_mmio() converts EMULATE_DONE to RESUME_GUEST_NV and this broke from the loop. This adds handling of R