From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B9D7149C57; Mon, 16 Dec 2024 16:45:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734367527; cv=none; b=pief32PXo+t1WOKQw2G9RhgakGG1fNbrtXNeAzaHLMK3O8A7/FbOc7bvzaXg7AzgKM7mXRIzYvkThwSL196GJVmL3yxoPXV4jPhHSNPpzk4VthuURZQZMr/rIBDLVwjMnKUah/xNTCKGNW2h/LbUb39QpBoKBhpJEEFaEFDf/uc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734367527; c=relaxed/simple; bh=9QHwvlrRWZByI5jzZP2lVJHsGw1TB70fce9mTsmyuM8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JnaSXpyjnPCcPoEe67hM+j9u5gC+lgBC/gjUNJnQVtCGqQhZXeWeiRpo4m9deY8RNtCNiyJCwUT0g+T6R4ZaoutDajxVMSFQGj0WWMrESduzPf9MzmXpQvJERI8wwma+z8zidVxaTByROSYAihjKOjDhEq5NoYIZfkhQ4hT85jg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6E3F4106F; Mon, 16 Dec 2024 08:45:53 -0800 (PST) Received: from [10.57.71.247] (unknown [10.57.71.247]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2C46B3F58B; Mon, 16 Dec 2024 08:45:22 -0800 (PST) Message-ID: <6036b1a0-608b-4fff-a2f3-63eff2d52338@arm.com> Date: Mon, 16 Dec 2024 16:45:21 +0000 Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 03/43] arm64: RME: Handle Granule Protection Faults (GPFs) Content-Language: en-GB To: Steven Price , kvm@vger.kernel.org, kvmarm@lists.linux.dev Cc: Catalin Marinas , Marc Zyngier , Will Deacon , James Morse , Oliver Upton , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joey Gouly , Alexandru Elisei , Christoffer Dall , Fuad Tabba , linux-coco@lists.linux.dev, Ganapatrao Kulkarni , Gavin Shan , Shanker Donthineni , Alper Gun , "Aneesh Kumar K . V" References: <20241212155610.76522-1-steven.price@arm.com> <20241212155610.76522-4-steven.price@arm.com> From: Suzuki K Poulose In-Reply-To: <20241212155610.76522-4-steven.price@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/12/2024 15:55, Steven Price wrote: > If the host attempts to access granules that have been delegated for use > in a realm these accesses will be caught and will trigger a Granule > Protection Fault (GPF). > > A fault during a page walk signals a bug in the kernel and is handled by > oopsing the kernel. A non-page walk fault could be caused by user space > having access to a page which has been delegated to the kernel and will > trigger a SIGBUS to allow debugging why user space is trying to access a > delegated page. > > Signed-off-by: Steven Price Reviewed-by: Suzuki K Poulose