From: Janosch Frank Subject: [PATCH] KVM: Create debugfs statistics for each VM Date: Thu, 28 Jan 2016 16:49:18 +0100 Message-ID: <1453996159-19576-1-git-send-email-frankja@linux.vnet.ibm.com> Cc: pbonzini@redhat.com, gleb@kernel.org, frankja@linux.vnet.ibm.com, dan.carpenter@oracle.com To: kvm@vger.kernel.org Return-path: Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:37068 "EHLO e06smtp14.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966653AbcA1PuW (ORCPT ); Thu, 28 Jan 2016 10:50:22 -0500 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 28 Jan 2016 15:50:20 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 158D3219005E for ; Thu, 28 Jan 2016 15:49:34 +0000 (GMT) Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u0SFnkBb10158350 for ; Thu, 28 Jan 2016 15:49:46 GMT Received: from d06av02.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u0SFnjnN025260 for ; Thu, 28 Jan 2016 08:49:46 -0700 Sender: kvm-owner@vger.kernel.org List-ID: The following patch adds debugfs statistics on a per-vm basis, so consumers, that do not want to use tracefs vm statistics or have multiple VMs per pid, can fetch them. This design was chosen, as qemu does create two VMs on arm for a very short time, although the kvm api documentation states that it is unsupported. The first version went through s390-kvm but was reverted before being merged into mainline. Janosch Frank (1): KVM: Create debugfs statistics for each VM include/linux/kvm_host.h | 7 ++ virt/kvm/kvm_main.c | 187 ++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 184 insertions(+), 10 deletions(-) -- 2.3.0