From: Alexander Graf Date: Fri, 19 Feb 2010 10:00:43 +0000 (+0100) Subject: KVM: PPC: Enable program interrupt to do MMIO X-Git-Tag: Ubuntu-5.10.0-12.13~28544^2~238 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e5c29e926cd29444d76657398801d49119851a56;p=mirror_ubuntu-hirsute-kernel.git KVM: PPC: Enable program interrupt to do MMIO When we get a program interrupt we usually don't expect it to perform an MMIO operation. But why not? When we emulate paired singles, we can end up loading or storing to an MMIO address - and the handling of those happens in the program interrupt handler. So let's teach the program interrupt handler how to deal with EMULATE_MMIO. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity --- diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c index 38f242a690f7..0446c5a39ae2 100644 --- a/arch/powerpc/kvm/book3s.c +++ b/arch/powerpc/kvm/book3s.c @@ -841,6 +841,10 @@ program_interrupt: kvmppc_core_queue_program(vcpu, flags); r = RESUME_GUEST; break; + case EMULATE_DO_MMIO: + run->exit_reason = KVM_EXIT_MMIO; + r = RESUME_HOST_NV; + break; default: BUG(); }