From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Borntraeger Date: Tue, 19 Jul 2016 08:41:21 +0000 Subject: Re: [PATCH V4 5/5] powerpc/kvm/stats: Implement existing and add new halt polling vcpu stats Message-Id: <578DE7B1.4000506@de.ibm.com> List-Id: References: <1468915977-26929-1-git-send-email-sjitindarsingh@gmail.com> <1468915977-26929-5-git-send-email-sjitindarsingh@gmail.com> In-Reply-To: <1468915977-26929-5-git-send-email-sjitindarsingh@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Suraj Jitindar Singh , linuxppc-dev@lists.ozlabs.org, pbonzini@redhat.com Cc: kvm-ppc@vger.kernel.org, kvm@vger.kernel.org, mpe@ellerman.id.au, paulus@samba.org, benh@kernel.crashing.org, agraf@suse.com, rkrcmar@redhat.com, dmatlack@google.com On 07/19/2016 10:12 AM, Suraj Jitindar Singh wrote: > Also add new vcpu stats: halt_poll_success_ns, halt_poll_fail_ns and > halt_wait_ns to be used to accumulate the total time spend polling > successfully, polling unsuccessfully and waiting respectively, and > halt_successful_wait to accumulate the number of times the vcpu waits. > Given that halt_poll_success_ns, halt_poll_fail_ns and halt_wait_ns are > expressed in nanoseconds it is necessary to represent these as 64-bit > quantities, otherwise they would overflow after only about 4 seconds. Paolo, would these new kvm_stats also be useful for the base implementation?