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

2012-07-25 Thread Marcelo Tosatti
On Fri, Jul 20, 2012 at 04:29:08PM -0500, Scott Wood wrote: On 07/20/2012 12:00 AM, Bharat Bhushan wrote: This patch adds the watchdog emulation in KVM. The watchdog emulation is enabled by KVM_ENABLE_CAP(KVM_CAP_PPC_WDT) ioctl. The kernel timer are used for watchdog emulation and emulates

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

2012-07-25 Thread Scott Wood
On 07/25/2012 03:37 PM, Marcelo Tosatti wrote: On Fri, Jul 20, 2012 at 04:29:08PM -0500, Scott Wood wrote: On 07/20/2012 12:00 AM, Bharat Bhushan wrote: This patch adds the watchdog emulation in KVM. The watchdog emulation is enabled by KVM_ENABLE_CAP(KVM_CAP_PPC_WDT) ioctl. The kernel timer

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

2012-07-25 Thread Marcelo Tosatti
On Wed, Jul 25, 2012 at 06:55:16PM -0500, Scott Wood wrote: On 07/25/2012 03:37 PM, Marcelo Tosatti wrote: On Fri, Jul 20, 2012 at 04:29:08PM -0500, Scott Wood wrote: On 07/20/2012 12:00 AM, Bharat Bhushan wrote: This patch adds the watchdog emulation in KVM. The watchdog emulation is

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

2012-07-24 Thread Scott Wood
: Re: [PATCH 2/2 v5] KVM: PPC: booke: Add watchdog emulation On 07/23/2012 10:43 AM, Bhushan Bharat-R65777 wrote: -Original Message- From: Wood Scott-B07421 Sent: Monday, July 23, 2012 9:02 PM To: Bhushan Bharat-R65777 Cc: Wood Scott-B07421; kvm-ppc@vger.kernel.org; k

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

2012-07-23 Thread Scott Wood
On 07/22/2012 11:10 PM, Bhushan Bharat-R65777 wrote: @@ -386,13 +387,23 @@ int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) #ifdef CONFIG_KVM_EXIT_TIMING mutex_init(vcpu-arch.exit_timing_lock); #endif - +#ifdef CONFIG_BOOKE + spin_lock_init(vcpu-arch.wdt_lock); + /* setup watchdog

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

2012-07-23 Thread Scott Wood
] KVM: PPC: booke: Add watchdog emulation On 07/20/2012 12:00 AM, Bharat Bhushan wrote: +static void arm_next_watchdog(struct kvm_vcpu *vcpu) { + unsigned long nr_jiffies; + + spin_lock(vcpu-arch.wdt_lock); + nr_jiffies = watchdog_next_timeout(vcpu); + /* +* If the number

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

2012-07-23 Thread Bhushan Bharat-R65777
-Original Message- From: Wood Scott-B07421 Sent: Monday, July 23, 2012 9:02 PM To: Bhushan Bharat-R65777 Cc: Wood Scott-B07421; kvm-ppc@vger.kernel.org; k...@vger.kernel.org; ag...@suse.de Subject: Re: [PATCH 2/2 v5] KVM: PPC: booke: Add watchdog emulation On 07/22/2012 11:10

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

2012-07-23 Thread Scott Wood
On 07/23/2012 10:43 AM, Bhushan Bharat-R65777 wrote: -Original Message- From: Wood Scott-B07421 Sent: Monday, July 23, 2012 9:02 PM To: Bhushan Bharat-R65777 Cc: Wood Scott-B07421; kvm-ppc@vger.kernel.org; k...@vger.kernel.org; ag...@suse.de Subject: Re: [PATCH 2/2 v5] KVM: PPC

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

2012-07-23 Thread Bhushan Bharat-R65777
-Original Message- From: Wood Scott-B07421 Sent: Monday, July 23, 2012 9:31 PM To: Bhushan Bharat-R65777 Cc: Wood Scott-B07421; kvm-ppc@vger.kernel.org; k...@vger.kernel.org; ag...@suse.de Subject: Re: [PATCH 2/2 v5] KVM: PPC: booke: Add watchdog emulation On 07/23/2012 10:43

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

2012-07-22 Thread Bhushan Bharat-R65777
-Original Message- From: Wood Scott-B07421 Sent: Saturday, July 21, 2012 2:59 AM To: Bhushan Bharat-R65777 Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org; ag...@suse.de; Bhushan Bharat- R65777 Subject: Re: [PATCH 2/2 v5] KVM: PPC: booke: Add watchdog emulation On 07/20

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

2012-07-21 Thread Bhushan Bharat-R65777
-Original Message- From: Wood Scott-B07421 Sent: Saturday, July 21, 2012 2:59 AM To: Bhushan Bharat-R65777 Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org; ag...@suse.de; Bhushan Bharat- R65777 Subject: Re: [PATCH 2/2 v5] KVM: PPC: booke: Add watchdog emulation On 07/20

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

2012-07-20 Thread Scott Wood
On 07/20/2012 12:00 AM, Bharat Bhushan wrote: This patch adds the watchdog emulation in KVM. The watchdog emulation is enabled by KVM_ENABLE_CAP(KVM_CAP_PPC_WDT) ioctl. The kernel timer are used for watchdog emulation and emulates h/w watchdog state machine. On watchdog timer expiry, it exit