[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: Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>
- From: Henry Wang <Henry.Wang@xxxxxxx>
- Date: Thu, 13 Oct 2022 11:05:44 +0000
- Accept-language: zh-CN, en-US
- Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=2; 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=j2hGsz+tza4BmRvGnFdxEY33BsYLCs575k7h8s43/rk=; b=CMnQBn1VchPSHqtr/raxpIkAzhJGtFlDezKlfmR2Kofvm+KyZxYcBxxxHypqlqKGhFEjdEzV1lzaR9+wPIXPFkQE/VbeuJf9K05MLYgk0YzJl6DCt2ZxJOULuH5cYfW3wRmZRM9lghqk9tx/BtCTup0/D0ZeTWR0mH737q299iLNB+EOPxjJ0dqAcC4HXdMCfY2lsniXXDi7SMogZsBM09Mbr0ZGmkdHzUSJmEArYsuD0WV+8f62dIZ92l6089hYMGl//NVqN6NVSVmyk+R7FB3RSxlxO5xA9FuFWn3oKll3o50TkSdvdyKVIH/j4sLVumJImqHtkD1MVnNTxwz9KA==
- 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=j2hGsz+tza4BmRvGnFdxEY33BsYLCs575k7h8s43/rk=; b=mtBrEILeRxII46+LxOvRnP/QQmkNmYxTKv59PuvTDP2UoUL3KntzyCdoGjKRnwYePExdKOqbyW+QJwSJCN2pso0QTQuzEkXmwDxQmGhfaVWSjCF8zTnxlRbyPsB981wGs3nRwyOXxzCIoDjXpGJhjMDJACTxgIjjrPTywfC2imjzjHIr7UjxGtLVABLn2/Qzax0FtRjhMUK6k+SuJc8cQ0HrH7vx5L7a9ZraJFz8SAo4wJHqv6xh6fozAvYse49tUAffqaWoHUOAByP2I1AGic3UpepgPHC2MPq2KjRPYqps2N/mpe6rfM0Rf75rALJ9MXis5CWGj92W+/kC3rBnYg==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=PdZrru1UhYcfeMOdAgm56v0zLMg/Qd7U0UhYfFUEDmGfHCHbyz2i+lz0wVv2oy0E27+fPcJVN+4au+OIYt9wCo4JlxjSEyKIqRxv2+J0r+NgW2UZD2PwNCxOEiRDc16iaSLRq25qPd6+P+VrrCOEAoCQq2f2gjM9keZLHPkbVqmpwcJKS/TM3yOFSvvzwkVJUFUmG/qOkPnKQPZlxCaBYXwG03deBllIdFo99qBrvGbcqotr68+umCjMnLDxVuBmAYGMBM1caSezhQ3akaaf95mjC05H67Q49i5UR0x4l6V2jz02t12+x0Zpy+Wp+J2BcOjfgv1WTtN+PkmWg0y9Cw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dx95tLzppuoDJ0MD+iby8NeIL8Zjgxd2jbEdQKWaxtkLd+c4naesz2BR0X1wweT1tNeYHOfv+Ib+x6qXEVN8d1lBwfU7mtUYcmd78FxOtkks4EDOtUeSf1ZVrBY2P6ezCcVNzcgQGKfqLvZ/1hLfHpDZiNe46x85ws/CWU/FLsoTeurAXPpCz7HeT81Kk679Jo0KsIt53imOceu167eRGM9hgydWIV9JjoRqCgkXMKoHqrMzvfaZ+OHKIchy5rzOQSBxfsbYDIFJDchWudt3eMw2vnnOLzD6sflBjA3cDLEJ+68gkhL2bd5B/7BtdVaW1uEfB14AH2EcUqBuI0XItw==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.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:06:04 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHY3t81xdeRddBbSEGLoF20gErPe64MCngAgAAAYwCAABzHgIAAAcyAgAAAK9A=
- Thread-topic: [PATCH] xen/arm: p2m: Populate pages for GICv2 mapping in arch_domain_create()
Hi Jan
> -----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.
Kind regards,
Henry
>
> Jan
|