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

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 2

On 12/08/2015 08:22, Shannon Zhao wrote:

Hi Shannon,

It's not part of the design discussion and we are avoiding to mix discussion. Can you please create another thread (or at least renaming the subject)?

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:

Do you copy data in the newly allocated memory between 2 xzalloc_bytes?

The only thing I have in mind based on the log below is your are overriding the metadata of the memory allocator.

(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
(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) Panic on CPU 0:
(XEN) CPU0: Unexpected Trap: Hypervisor
(XEN) ****************************************
(XEN) Reboot in five seconds...


Julien Grall

Xen-devel mailing list



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