From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 094D6448BA3; Tue, 4 Aug 2026 10:08:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785838120; cv=none; b=sWK3iJ8JpJ+V5HL8GFnYNeciDoIkGHc9NNSRNSPWViCS9/EkGXVVNRBrdJt5zgPR1ZgRLiCRArAr9O0gDQx9bw/10EFrA7ilP5W1eLsnKnKPQyu6uUEwV6adEDrvK5Bm10KokbY7Q5fASqnmfs/fdlQJnfUdEa4SUgL4KTQaHGc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785838120; c=relaxed/simple; bh=BDHc8nP7Z6bvcmh/dzH94/EnBpDGFMcFm2HRu86aAz8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nrwC7KVB7l62pQivrN4aKgW5Pj7Jm8JOyYVJ0KUVr/S/3IlX+2k1CWOCxMPudRUhpOnq5V/YhyCWH7BR6tcZPGeNeOiLgfmgerdc0w34mZ0pt43YZNR6IqMUMTO7C0oiRWa1LFebCOexwJODLs33es7KHdSVJvQiEwUNn7l95Qo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=Buq/jCHb; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="Buq/jCHb" Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6748HiQp236584; Tue, 4 Aug 2026 10:08:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=pp1; bh=Z8TdKGnZTYMqO75p+fQ6vrp2bZD+ts 8wOgvcpdd/4Qo=; b=Buq/jCHb/QGsSADwcRh0KPH1n6NArC/APNstlRCcTboAoL VsnXT6QFrhWKFWjZAPMQ9lM1hIpAyF3gip4qzmSkbWBa+d50xBYBx6GTWfo7yvod zPghTPFEienbqqYr7pz1V2tRx7hLUAIRxQdeDyi3TRqjQ3afbWJvTAQH9jIBXeFn cKJphN8Asa6Nwc7pBXhlm97PV77d6F13r7wKcY/rEpG3cE4CD4GsoNexFT7n1IFZ p6ZfAptb5EreIxtZRZGlm4xWok3dkm0Mvba4SSmE+cSIg7khq1O/TtsqcTwus9pF 05jYfFsAvmGB5LR8oSuKlNf9wtl6OD9PMnbNrJRg== Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4fs77g51fs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Aug 2026 10:08:21 +0000 (GMT) Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.18.1.7/8.18.1.7) with ESMTP id 6749uKAO010137; Tue, 4 Aug 2026 10:08:20 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 4fswbg986s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Aug 2026 10:08:20 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 674A8G2B31588786 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 4 Aug 2026 10:08:16 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6ECB22004F; Tue, 4 Aug 2026 10:08:16 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 76ED620063; Tue, 4 Aug 2026 10:08:13 +0000 (GMT) Received: from fedora (unknown [9.5.7.39]) by smtpav07.fra02v.mail.ibm.com (Postfix) with ESMTPS; Tue, 4 Aug 2026 10:08:13 +0000 (GMT) Date: Tue, 4 Aug 2026 15:38:56 +0530 From: Amit Machhiwal To: Gautam Menghani Cc: Amit Machhiwal , linuxppc-dev@lists.ozlabs.org, Madhavan Srinivasan , Vaibhav Jain , Anushree Mathur , Paolo Bonzini , Nicholas Piggin , Michael Ellerman , "Christophe Leroy (CS GROUP)" , Jonathan Corbet , Shuah Khan , Ritesh Harjani , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v5 1/4] KVM: PPC: Introduce KVM_CAP_PPC_COMPAT_CAPS and wire up ioctl Message-ID: <20260804153728.0e6e98b0-7c-amachhiw@linux.ibm.com> Mail-Followup-To: Gautam Menghani , linuxppc-dev@lists.ozlabs.org, Madhavan Srinivasan , Vaibhav Jain , Anushree Mathur , Paolo Bonzini , Nicholas Piggin , Michael Ellerman , "Christophe Leroy (CS GROUP)" , Jonathan Corbet , Shuah Khan , Ritesh Harjani , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org References: <20260701051409.51820-1-amachhiw@linux.ibm.com> <20260701051409.51820-2-amachhiw@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODA0MDA3NyBTYWx0ZWRfXwRndxZ3ZRz/I K6eHC+s7Kl7YZ2ov0UNCrTPfVx35QdqdUaKaIiEyu4SnqhNi/V5P9rPaaL2YPna9wnmjSezE75f 6k7wVoAIt4vCk5KwXuhIcC0uTv5P7m5+oJC4lDwzbwGL/4rUqseEODAlLFppLwdBlFu/U2OukZc HgUF3N/jMn1DtsL7bblS4lvKn2pt2uJVlIWmkdsw42OD43LgwTEBsFG32Owe8D2idGgjkks4zN/ W6j5/Sp3TkO9ibHItKfiKHdANWc+kw2zW9eW5q+zPwvqABU9O7gHxR0ct62T+7/Pw29pa0jxGxG rcq+eiDkbtyC/yDb+ekM/pcufIDllu+dEvPA48eRx4hBRF6Jicx0eqEm/yOUzaY8JbDpCPajAMV DNU6z8yw6vynCGcACMVkZZWiP419iy2loGvl+y2ebO/FetTjPjht30dGx3Nchqf9e+uuRorgFZF VSP8W4MOyAP6ak62a5w== X-Authority-Analysis: v=2.4 cv=WIFPmHsR c=1 sm=1 tr=0 ts=6a71ba15 cx=c_pps a=AfN7/Ok6k8XGzOShvHwTGQ==:117 a=AfN7/Ok6k8XGzOShvHwTGQ==:17 a=kj9zAlcOel0A:10 a=Sv0fKeRqtYgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=V8glGbnc2Ofi9Qvn3v5h:22 a=59nB_xcw9bnwkcHRuAEA:9 a=CjuIK1q_8ugA:10 X-Proofpoint-GUID: eRu8PNi_dZMRKR78rn3p2020rGeZqJhS X-Proofpoint-ORIG-GUID: pG2Opiz0PKCe2Gbek78wqc5W_CAh3fEU X-Proofpoint-Spam-Info: AW1haW4tMjYwODA0MDA3NyBTYWx0ZWRfX0HNrs549QlTS o6/27dahEtBj8LRO5GUgP1iFlVFanuByEv05Eb5KMhL6V+Zv84g+GAQmHQbn7asd5CHfCIwSybM TzJlT97Mu88OM6rpc/2cMzaLuixWrh8= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-08-04_02,2026-08-03_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 malwarescore=0 suspectscore=0 clxscore=1015 impostorscore=0 bulkscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608040077 On 2026/08/04 12:55 PM, Gautam Menghani wrote: > On Wed, Jul 01, 2026 at 10:44:06AM +0530, Amit Machhiwal wrote: > > Introduce a new capability and ioctl to expose CPU compatibility modes > > supported by the host processor for nested guests. > > diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h > > index 419011097fa8..1cf9a959669e 100644 > > --- a/include/uapi/linux/kvm.h > > +++ b/include/uapi/linux/kvm.h > > @@ -997,6 +997,7 @@ struct kvm_enable_cap { > > #define KVM_CAP_S390_KEYOP 247 > > #define KVM_CAP_S390_VSIE_ESAMODE 248 > > #define KVM_CAP_S390_HPAGE_2G 249 > > +#define KVM_CAP_PPC_COMPAT_CAPS 250 > > > > struct kvm_irq_routing_irqchip { > > __u32 irqchip; > > @@ -1350,6 +1351,9 @@ struct kvm_s390_keyop { > > #define KVM_GET_DEVICE_ATTR _IOW(KVMIO, 0xe2, struct kvm_device_attr) > > #define KVM_HAS_DEVICE_ATTR _IOW(KVMIO, 0xe3, struct kvm_device_attr) > > > > +/* Available with KVM_CAP_PPC_COMPAT_CAPS */ > > +#define KVM_PPC_GET_COMPAT_CAPS _IO(KVMIO, 0xe4) > > Can you use another ioctl number for this? This group of ioctls is for > fds returned by "KVM_CREATE_DEVICE" Sure, that makes sense. I'll send a v6 with this change soon. Thanks for for the reviews and testing. Thanks, Amit