As discussed in this thread: http://patchwork.ozlabs.org/patch/309166/ We need some consistency in the way we check whether the guest should resume or not because: - new RESUME_GUEST_XXX values may show up - more locations in KVM may need to perform a similar check This serie introduces a helper and patches the locations where it should be called. There is yet another location in __kvmppc_vcpu_run, but it is assembly and cannot call a C inlined function. --- Alexey Kardashevskiy (1): PPC: KVM: fix VCPU run for HV KVM (v2) Greg Kurz (3): PPC: KVM: introduce helper to check RESUME_GUEST and related PPC: KVM: fix RESUME_GUEST check before ending CEDE in kvmppc_run_core() PPC: KVM: fix RESUME_GUEST check before returning from kvmppc_run_core() arch/powerpc/include/asm/kvm_book3s.h | 5 +++++ arch/powerpc/kvm/book3s_hv.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) -- Greg Kurz -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html