KVM: PPC: booke: Do Not start decrementer when SPRN_DEC set 0
authorBharat Bhushan <r65777@freescale.com>
Mon, 31 Oct 2011 08:52:08 +0000 (14:22 +0530)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:52:25 +0000 (14:52 +0200)
commit7401f6266de021990efc7bc212289219ba8f9a7a
tree829d48eedaa872ffa1b3d39e1cac0be0497788b5
parentdc2babfea592e633cf3890294af6545609b466be
KVM: PPC: booke: Do Not start decrementer when SPRN_DEC set 0

As per specification the decrementer interrupt not happen when DEC is written
with 0. Also when DEC is zero, no decrementer running. So we should not start
hrtimer for decrementer when DEC = 0.

Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/emulate.c