[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: Henry Wang <Henry.Wang@xxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Thu, 13 Oct 2022 13:36:28 +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=xrD0a6zLarfr8oL8gPj36xX2OAP6I10+pUdEw4s25CI=; b=n8PwcME+MBX+EGJURBzh7ThGlDs9fT877V6m4Uk0co55Vp/HsT3nIoR4xvhSuKpMs3n6f/7P6N+IG8S4zI8TwipQSHPYgsCICnm4f9yoU0upJM/O0zWeBIQrIB9K+oWU3Y6huoznLW5NtyJBEWDqgfgyo8djcHbc9x45Bt7A+k8R9CWBaHUm8FGWZbJuQp0Rl2wzRWufz7zFday/8K2AddAqEDJoZJZAuqHTSOE5w1/4Neowl1bkmEWp2S6RDP6Y44NT2jG03jR3XkXFQK6yifNvEZTpdVVR5X2l8SrET64QH8xCMpFO0V6Ydp0KN6YxYKhK/Lw8G52nKfkX48uDAw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=buq4+Ld87xb4VrYEiR9MZoYbdBfmyWsAfjW/lpI5Eh6GWef18ED740FG/a4oF6yw2TYWULRrV4+sjNzqKJ/RPxW5MsN4w93RIC++61SkPm5gLdjCqcETzIjnY1p5MfwpDAaDjIrpYJxjuACo4Q6/zTBln6rnNAS9UfI4rtCYJ8QxyLLb6rBnmmVdwtwjtvfPU5OvGXlwRe8d+e15YIe9X1gxkqDEvrv/lp9dDC5JK3aG8JRsOUDJp8EX1jxCQ5qb7rYGknIYc+DWWQfHqXGIdmuGc2j9hpegY7nYg9jB+CpauHqVjQHdbYaZArVa2JuB6KHzo6lNg/xTPH04YitvLQ==
- 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>, Julien Grall <julien@xxxxxxx>
- Delivery-date: Thu, 13 Oct 2022 11:36:35 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 13.10.2022 13:05, Henry Wang wrote:
>> -----Original Message-----
>> From: Jan Beulich <jbeulich@xxxxxxxx>
>> Subject: Re: [PATCH] xen/arm: p2m: Populate pages for GICv2 mapping in
>> arch_domain_create()
>>
>> 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?
>
> Correct, on arm the root is not taken from the pool.
Isn't that a (perhaps just minor) mistake?
Jan
|