From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shannon Zhao Subject: Re: Design doc of adding ACPI support for arm64 on Xen - version 2 Date: Wed, 12 Aug 2015 15:22:04 +0800 Message-ID: <55CAF41C.1090208@huawei.com> References: <55C413D5.7000709@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <55C413D5.7000709@huawei.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel , Jan Beulich , Stefano Stabellini , Ian Campbell , Julien Grall , Parth Dixit , Christoffer Dall , Shannon Zhao Cc: Hangaohuai , "Huangpeng (Peter)" List-Id: xen-devel@lists.xenproject.org Hi, I'm working on re-spinning this patchset while encountering a werid problem about xzalloc_bytes. Since I need to copy some ACPI tables, I need to allocate some memory for it. So there are a few places calling xzalloc_bytes. And it fails at the fifth one. The log is shown as following: (XEN) *** LOADING DOMAIN 0 *** (XEN) Loading kernel from boot module @ 00000008fa315000 (XEN) Allocating 1:1 mappings totalling 256MB for dom0: (XEN) BANK[0] 0x00000090000000-0x000000a0000000 (256MB) (XEN) Grant table range: 0x00000087e00000-0x00000087e5b000 (XEN) Loading zImage from 00000008fa315000 to 0000000090080000-00000000909e0ec8 (XEN) Hypervisor Trap. HSR=0x96000044 EC=0x25 IL=1 Syndrome=0x44 (XEN) CPU0: Unexpected Trap: Hypervisor (XEN) ----[ Xen-4.6-unstable arm64 debug=y Not tainted ]---- (XEN) CPU: 0 (XEN) PC: 0000000000238b78 xmem_pool_alloc+0x348/0x4b0 (XEN) LR: 0000000000238960 (XEN) SP: 00000000002bf4e0 (XEN) CPSR: 20000249 MODE:64-bit EL2h (Hypervisor, handler) (XEN) Xen call trace: (XEN) [<0000000000238b78>] xmem_pool_alloc+0x348/0x4b0 (PC) (XEN) [<0000000000238960>] xmem_pool_alloc+0x130/0x4b0 (LR) (XEN) [<0000000000239100>] _xmalloc+0xf4/0x290 (XEN) [<00000000002392b0>] _xzalloc+0x14/0x38 (XEN) [<0000000000245430>] construct_dom0+0xbc0/0x14cc (XEN) [<000000000028c4c4>] start_xen+0xbf4/0xcb0 (XEN) [<000000000020060c>] paging+0x84/0xbc (XEN) (XEN) (XEN) **************************************** (XEN) Panic on CPU 0: (XEN) CPU0: Unexpected Trap: Hypervisor (XEN) (XEN) **************************************** (XEN) (XEN) Reboot in five seconds... -- Shannon