From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 1542D5304CE for ; Tue, 22 Sep 2026 22:49:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790117383; cv=none; b=XRvtsRQz8OPfpVT54VJpVotqnVDg3qrcvxeBRwEvQNlvAl9Zlus9FCB2lNRB9RM1PYdjSESrL1SXsG4qYsWPJCMveUmPPjxT9WEvt+eNjGH4GMTXg5QBAixWhWJmC4hB1dXdPho/+jfdVRLCI/P6uIAXZBOoHgpZ5WmqM/LiGsQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790117383; c=relaxed/simple; bh=qNzbdmq/oIh1lUZzfllq5i//OOvif/27x56ElsknR7A=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=UTNRy4waeYqkiVfz7Iapnsz1qwj0tA/XMb0jZ4CQqgAo8XYImge+2ac3uURzu4S4XjG87HXp2lbVmOkhmneFLfBPNOQvyk74X8OC9cbsQIlviU1MszMnpXsooX1T4lJCOrxMvYDmSXlbfJaPYl3Wa4sVdaG8BDTTkisnUoGWcLI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=f7DvbwpJ; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=KjCHSz2B; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="f7DvbwpJ"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="KjCHSz2B" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68MI7C5e368034 for ; Tue, 22 Sep 2026 22:49:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= YorCO9U54gBbhM07YPBvezJSmHCc/9vnYs1YoAkAYVM=; b=f7DvbwpJMVDR7TMA P4ihPwzr1H6UYxQAMTawgCVJKNVtvcx4mE/9wflDq6mZ0GzO12c1imrLERwRAkl0 nncQI5NA2EGyXi+9w1GA5++uYr04LbF5p+Ei/e8yy41f9Blz/+Dk0fDN45qgW6/f fTTbV5ePWcBvcJrC23PtMtbinCFVQvsg0JEl6VxcngSydKegP51NJG8iEOEcBlc/ w5XpibGZsyfPemv/2izCojD9X6Zy802NjSVqZGkuJuiT78BcSIgtN2yz2UvN1X9T dJfdZ5+yDZS8CMMGUza5KrTYsutWQFYdXn74/ZdNRWbJXyDYyRKZ7xjTtIWufkUT QN/Cpw== Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gurntbb9e-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 22 Sep 2026 22:49:38 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-3282d5302ffso310175eec.1 for ; Tue, 22 Sep 2026 15:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790117377; x=1790722177; darn=lists.linux.dev; h=content-transfer-encoding:content-type:mime-version:organization :references:in-reply-to:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to:content-type; bh=YorCO9U54gBbhM07YPBvezJSmHCc/9vnYs1YoAkAYVM=; b=KjCHSz2B2aqgJ6vCEW23CCFHHELQnndQreTipXN/9eh66YA/RM4PzQFfyYZpcr4Fw4 RT0uHaCB59Td2FhFYsnZc1mE9bgltXLEEieMRxBu9Ki3C84MTgJep5Jw2kIr1cOzk1sL 89lWxBbtqn2i7Cqb062MZSrY4QmX5V38KpKU890qyJMM2nBQJ70pszt9rEEV+Ct9eynx VoUpCgEgO8JyPuhLFgyp0r8vymYJTCsDQU/Lltb0azdI8vxVJIfCBqtFRtAFWAqQmpyv Up9s2rFd4vI1BnOML6iKI6iEABkSTn5zYudBYaurUYc8IFxyVoOuaVXsTBjeTpM+/qq8 Sl8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790117377; x=1790722177; h=content-transfer-encoding:content-type:mime-version:organization :references:in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=YorCO9U54gBbhM07YPBvezJSmHCc/9vnYs1YoAkAYVM=; b=qcfKmUkgFJ/P4DaT6vcACorUJYyB5vEYFLEotWECxUBAlnoNQtVCi38tCvbc55AtH8 woOuhc31mTwEuiG+2vIVjN7JugIMKoV4DqagwCyzfgUes9ObrjtoDW77YaXZAXZXDFA2 7r2kS/+ELfqFSUIiSYvcUtavI98N2o1CXo1gsr7uO0nsQUhmoPkVIUqwayAHQlZn/s/t 87Tufp1P5vIxIrv/6SjFktzrQxXmZu/pmRMw7WKZuSh4jblNEfm+ELj4xs3BBr8xRXcC hWUCQVyRYQxHiOAT5RGfyaoAnpe+wU09rGUqdCxI/JnFZCH3fYQIpXhFcdCapwJlctgd DjIQ== X-Forwarded-Encrypted: i=1; AKwUvBx8PYVw1KobH54unQ7Q3xOOUgTxKqT2FUTm8xr8CUGWsQMfyr8ZAIwi84zngYLCx5ZTi6j0SAQENbmE@lists.linux.dev X-Gm-Message-State: AFuF++lBOb5ZrkW2L/fbzRafVSKflydh7OFITD8XxRfgM/B1mmfw0HhS uvEaYSRdvZXgCmZ9upop88GltAX3URYlX+pZgUgOzG8WYwrF0rZ3DaIFIzldK8G59FTrwAd4q0J Fie+VU0SHYgInd5TOOuTc4pfuDmRYKFRwmaB94AYTO8EldyoMNgxzlWJ5/G9o/fRu X-Gm-Gg: AYBFou1Ei/mYW6FSsRViwaz/0YqSHCRGR42agWQTTprWrs03gK6JfqPKhCzD0IKYvWG Zxu/uBN9HNyyq86uh3d/tqmxvnbxzLQn3Obpo6oUoLaHJVym0rsvZBs1By21ZVec/u3D26kQmkX 8G0R/EQMA53Knaz1s48CZri9dosg2MTfbYVOGN0zzuyRvLs8fQXhpgF0TULkRe+Lw5LwMq/x2sD 8hmwuFbLEF+4s4OS9PvRX0GxubT1UA9ZGhbaUlZHIamXaCfhx7v25WCEpeOQ/WLKoMBs7KnslKy mFS/aXFt3QsjHS0T3VL/R3g6tsbEu/4R630Sl++FYw9C7wBGTnWIcbfxLUVQCjLqefcZyin6LdS zzBRxzK3eGjmhinCLhxH4LGBrX9ym8ykkoiCniTZz6+VWc/vUQG6Ywg8= X-Received: by 2002:a05:7300:7a8d:b0:33c:1941:8f8e with SMTP id 5a478bee46e88-33e5ca9fdc9mr916114eec.13.1790117377253; Tue, 22 Sep 2026 15:49:37 -0700 (PDT) X-Received: by 2002:a05:7300:7a8d:b0:33c:1941:8f8e with SMTP id 5a478bee46e88-33e5ca9fdc9mr916091eec.13.1790117376769; Tue, 22 Sep 2026 15:49:36 -0700 (PDT) Received: from localhost (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-33e939fe502sm1214322eec.2.2026.09.22.15.49.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2026 15:49:36 -0700 (PDT) Date: Tue, 22 Sep 2026 15:49:31 -0700 From: Jonathan Cameron To: Suzuki K Poulose Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev, maz@kernel.org, will@kernel.org, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, steven.price@arm.com, aneesh.kumar@kernel.org, oupton@kernel.org, gshan@redhat.com, joey.gouly@arm.com, tabba@google.com, yuzenghui@huawei.com, linux-coco@lists.linux.dev, gankulkarni@os.amperecomputing.com, sdonthineni@nvidia.com, alpergun@google.com, fj0570is@fujitsu.com, WeiLin.Chang@arm.com, lpieralisi@kernel.org, enju.kohei@fujitsu.com Subject: Re: [PATCH v19 15/20] KVM: arm64: CCA: Introduce Realms Message-ID: <20260922154931.0000171a@oss.qualcomm.com> In-Reply-To: <20260920212845.707-16-suzuki.poulose@arm.com> References: <20260920212845.707-1-suzuki.poulose@arm.com> <20260920212845.707-16-suzuki.poulose@arm.com> Organization: Qualcomm X-Mailer: Claws Mail 4.4.0 (GTK 3.24.51; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: uCQVTvbWmOzRakyIkf9PRP7RwybBOuBe X-Authority-Analysis: v=2.4 cv=eauo7LEH c=1 sm=1 tr=0 ts=6ab30602 cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=kj9zAlcOel0A:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=7CQSdrXTAAAA:8 a=EUspDBNiAAAA:8 a=1xClAnr3vSIPrHROFcAA:9 a=CjuIK1q_8ugA:10 a=scEy_gLbYbu1JhEsrz4S:22 a=a-qgeE7W1pNrGK8U0ZQC:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTIyMDMwMyBTYWx0ZWRfXz3W+NjM5ehos TXp194lJmVJL/sXQWocAun7HFmB1wYACnU/bBom7rtZMMHQwADgxvNqK0DtL7wEZcNzJXlXhCbL eJfyqZ2SpPNs7mqJm7EjiU8gsePkTtw3bg5u+NL4nS8v4S/KBEfXFdG5Dams9MS4cheHgGtP3F/ TVhQcDoxKFOkMVhb63s0caeTN3TtCGkfxZGMjf3ikYZEeAg2EEizbDBpgFOtkHdhybz+ADfuXT4 SbOULeUHCbaiVKlVokgtx9xbNokXHpZxwuVIe0umn5X8l4nlSZkRKb5+x8hNMBT8pgglOfL4AWx ib+9DkdzVlZ/69wuwFtGpO25PUvmUvjxph/ypkAE0wf2k9LiEsX6E/p6mobSiBtdPsQNH1ifyDp mRxq1DspetXK8E39JFzQ4WB+h/fto4UZxCE81A5csiXrWCHwSwUIt4/ysGMPrHiNo9BlqqXzaDp 2LlMkTraPc6cU5ZdrFA== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTIyMDMwMyBTYWx0ZWRfX7t1IT6krtfsq Yz8AQhY/XzG4qPG7OJIf+XzFGpi8DcnQenvJc+jssx/APvJtzcJYadxlONwrqtg6M7yHmSCGYcX aB2SA7i68tjRt6m79zas+BOKuaChIZU= X-Proofpoint-GUID: uCQVTvbWmOzRakyIkf9PRP7RwybBOuBe 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-09-22_03,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 clxscore=1015 spamscore=0 malwarescore=0 bulkscore=0 adultscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609220303 On Sun, 20 Sep 2026 22:28:40 +0100 Suzuki K Poulose wrote: > From: Steven Price > > Add foundational work for supporting Realms. > - Add a new VM flavor. > - At KVM init, check if the KVM can support Realms (though not functional yet) > and will be advertised by static key kvm_rmi_is_available. This will be > turned on in a later patches, once we have all the bits and pieces ready. > For now check if we are blessed with KVM_MODE_RMM. > - Add realm specific tracking in kvm_arch. Since Realm and protected pKVM > states are mutually exclusive, move them into a union. > > Please note that we cannot create Realm VMs yet. This requires further changes > to the UABI and core RMI driver support, which will come later. > > Signed-off-by: Steven Price > Co-developed-by: Suzuki K Poulose > Signed-off-by: Suzuki K Poulose Seems like sensible infrastructure to me. Reviewed-by: Jonathan Cameron