From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 04DA54BE423 for ; Wed, 30 Sep 2026 16:06:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790784396; cv=none; b=HeGbXccISJn1a0pnR7rVyE8dlEZAYsjcdL4HiqEsI7pXxXSrB0dABesAwXJ8jZ8UIxB9BrWo1OxkOBw8fQ/Sohix7RdkoIbYdy37Apxe5g5olqtWUWyZsgxkrhvZKRvwwJ6PL2BMR7Zr3ceB945Py9QZg7f4ggS5FhgZ97L0viQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790784396; c=relaxed/simple; bh=M3mU235Be7SmeB5TrecbBlDrIaYaw+U/+jYODikK3Xs=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nUcKhj5sY29kpSiwkR1vGPCyr1VZs1Ndtii/iQg3xEDO+RZlU0Yl17933EC28x83LXOEbF/EP2TP1KA0Q9Af0Xc52YCbZJDXH5/YKC04X9DCZ/zmrQvdotQsj0evdLJ1pTxcNAYiODaj6nCvn4BRyi9/GRUHFcJfuJ0BeoEEIVo= 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=GrzS+zys; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=jclVqyvW; arc=none smtp.client-ip=205.220.180.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="GrzS+zys"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="jclVqyvW" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68UEvED9273296 for ; Wed, 30 Sep 2026 16:06:29 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= RJsMX2lmV5ZOu0OhhWQETYgs9bQFhObUxVjX+YGHGYY=; b=GrzS+zys6kCaaQuR hoYYKt3vxHvQAsVUc8sd7nR5DNlwNVQ/udeLha/y7PBdkrOan6v5ddR1cVm9uk4/ QenhZMPEoE+sSrea/Xf7uz3u6zQZ+zmLeh8yOeFhXcYjex23pw7gf/YsduLeNbCN 36DYaVdtCJXpvAp18lcvQWydfUe+3VFOhZ3fIt4dQjTqmVfwn+pRr4uBO9A9ajib Jn5mjjn2PImG2IOXGizFtK9L0rmR07DJB4QON5XZumW/LopQArDtELJI51GS+wKz eSCMFF5usimEHanL4mpYFl4PXD20XyLB+Sdv54i+20Pfb7rnXm/U2plXKUzH1a55 zkI1Iw== Received: from mail-dy1-f197.google.com (mail-dy1-f197.google.com [74.125.82.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4h14n20b2r-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 30 Sep 2026 16:06:29 +0000 (GMT) Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-34d62bb27a1so1229530eec.0 for ; Wed, 30 Sep 2026 09:06:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790784388; x=1791389188; darn=vger.kernel.org; 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=RJsMX2lmV5ZOu0OhhWQETYgs9bQFhObUxVjX+YGHGYY=; b=jclVqyvW4xohGXhTSz3AB+UEipNuWRCjruPxKqT1Xs75exQSY8HThu9gVx1HRQg7tD DtmeicRfEjLq8NWW/Um1S21cH5khdfhXqzDSI98FYFYgr5nkuU6qKezaQHnTYyUstDxh BhIi2ssBtH9byW+Us1ew7zqNsdV+Afgv4kkNQYee3SMQ+o9OYU9lNOBtrWrU0UbuSCHo 8H7yQney9QUaIEQWslHTHll9LAUv+tU14kF/nb3KqNEFIH2XtUUotEz/z8s1Ty/oOjoa FBX/IHT7dgwj/E/GonLTR5Gw8pkGRRBGLdJGBR7NU5ImUJa8elyzmsBKmTzRzXRjcZQV VMgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790784388; x=1791389188; 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=RJsMX2lmV5ZOu0OhhWQETYgs9bQFhObUxVjX+YGHGYY=; b=JS59oIeupTkCcXuPgEto/FByHMImodyBbLCWIHLl0DhbQp1dKzIEneXvZOH5q2cuZS yTgRbnekK+sV4mg0zZPOfWPrq/LtNibniOl5ROa1gF//tgAB4t1G8sNU5S88DsbB15/a Ns9G000fVAPnTjIDhWaNKm4F5afe9eeAHXh/EJUsG93ojZvs8Te1WL3o84ubYKdLa94+ Pkq2XXbCZp2s8UslYha3NuStGpbSw+tJP3JCxz+kjwUAPFlG2hW7EsCD/qwij8ORQXop D+MebPOLXPfG1uSMYP1owDaUtlAkErj288rHjQ6mDV0npWAF3AKHjfYEAhHwTARJTplv dh1g== X-Forwarded-Encrypted: i=1; AKwUvBw/JuCa6rGBYIwF5qjpRNzEYLczAt3glEKKGyNFgMfrTz9hIUNv19oguoBDdoqvXNFjnk1JeYkZzd6RZAo=@vger.kernel.org X-Gm-Message-State: AFq9FYI41o7GGW/AaHpg1fd4z25dPTW1zDe86EBkNMPvH9WLkx0/bH4v /UH0IN1SYWjFXH614ZYVKgncY9BwzlAPsbxHRrsXIVO5E4jLnUoDXCpqmDx4TWR2DYIlAx8ilhK p58LZKI2ULj3SgPTP9b+Sv1HTPCkZg9fMo/WbX2YhKSfaIwoiAmuOgj/u5HfwN0s/8Pw= X-Gm-Gg: AYBFou2D+GJ3o1K2OzY46iLiGLskvd6v1EXW14Fr3YcQI8jDnaMZKoulgLMZ+HzQmsD n1Mkspwb0ujGHbUCaJnh3ZYkYzkv8ExTHGeed/EvymPS3pxEl1B1ERR6D/cqgzVG5xXqL1+hi1v ZRq3M0dsChSpAsW3GzDNcui+8c/CyAaiyk47EFGa8pxsSBRriVtBvzM7Jk+HeqfXN1OhTnEJSob jY+Qd2uggntBsXxtH6perF8BbijmAv4ZhUPJpW2jpSTbuHXyMCHNh+2sJRBwhKyOrhD1Cpc0EBI /PbwuFJYeME6fNdXMNQi/PHNh/+ei+mJUrRgMGVqKzOlntpmx8aCqm561VPEy2JRufvITyxdZkU iiBK2nAkIgTvZ4w4907bNOAhbVE5ucMCWoq0tReoOZ+nzGwCWrSzYfw== X-Received: by 2002:a05:7300:f791:b0:34c:5283:4f07 with SMTP id 5a478bee46e88-34cdd792968mr2177198eec.38.1790784388272; Wed, 30 Sep 2026 09:06:28 -0700 (PDT) X-Received: by 2002:a05:7300:f791:b0:34c:5283:4f07 with SMTP id 5a478bee46e88-34cdd792968mr2177166eec.38.1790784387688; Wed, 30 Sep 2026 09:06:27 -0700 (PDT) Received: from localhost (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34db0c8e76esm167595eec.4.2026.09.30.09.06.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2026 09:06:27 -0700 (PDT) Date: Wed, 30 Sep 2026 09:06:22 -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, sudeep.holla@arm.com Subject: Re: [PATCH v20 7/9] arm64: Block hibernate and kexec while RMM is active Message-ID: <20260930090622.00006590@oss.qualcomm.com> In-Reply-To: <20260929221623.1342076-8-suzuki.poulose@arm.com> References: <20260929221623.1342076-1-suzuki.poulose@arm.com> <20260929221623.1342076-8-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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=Gr3XaU1C c=1 sm=1 tr=0 ts=6abd3385 cx=c_pps a=Uww141gWH0fZj/3QKPojxA==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=kj9zAlcOel0A:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=7CQSdrXTAAAA:8 a=EUspDBNiAAAA:8 a=LZvgd7wXd7bcPLl1K1UA:9 a=CjuIK1q_8ugA:10 a=PxkB5W3o20Ba91AHUih5:22 a=a-qgeE7W1pNrGK8U0ZQC:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwOTMwMDA2NCBTYWx0ZWRfX6t86QO7vvt2Q 3rNU3G1O8B8t0PRMPZ2Dkt9EPrD8tIPDZpPyLakWEB35QMC6DH9RtSyr29iz0qF+AK7blA7bmhP 6moZhJwcECearR9f3pPlbnVOtK4hl5g= X-Proofpoint-GUID: EeaZOfHOrqWCq7Iu3jy7yRjywvHb1Q48 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTMwMDA2NCBTYWx0ZWRfX4BpaTrx4H6Sp VBQPQ35weVOcMaE7N4sURusN02flYDIuA6pg91iRFUvSbngfB6GQP0YsFOHRsJhKCN9hzfO/JOT a7xCZs08HuoF+Eyr+t+9ZZ4779odr2FS9CsZeHKplVb1C1bkQk8e/1sPRRiZv+Je30LpElHI6RM gWhN1AZNcphV/bMaDRjywpbBWrSS5FHWYsnK28HsaKzP23qAidRRiQOVPJvuY5M8+USZBDZE4Fl Hv+ugCSFbxH9pOSy/TkzCieZCF3v4Kgol14WOVRnot6eenfwOkOYD2Zn5rHQRjyf7SSfG+4HgV2 8h41i595QbwRIDxwRKjjNGQvmWLrhCRwT+yh2Ome2k07iJ/DhhQ0Ss8pzngEguMhbA2RprnTMUk AsJy4NwC+V6RG4YjYoYeQAeVfxn+UdTnoABK0IeL3Dc/c4boaTeVrEp71hWlwZUgq9rnb5rusU9 +Av+hPD4JljVvMxxokw== X-Proofpoint-ORIG-GUID: EeaZOfHOrqWCq7Iu3jy7yRjywvHb1Q48 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-30_03,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 bulkscore=0 malwarescore=0 adultscore=0 lowpriorityscore=0 spamscore=0 suspectscore=0 impostorscore=0 priorityscore=1501 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609300064 On Tue, 29 Sep 2026 23:16:21 +0100 Suzuki K Poulose wrote: > RMM can be deactivated only after all delegated granules have been > reclaimed. If a new kernel is entered while any granules remain in the > Realm PAS, accesses to that memory can raise a Granule Protection Fault > and be fatal to the new kernel. > > Crash kexec/kdump needs separate handling. It can be supported only once > the crash kernel can tolerate delegated memory inherited from the primary > kernel. i.e., be able to read the pages safely and fixup the GPF. Until > then disable the kexec completely. > > Hibernate has a similar problem. The image cannot be safely saved for > delegated pages, as the RMM doesn't support exporting the pages. > > Disable both kexec and hiberation while the RMM is active. > > Signed-off-by: Suzuki K Poulose Not my area of expertise but follows similar patterns to blocking these for other reasons. Reviewed-by: Jonathan Cameron