[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN v3] Xen: Ensure "xenheap_bits - PAGE_SHIFT" can be used as a rhs operand of shift operator
- To: Bobby Eshleman <bobbyeshleman@xxxxxxxxx>, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
- From: Ayan Kumar Halder <ayankuma@xxxxxxx>
- Date: Sat, 3 Dec 2022 20:10:43 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.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=TDvWbq2p6X+J+Q4Nvc0tfmCpblZay8TArtvg3ZdRtU8=; b=caIYI7Mt+6LRtT1UIYuzwpXfB2Cpc9dJK9bgSS1Om79h8Xg1ClBRyoFnmjj5qjddJ2v6qToaJRDmOPTNtB6I05dr1S0ChgweRT7a2PSSpZZ3JlzhcAWZ/kGl+JI9d1EvysMAuCIS+d4mfbXBTWDwxtH+aU7VDc2N94nJKsiaMlAXBnJJR6/DNNTqWQLmvGyEL5W/33rG5OlHVzrLsKeWZDj7u147hrCbGuBd4c3gFJ9YRGTERSM9ohhYKV9wxdMVLGkugInAtmtoannZJhNHg3gT1OctGgyGhUahWR2JLx8yPYJUfJ7Ecn1FyKU+LnkuEhMmRXPA4yBOe3WPMB2E7Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ha+IYurYXF2m5XfbFWBqkQXmnZQ8fDsVWZkR2B/36WHLjSrzVH2QYw9CUVZ8stWJ1sDM//ZbY5ttJouYLevooIgr2qfXVVKznb7dTtKTkoN97FlvmTYWJk0S52qpC4cXAipIDX58Q1lZCx3q+cGM4mee6ghZOxnbXKaeftIIsbcojb6w25j6YfnBCCy539SDm3JVCUSvuHJFhggNGT8VNZsVEwLx+vZ2P169IOcO4W9hj2LbhVQ9mZwJVNgVZvpZbSOZQMREUkKaY6v/MXS6DpBkXjtsnn3Q+JAK6oguXEn1YB64xi30dU9JOYS6VmJlUbothILD8OP++/YoZKepuA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
- Cc: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "stefanos@xxxxxxxxxx" <stefanos@xxxxxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxx>, "jbeulich@xxxxxxxx" <jbeulich@xxxxxxxx>, "alistair.francis@xxxxxxx" <alistair.francis@xxxxxxx>, "connojdavis@xxxxxxxxx" <connojdavis@xxxxxxxxx>, "wl@xxxxxxx" <wl@xxxxxxx>
- Delivery-date: Sat, 03 Dec 2022 20:11:20 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Hi Bobby,
On 20/11/2022 17:01, Bobby Eshleman wrote:
On Fri, Dec 02, 2022 at 12:56:06PM +0000, Andrew Cooper wrote:
On 02/12/2022 12:35, Ayan Kumar Halder wrote:
Currently this change will not have any impact on the existing architectures.
The following table illustrates PADDR_BITS vs BITS_PER_LONG of different archs
------------------------------------------------
| Arch | PADDR_BITS | BITS_PER_LONG |
------------------------------------------------
| Arm_64 | 48 | 64 |
| Arm_32 | 40 | 32 |
| RISCV_64 | Don't know | 64 |
Just FYI, I think the answer here is 56 for RISC-V.
~Andrew
Andrew got it: 56.
Thanks Andrew, Bobby.
Bobby, I couldn't see PADDR_BITS defined anywhere. Did I miss something ?
If not, will you define PADDR_BITS somewhere in xen/arch/riscv/* ?
- Ayan
|