]> git.kernelconcepts.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>
Fri, 5 Oct 2012 21:38:47 +0000 (23:38 +0200)
commitf61c94bb99ca4253ac5dd57750e1af209a4beb7a
tree348d15c584a683cd805ed71ed5c8a81848d24e70
parent7c973a2ebb8fb9c8ee2ae9647f9ad7b0ad58a3e6
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