]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: PPC: booke: Add watchdog emulation
authorBharat Bhushan <r65777@freescale.com>
Wed, 8 Aug 2012 20:38:19 +0000 (20:38 +0000)
committerAlexander Graf <agraf@suse.de>
Tue, 14 Aug 2012 22:29:23 +0000 (00:29 +0200)
commit1db21d25a11bacbfe548b5b937d27422f9e958cf
tree722a1c6de5725653857f605e0faeaf48caf3df29
parent73dbdd545a9a68042576716530a3157de8e50047
KVM: PPC: booke: Add watchdog emulation

This patch adds the watchdog emulation in KVM. The watchdog
emulation is enabled by KVM_ENABLE_CAP(KVM_CAP_PPC_BOOKE_WATCHDOG) ioctl.
The kernel timer are used for watchdog emulation and emulates
h/w watchdog state machine. On watchdog timer expiry, it exit to QEMU
if TCR.WRC is non ZERO. QEMU can reset/shutdown etc depending upon how
it is configured.

Signed-off-by: Liu Yu <yu.liu@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
[bharat.bhushan@freescale.com: reworked patch]
Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com>
[agraf: adjust to new request framework]
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/include/asm/reg_booke.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/booke_emulate.c
arch/powerpc/kvm/powerpc.c
include/linux/kvm.h
include/linux/kvm_host.h