[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Discussion of Xenheap problems on AArch64

  • To: Julien Grall <julien@xxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Fri, 7 May 2021 04:06:33 +0000
  • Accept-language: zh-CN, en-US
  • 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=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-SenderADCheck; bh=Hx5ewWZhaU7kL7WXqUZVcrXrshUKMDtOMIsINzIIukw=; b=fOyBeaD8ne3phbK+2OaTi+fvHfq3K4R0nwMfVs2zPCvMsoj0AUoq2lJTPZMgjyKfSRbWfC1lQVG2/Iw+UXfEWWo0cunsm7DyU21aHIfNXRPMSN4TBLbDz6ZXkBRmcHYtuNODWzFW7UlRcfjuAtJCtDWYMgA5uXX6WDo4lLDe5nxc8tpXA6KC9eXN8WHZ0TuuIrGahwgT7MNo2N1lvMYUmou+YpUkEke+GEqAb8evafZ+JImjc1xSIHj42hdUrxUrUmVb/0WRn6XuFzLaIjMmpsyy2mMOCd+J6TOJ4S4Ujz1TLeiA6tzoz+v+7ZuDXlEvmIoZgZTzsTb0oYC7ell/gQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mkuf0gsNGEsM2y9SEkCKroe3ukIaMT9jaSSukWHfhKPTMoxOlcqw+BKdtZLGKiDnDVzBSdmogMBp30bKEoUD7/86jO7CLCTyUFdqVyhHyNygc/dFjGyjV0OQXXit+54pas6hT+/D3c5m55hBQomGYHp1p54wcvOxpg77uZADon7zKPRyGH46y2aGeShBKXVCJh3ntcEVLaGq5VDUVmEnBRVCGAZQPn7MN9aVLwr+lpGiAKK+9tqJlQd80XkGtI+5Ka9aCEhcKe8vKD1bcCEdeuhtaUNVUstBJfpaAoAmKKjqY+okF1DBHAfIt+RkieX50fZjouL18AOsjyHDk6fBZA==
  • Authentication-results-original: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=arm.com;
  • Cc: Wei Chen <Wei.Chen@xxxxxxx>, Penny Zheng <Penny.Zheng@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Delivery-date: Fri, 07 May 2021 04:07:10 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=arm.com;
  • Thread-index: Adc2dyA8lkZGRqbyRiSglHolanVkwQAFhaqAAACgy/AA4CfqgABHcHyAADhcqlAABznSAAGrycWA
  • Thread-topic: Discussion of Xenheap problems on AArch64

Hi Julien,

> From: Julien Grall <julien@xxxxxxx>
> On 28/04/2021 10:28, Henry Wang wrote:
> > Hi Julien,
> Hi Henry,
> >
> > I've done some test about the patch series in
> > https://xenbits.xen.org/gitweb/?p=people/julieng/xen-
> unstable.git;a=shortlog;h=refs/heads/pt/rfc-v2
> >
> Thanks you for the testing. Some questions below.
> I am a bit confused with the output with and without my patches. Both of
> them are showing a data abort in clear_page().
> Above, you suggested that there is a big gap between the two memory
> banks. Are the banks still point to actual RAM?

Another sorry for the very late reply, we had a 5 day public holiday in 
China and it also took me some time to figure out how to configure the 
FVP (it turned out I have to set -C bp.secure_memory=false to access 
some parts of memory higher than 4G).

Yes you are absolutely right. In my previous test, the higher memory is 
not valid. By turning off FVP secure memory, this time I tried 2 test cases:

1. Using reg = <0x00 0x80000000 0x00 0x7f000000 0xf8 0x00000000 0x00 

In this case, the guest can be successfully booted.

2. Using reg = <0x00 0x80000000 0x00 0x7f000000 0xf9 0x00000000 0x00 

Firstly I confirmed the memory is valid by using md command in u-boot command 

VExpress64# md 0xf900000000
f900000000: dfdfdfcf cfdfdfdf dfdfdfcf cfdfdfdf    ................
VExpress64# md 0xf980000000
f980000000: dfdfdfcf cfdfdfdf dfdfdfcf cfdfdfdf    ................

when I continue booting Xen, I got following error log:

(XEN) CPU:    0
(XEN) PC:     00000000002b5a5c alloc_boot_pages+0x94/0x98
(XEN) LR:     00000000002ca3bc
(XEN) SP:     00000000002ffde0
(XEN) CPSR:   600003c9 MODE:64-bit EL2h (Hypervisor, handler)
(XEN)   VTCR_EL2: 80000000
(XEN)  VTTBR_EL2: 0000000000000000
(XEN)  SCTLR_EL2: 30cd183d
(XEN)    HCR_EL2: 0000000000000038
(XEN)  TTBR0_EL2: 000000008413c000
(XEN)    ESR_EL2: f2000001
(XEN)  HPFAR_EL2: 0000000000000000
(XEN)    FAR_EL2: 0000000000000000
(XEN) Xen call trace:
(XEN)    [<00000000002b5a5c>] alloc_boot_pages+0x94/0x98 (PC)
(XEN)    [<00000000002ca3bc>] setup_frametable_mappings+0xa4/0x108 (LR)
(XEN)    [<00000000002ca3bc>] setup_frametable_mappings+0xa4/0x108
(XEN)    [<00000000002cb988>] start_xen+0x344/0xbcc
(XEN)    [<00000000002001c0>] arm64/head.o#primary_switched+0x10/0x30
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Xen BUG at page_alloc.c:432
(XEN) ****************************************

We can continue our discussion from here. Thanks ^^

Kind regards,


> Cheers,
> --
> Julien Grall



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.