[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[4.17] RE: [PATCH v2] xen/arm: p2m: fix pa_range_info for 52-bit pa range
- To: Julien Grall <julien@xxxxxxx>, Xenia Ragiadakou <burzalodowa@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Henry Wang <Henry.Wang@xxxxxxx>
- Date: Fri, 21 Oct 2022 01:42:16 +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=V/1RPnpsGavWjGJhRUzThYIsnin48ASuOThSJCsGEbc=; b=HTR9byBsRv3n5Ys0Y17mcCXYieAH2K4cxzeWknMTfo44nBD3Nhv3caoLLvinRKMSNBASKQ51nZx9SdvRK7zdAjZ1bOvYi3bVOlEB8qabA8cWBt1WevIPgo1bkM06irMMoGwzZRIex6xD9qEa1z5+UArYaqWHoGQHPx6k+Dsh/SdPmx/sun0Mlsxs0HGDvWStrJIvbxSA8KxP1YzXXMtJHWqMKVePI2pR6GFv+tqEvc18EfN1lnaVZ2w9vjz35mbd8Bqe2dBNQ2Vxv/aE8HvwHeu288ucYSiQ/GbG5mL6dMdB6oGly9QRfr7mEcWEZ2M2wxCXa1m1E2AkBZcLLZgIBQ==
- 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=V/1RPnpsGavWjGJhRUzThYIsnin48ASuOThSJCsGEbc=; b=Sme/Zem0aQxXPxD+hpKHnziP7hm7euYHR1j3xtRvLRmItQSjnMiLUrRtzHD2ImpjoMXb8mVtpAqoiPUEC+Sc3yIl2jo/wCo4fxKU5qYzVDx3yz/0nrb22k3gPCtV5CGSKOUTQ3aMLSX7rBpA/vANVMaNbuUdou43yaXzisyEYQBMY8ytisZkdOCXy1WnsxkYNX73drCzlRHZ192+pBVG2YUAPrFnYjy4nQdN2/9drNsgfq81N3fE8Pev36iEvs+JNpFktGE1+zVdvsyG0S7yqoJ4q9IMd+22yXv4J5BLZoWjJA5qfKux+gMGzTtqJDKmDvcz5AWHBkgn9HY7gBspLQ==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=fHmTPnNrd1F121E45dE5ELJ8Ynas+Dr7YxUWQwWOGXI+lZF6UENWibwVI8ZfKc61FzVETfy57CKEvU4P8CWdf1L4lFZnPTLupxyNgpdFgzlPbdQ9cHACvSpQG6BExdMIUwKya0cbmYcviXZ2hqJ7WdQdiBJFg9EFaPhSdXEpaZ5bFKSXt6RrlGIRkwPFbZxhZolLAUgbYoo0PaaGHxv4FTO0pluBuQOXpWYoxsjfKAoWVPCn5lh3ncAqm566JXxqUuv2F+kAiFAMWxgPXb1VbH7wIMlVh8oKaXI1+UkHi64k91BEQU5kDOHPar0OigLanMea5xtP8dPXKZNtj93pKA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QH4XRpZxX3dSBuc8KVXnSXLYis1I/5wiNDC0dIjTRrAX9s+a302h+MJaBtQjVkUMo37lR/tkHeeu5Z+RGm8SuUXTgjFT7LaUfDXgg7RlksC/6j/vXyaSQObVFg4FG3ob5bLp9yzH1KEHBEePKHY6RxBZFLvLYYliw68TbsEyWvE69yJ1aqhdQtQu6RwCj0tQR8BpnETpH2qB/ys3vuXGJVZvGH9L9mzbhLzZg6A9CRacsj1H8mz1Eghx/s+LSvxWGJ+qEo1NPE4xPXRf6mZZ1UPYfIdBvo5NksdYRDKa3xxzKMeQi4eUlLq4cDExbE4sZ4CRvpeX4Rk8RP1nwSXb3w==
- 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>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Fri, 21 Oct 2022 01:42:59 +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: AQHY48oesrLPZOyAMkGfn+0zDPtusq4Xl4aAgAB9ksA=
- Thread-topic: [4.17] RE: [PATCH v2] xen/arm: p2m: fix pa_range_info for 52-bit pa range
Hi Julien and Xenia,
> -----Original Message-----
> From: Julien Grall <julien@xxxxxxx>
> <Volodymyr_Babchuk@xxxxxxxx>; Henry Wang <Henry.Wang@xxxxxxx>
> Subject: Re: [PATCH v2] xen/arm: p2m: fix pa_range_info for 52-bit pa range
>
> (+ Henry)
>
> Hi Xenia,
>
> On 19/10/2022 15:49, Xenia Ragiadakou wrote:
> > Currently, the fields 'root_order' and 'sl0' of the pa_range_info for
> > the 52-bit pa range have the values 3 and 3, respectively.
> > This configuration does not match any of the valid root table configurations
> > for 4KB granule and t0sz 12, described in ARM DDI 0487I.a D8.2.7.
> >
> > More specifically, according to ARM DDI 0487I.a D8.2.7, in order to support
> > the 52-bit pa size with 4KB granule, the p2m root table needs to be
> configured
> > either as a single table at level -1 or as 16 concatenated tables at level
> > 0.
> > Since, currently there is not support for level -1, set the 'root_order' an
>
> Typo: s/not/no/ (I can fix it while committing)
>
> > 'sl0' fields of the 52-bit pa_range_info according to the second approach.
> >
> > Note that the values of those fields are not used so far. This patch updates
> > their values only for the sake of correctness.
> >
> > Fixes: 407b13a71e32 ("xen/arm: p2m don't fall over on FEAT_LPA enabled
> hw")
> > Signed-off-by: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
>
> Reviewed-by: Julien Grall <jgrall@xxxxxxxxxx>
>
> Regarding 4.17, I am a bit split whether this should be included. On one
> hand, it would be good to have the value correct (not that I expect
> anymore to try using 52-bit on 4.17...). On the other hand, this is not
> used so there is no bug (this could also be an argument to add it
> because it is nearly risk free).
>
> If we don't include it, I will definitely add in my list of potential
> backports.
>
> Henry, any thoughts?
I am actually monitoring this patch for the same question that if
we need this patch for 4.17.
I see no reason to exclude this patch since (1) we want to make sure
our code is correct (2) I am pretty sure we are not using 52 bit PA so
as indicated by commit message this patch is just for correctness and
no potential harm to include this patch in the release (probably even
backporting this patch till the 52 bit PA was introduced?).
So if you wouldn't mind committing this patch, you can of course have
my:
Release-acked-by: Henry Wang <Henry.Wang@xxxxxxx>
Kind regards,
Henry
>
> Cheers,
>
> --
> Julien Grall
|