Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1570499pxb; Tue, 17 Aug 2021 15:23:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4Ku3VzD0gwCRTUpX3o+nIGzpv9GCXusKvMrIC4k0PZdZELf3txwUuMXkabuvNxMqJrHGw X-Received: by 2002:a17:906:6815:: with SMTP id k21mr6291343ejr.371.1629239030883; Tue, 17 Aug 2021 15:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629239030; cv=none; d=google.com; s=arc-20160816; b=b1an59royqIW9gBbVm1B6H5po5ujlru/H8e/esZ2TFLRFsNO5E/vJ6hW5ycotxSqXq ZrQ0CIoRMu89AbSp6JBc1ySY/v0C6ClhcdAdZWawCNW3Z1d5gCX07v5cQKWV6kDxjCj3 wUOHq4xSW3nJZpmMgGT0/ac5oCO+VYXYIT1IgggkXV4qzcSJwL/x0bdbof/XlzazCcha JqYfwckyeqyZAnPjCRd9UmFc7/hC6wssUYIaBJ32FhSx0rrOBJgFyRDN34t9+7f9pxuK bqXfCiTZOMXbffb4I9yLw0XR/JnIJAUpF5CANyi5wlNA4j4i6FOlFxb6Ty5rsPpVnMve Yd5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=vvFO4lOBX4sDfEhnNEZVfUYefoksHhEC8JsUilIfQLY=; b=UZ2D0L64ZBu8+l6LbEpq/vdcB8n9HiwQJ1/WLW3/qxmy9Hxgkc4EuCgT0P2T4q6uwu nFNRGvqPPcsIRJMQBiw2xBZAVvp634p90NENehUyD3a3vRFcZneuviT0PKQWXrIYhCU9 HTweC8KwlRB3BUdShdu0ynLa7OqtTQjRQD3qOsWGRiDSoeEpWBYngFug11yb3+Ahix75 0DY0eDfwEhGG7rs0Q9FrC6Mk0LWos6xhNbsC5hJ+tY84LtbjWYLtlaPsqkdNIue6ypGa hAfTiTsy1N9DevU/UIyEqFyLbsC8ZMJxhQTIeurKisfntj+JeEAUUs3RfcIXG7MjOvRL GUzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=kt426Vh6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 16si3818729ejj.242.2021.08.17.15.23.26; Tue, 17 Aug 2021 15:23:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=kt426Vh6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236173AbhHQWVs (ORCPT + 99 others); Tue, 17 Aug 2021 18:21:48 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:32660 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236071AbhHQWVq (ORCPT ); Tue, 17 Aug 2021 18:21:46 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17HM2wau191455; Tue, 17 Aug 2021 18:21:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type; s=pp1; bh=vvFO4lOBX4sDfEhnNEZVfUYefoksHhEC8JsUilIfQLY=; b=kt426Vh6MhKxFh/aWFIWcXhk/ETMf9uZICj6yABwT/t9+7Ia+Z+3yyxABD3d1xJk2ogM KyU7y1QVx/7Mh+fJWCv3z9uIU2Zo6tJxIq5LCgk/UlxWFYiFlN4w/fuu3CbPyRGgumyL NjW/huV3nDHrEoJVmMf0stWK9YFzXXkk/BTYCnig+mEZ+YVTDrWTIti+6EMvYtHvtTtK aEOXqz7hqQ5JIgOUBwLdOYWZw7VmQ22CKMS8nrxUK4w+WGC1zot9nlXotYFhcs7xSPW0 Ko17MyPFGucxT2aylMxcItyqZQTuFwLnc5AuSmIDrdY9/YjMtl8CmKiBFtUjupXXx1Xb 1Q== Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0b-001b2d01.pphosted.com with ESMTP id 3ag7bsauju-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Aug 2021 18:21:02 -0400 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 17HMD5B9031872; Tue, 17 Aug 2021 22:21:02 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma04dal.us.ibm.com with ESMTP id 3ae5fdjqbc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Aug 2021 22:21:02 +0000 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 17HML1T951183988 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Aug 2021 22:21:01 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2A70EAE064; Tue, 17 Aug 2021 22:21:01 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4550BAE067; Tue, 17 Aug 2021 22:21:00 +0000 (GMT) Received: from localhost (unknown [9.211.107.102]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTPS; Tue, 17 Aug 2021 22:20:59 +0000 (GMT) From: Fabiano Rosas To: Alexey Kardashevskiy , Paul Mackerras Cc: linux-kernel@vger.kernel.org, kvm-ppc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH kernel] KVM: PPC: Book3S HV: Make unique debugfs nodename In-Reply-To: References: <20210707041344.3803554-1-aik@ozlabs.ru> Date: Tue, 17 Aug 2021 19:20:57 -0300 Message-ID: <87pmubu306.fsf@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 627C7QllL2CLBbF8ps1glfa4cOcUce_J X-Proofpoint-GUID: 627C7QllL2CLBbF8ps1glfa4cOcUce_J X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-08-17_08:2021-08-17,2021-08-17 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 clxscore=1015 bulkscore=0 adultscore=0 mlxscore=0 impostorscore=0 spamscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108170139 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alexey Kardashevskiy writes: > On 07/07/2021 14:13, Alexey Kardashevskiy wrote: > alternatively move this debugfs stuff under the platform-independent > directory, how about that? That's a good idea. I only now realized we have two separate directories for the same guest: $ ls /sys/kernel/debug/kvm/ | grep $pid 19062-11 vm19062 Looks like we would have to implement kvm_arch_create_vcpu_debugfs for the vcpu information and add a similar hook for the vm. >> --- >> arch/powerpc/kvm/book3s_hv.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c >> index 1d1fcc290fca..0223ddc0eed0 100644 >> --- a/arch/powerpc/kvm/book3s_hv.c >> +++ b/arch/powerpc/kvm/book3s_hv.c >> @@ -5227,7 +5227,7 @@ static int kvmppc_core_init_vm_hv(struct kvm *kvm) >> /* >> * Create a debugfs directory for the VM >> */ >> - snprintf(buf, sizeof(buf), "vm%d", current->pid); >> + snprintf(buf, sizeof(buf), "vm%d-lp%ld", current->pid, lpid); >> kvm->arch.debugfs_dir = debugfs_create_dir(buf, kvm_debugfs_dir); >> kvmppc_mmu_debugfs_init(kvm); >> if (radix_enabled()) >>