From: Paolo Bonzini Date: Fri, 11 Jun 2021 11:02:28 +0000 Subject: Re: [PATCH v7 0/4] KVM statistics data fd-based binary interface Message-Id: List-Id: References: <20210603211426.790093-1-jingzhangos@google.com> <4b44c5a7-21c0-73c0-bb03-21806c83b4ae@de.ibm.com> In-Reply-To: <4b44c5a7-21c0-73c0-bb03-21806c83b4ae@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Christian Borntraeger , Jing Zhang , KVM , KVMARM , LinuxMIPS , KVMPPC , LinuxS390 , Linuxkselftest , Marc Zyngier , James Morse , Julien Thierry , Suzuki K Poulose , Will Deacon , Huacai Chen , Aleksandar Markovic , Thomas Bogendoerfer , Paul Mackerras , Janosch Frank , David Hildenbrand , Cornelia Huck , Claudio Imbrenda , Sean Christopherson , Vitaly Kuznetsov , Jim Mattson , Peter Shier , Oliver Upton , David Rientjes , Emanuele Giuseppe Esposito , David Matlack , Ricardo Koller , Krish Sadhukhan On 11/06/21 08:57, Christian Borntraeger wrote: > > On 03.06.21 23:14, Jing Zhang wrote: >> This patchset provides a file descriptor for every VM and VCPU to read >> KVM statistics data in binary format. >> It is meant to provide a lightweight, flexible, scalable and efficient >> lock-free solution for user space telemetry applications to pull the >> statistics data periodically for large scale systems. The pulling >> frequency could be as high as a few times per second. >> In this patchset, every statistics data are treated to have some >> attributes as below: >>    * architecture dependent or generic >>    * VM statistics data or VCPU statistics data > > Are the debugfs things good enough, or do we want to also add the same > ioctl for the /dev/kvm to get the global counters as well, e.g. for > tools like kvm_stat? I think we should, yes. We should also add the summarized VCPU statistics to the VM-level file descriptor. However, it can be done in steps. Paolo