Re: [PATCH 2/2 v6] KVM: PPC: booke: Add watchdog emulation

2012-07-31 Thread Alexander Graf
On 01.08.2012, at 04:13, Scott Wood wrote: > On 07/31/2012 06:59 PM, Alexander Graf wrote: >> Well, user space always comes in via the ioctl path, which in turn >> does vcpu_load(vcpu), thus should always be running as the vcpu >> context itself. > > Right, it's the timers you're racing with. >

Re: [PATCH 2/2 v6] KVM: PPC: booke: Add watchdog emulation

2012-07-31 Thread Scott Wood
On 07/31/2012 06:59 PM, Alexander Graf wrote: > Well, user space always comes in via the ioctl path, which in turn > does vcpu_load(vcpu), thus should always be running as the vcpu > context itself. Right, it's the timers you're racing with. > It boils down to the original thing I was saying back

Re: [PATCH 2/2 v6] KVM: PPC: booke: Add watchdog emulation

2012-07-31 Thread Alexander Graf
On 31.07.2012, at 23:24, Scott Wood wrote: > On 07/31/2012 06:50 AM, Alexander Graf wrote: >> >> On 25.07.2012, at 05:49, Bharat Bhushan wrote: >> >>> This patch adds the watchdog emulation in KVM. The watchdog >>> emulation is enabled by KVM_ENABLE_CAP(KVM_CAP_PPC_BOOKE_WATCHDOG) ioctl. >>> Th

Re: [PATCH 2/2 v6] KVM: PPC: booke: Add watchdog emulation

2012-07-31 Thread Scott Wood
On 07/31/2012 06:50 AM, Alexander Graf wrote: > > On 25.07.2012, at 05:49, Bharat Bhushan wrote: > >> 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 em

Re: [PATCH 2/2 v6] KVM: PPC: booke: Add watchdog emulation

2012-07-31 Thread Alexander Graf
On 25.07.2012, at 05:49, Bharat Bhushan wrote: > 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

[PATCH 2/2 v6] KVM: PPC: booke: Add watchdog emulation

2012-07-24 Thread Bharat Bhushan
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