]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: powerpc: Improve DEC handling
authorAlexander Graf <agraf@suse.de>
Mon, 21 Dec 2009 19:21:24 +0000 (20:21 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:42 +0000 (12:35 -0300)
commitc91a1201484e5a0581c550ce7268e02cf426c703
treec71bde99ac96573e137c29f990e0af4c1854b4df
parentb6ba7d42368a95f1338b8079badb831ce0b15e5a
KVM: powerpc: Improve DEC handling

We treated the DEC interrupt like an edge based one. This is not true for
Book3s. The DEC keeps firing until mtdec is issued again and thus clears
the interrupt line.

So let's implement this logic in KVM too. This patch moves the line clearing
from the firing of the interrupt to the mtdec emulation.

This makes PPC64 guests work without AGGRESSIVE_DEC defined.

Signed-off-by: Alexander Graf <agraf@suse.de>
Acked-by: Acked-by: Hollis Blanchard <hollis@penguinppc.org>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/emulate.c