[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] xen/arm: p2m: Populate pages for GICv2 mapping in arch_domain_create()
- To: Julien Grall <julien@xxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Thu, 13 Oct 2022 13:04:39 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wj9hkEPfZbilBstNTw+St8QZ5chhYXD3rDXCRvKu/H4=; b=kbxMBCn1zKKZsz5/xQpijWDIGcdraWONNLCTu8KMVAXjGvAe8vjL1FRu4RrJXsXJozyQDbNTl9DP8VO3Cv/nGFsiqyDf8XbD0kUiojtj8Ae5ajaJQf4wag1DYME7jumqkWk9eu/ncTL2qZkmwmGHJoNEJGi6HJ3z1dTVyR6XcLNUraiNULwOw3uCr3iCUWunQTWR0N+buPixuA91vbwsNJlEdyS6QID+UtUsLGE5EGwcZEuffYIybIhMIUHxbSMz1hvW9oPm77iqKSBZjfrxxJtlJzzy3mDHTtxIAVkGMsLuR38nBhgg6g6Ax1k4t+xZHwiGsxJWcpROloZEhetamA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i5zBxPFkpc9m7nzwPbsUgrB1H02RPuYGFPFd19dxZ6xR0zZx0QziY6HwJM6n5/djj9sTxONgKHrziCGOrqmeivt8FMzolGBCoGuDcl4pVbad0I2p/pRH32dGma/fbtnPlBS4HEvj399cm3y1TLdEGpr3XqfmktYB55Cilp3uWOtVmsGd5m0d1CaRgc6xyhGX2va1kcFZx6H4K9KBhtKhKcz6GI2S2HMf2c07UnrXFa6lIHHsK7S/unSjSsP1lSTFXjae3ZQ/nxp5iadGpLropFXFyfT/1SWePAKNr1x4sJoCBXChl2w+QS627H72kDhmNgEguwYu9FmtTbNYMp/Q9g==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Wei Chen <Wei.Chen@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Thu, 13 Oct 2022 11:04:48 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 13.10.2022 12:58, Julien Grall wrote:
> On 13/10/2022 10:21, Henry Wang wrote:
>>> -----Original Message-----
>>> From: Julien Grall <julien@xxxxxxx>
>>> Subject: Re: [PATCH] xen/arm: p2m: Populate pages for GICv2 mapping in
>>> arch_domain_create()
>>>
>>> On 13/10/2022 09:38, Henry Wang wrote:
>>>> Hardware using GICv2 needs to create a P2M mapping of 8KB GICv2 area
>>>> when the domain is created. Considering the worst case of page tables
>>>
>>> Can you describe in the commit message what is the worst case scenario?
>>
>> The two pages will be consecutive but not necessarily in the same L3 page
>> table so the worst case is 4 + 2, is that correct?
>
> So I agree that the worse case is 6. But I don't understand what you
> mean by '4 + 2' here.
Assuming you have 4 (N) page table levels, isn't it 7 (1 + 2 * (N - 1))?
Or is the root table not taken from the p2m pool?
Jan
|