From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Christian Holpert <christian@holpert.de>
Cc: xen-devel@lists.xen.org
Subject: Re: [Xen-users] DomU sees only 512MB RAM with PCI-passthrough
Date: Tue, 28 May 2013 15:45:35 -0400 [thread overview]
Message-ID: <20130528194535.GB24701@phenom.dumpdata.com> (raw)
In-Reply-To: <E1UgYgL-0002gt-8N@smtprelay06.ispgateway.de>
On Sun, May 26, 2013 at 12:59:56PM +0200, Christian Holpert wrote:
> At 20:31 25.05.2013, Konrad Rzeszutek Wilk wrote:
> >For the earlyprintk=xen just add it along with the xencons_...
>
> I needed to recompile xen first with debug flag set. Now I get
> results from earlyprintk.
>
> Please find attached:
> xl_dmesg_512: domU (32bit) booting fine with memory = 512
> xl_dmesg_2048: domU (32bit) silently crashing with memory = 2048
> Both tests with your patch active and no other changes in between.
So with a 2048 guest it boots for me. Here is the diff between your
kernel and mine:
Reserving virtual address space above 0xf5800000 Reserving virtual address space above 0xf5800000
Initializing cgroup subsys cpuset Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu Initializing cgroup subsys cpu
Linux version 3.8.13-gentoo (root@nodi) (gcc version 4.7.3 (G | Initializing cgroup subsys cpuacct
> Linux version 3.10.0-rc3upstream-00894-g597e694 (konrad@build
ACPI in unprivileged domain disabled ACPI in unprivileged domain disabled
Freeing 20000-80000 pfn range: 393216 pages freed Freeing 20000-80000 pfn range: 393216 pages freed
Released 393216 pages of unused memory Released 393216 pages of unused memory
Set 917504 page(s) to 1-1 mapping Set 917504 page(s) to 1-1 mapping
Populating 100000-160000 pfn range: 393216 pages added Populating 100000-160000 pfn range: 393216 pages added
e820: BIOS-provided physical RAM map: e820: BIOS-provided physical RAM map:
Xen: [mem 0x0000000000000000-0x000000000009ffff] usable Xen: [mem 0x0000000000000000-0x000000000009ffff] usable
Xen: [mem 0x00000000000a0000-0x00000000000fffff] reserved Xen: [mem 0x00000000000a0000-0x00000000000fffff] reserved
Xen: [mem 0x0000000000100000-0x000000001fffffff] usable Xen: [mem 0x0000000000100000-0x000000001fffffff] usable
Xen: [mem 0x0000000020000000-0x00000000201fffff] reserved Xen: [mem 0x0000000020000000-0x00000000201fffff] reserved
Xen: [mem 0x0000000020200000-0x0000000040003fff] unusable | Xen: [mem 0x0000000020200000-0x000000003fffffff] unusable
Xen: [mem 0x0000000040004000-0x0000000040004fff] reserved | Xen: [mem 0x0000000040000000-0x00000000401fffff] reserved
Xen: [mem 0x0000000040005000-0x00000000d9cbefff] unusable | Xen: [mem 0x0000000040200000-0x00000000c6cd3fff] unusable
Xen: [mem 0x00000000d9cbf000-0x00000000da285fff] reserved | Xen: [mem 0x00000000c6cd4000-0x00000000c6d1cfff] ACPI NVS
Xen: [mem 0x00000000da286000-0x00000000da505fff] ACPI NVS | Xen: [mem 0x00000000c6d1d000-0x00000000c6d27fff] ACPI data
Xen: [mem 0x00000000da506000-0x00000000da50afff] ACPI data | Xen: [mem 0x00000000c6d28000-0x00000000c6d28fff] ACPI NVS
Xen: [mem 0x00000000da50b000-0x00000000da54dfff] ACPI NVS | Xen: [mem 0x00000000c6d29000-0x00000000c6d49fff] reserved
Xen: [mem 0x00000000da54e000-0x00000000dad55fff] unusable | Xen: [mem 0x00000000c6d4a000-0x00000000c6d4bfff] unusable
Xen: [mem 0x00000000dad56000-0x00000000daff1fff] reserved | Xen: [mem 0x00000000c6d4c000-0x00000000c6d6cfff] ACPI NVS
Xen: [mem 0x00000000daff2000-0x00000000daffffff] unusable | Xen: [mem 0x00000000c6d6d000-0x00000000c6d8ffff] reserved
Xen: [mem 0x00000000db800000-0x00000000df9fffff] reserved | Xen: [mem 0x00000000c6d90000-0x00000000c6d9cfff] ACPI NVS
Xen: [mem 0x00000000f8000000-0x00000000fbffffff] reserved | Xen: [mem 0x00000000c6d9d000-0x00000000c6d9ffff] reserved
Xen: [mem 0x00000000fec00000-0x00000000fec00fff] reserved | Xen: [mem 0x00000000c6da0000-0x00000000c6db0fff] ACPI NVS
Xen: [mem 0x00000000fed00000-0x00000000fed03fff] reserved | Xen: [mem 0x00000000c6db1000-0x00000000c6ddcfff] reserved
Xen: [mem 0x00000000fed1c000-0x00000000fed1ffff] reserved | Xen: [mem 0x00000000c6ddd000-0x00000000c6e1ffff] ACPI NVS
> Xen: [mem 0x00000000c6e20000-0x00000000c6ffffff] unusable
> Xen: [mem 0x00000000c7800000-0x00000000cf9fffff] reserved
> Xen: [mem 0x00000000fed1c000-0x00000000fed3ffff] reserved
Xen: [mem 0x00000000fee00000-0x00000000fee00fff] reserved Xen: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
Xen: [mem 0x00000000ff000000-0x00000000ffffffff] reserved Xen: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
Xen: [mem 0x0000000100000000-0x000000015fffffff] usable Xen: [mem 0x0000000100000000-0x000000015fffffff] usable
bootconsole [xenboot0] enabled <
NX (Execute Disable) protection: active NX (Execute Disable) protection: active
DMI not present or invalid. DMI not present or invalid.
e820: last_pfn = 0x160000 max_arch_pfn = 0x1000000 e820: last_pfn = 0x160000 max_arch_pfn = 0x1000000
init_memory_mapping: [mem 0x00000000-0x2d3fdfff] | Scanning 1 areas for low memory corruption
(XEN) mm.c:864:d6 Non-privileged (6) attempt to map I/O space | init_memory_mapping: [mem 0x00000000-0x000fffff]
(XEN) mm.c:5317:d6 ptwr_emulate: could not get_page_from_l1e( | init_memory_mapping: [mem 0x1fe00000-0x1fffffff]
BUG: unable to handle kernel NULL pointer dereference at (n | init_memory_mapping: [mem 0x1c000000-0x1fdfffff]
IP: [<c157fe96>] xen_set_pte_init+0x3b/0x43 | init_memory_mapping: [mem 0x00100000-0x1bffffff]
*pdpt = 0000000000000000 *pde = c2c2c2c2c2c2c2c2 | RAMDISK: [mem 0x01b51000-0x107b0fff]
Oops: 0003 [#1] SMP | 4908MB HIGHMEM available.
Modules linked in: | 723MB LOWMEM available.
Pid: 0, comm: swapper Not tainted 3.8.13-gentoo #1 | mapped low ram: 0 - 20000000
EIP: e019:[<c157fe96>] EFLAGS: 00010046 CPU: 0 | low ram: 0 - 2d3fe000
EIP is at xen_set_pte_init+0x3b/0x43 | Zone ranges:
EAX: c2380000 EBX: 00000000 ECX: 20000403 EDX: 20000403 | DMA [mem 0x00001000-0x00ffffff]
ESI: 00020001 EDI: 00000000 EBP: 20000403 ESP: c1545e18 | Normal [mem 0x01000000-0x2d3fdfff]
DS: e021 ES: e021 FS: 00d8 GS: 00e0 SS: e021 | HighMem [mem 0x2d3fe000-0x5fffffff]
CR0: 80050033 CR2: 00000000 CR3: 015ec000 CR4: 00002660 | Movable zone start for each node
DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 | Early memory node ranges
DR6: ffff0ff0 DR7: 00000400 | node 0: [mem 0x00001000-0x0009ffff]
Process swapper (pid: 0, ti=c1544000 task=c1550120 task.ti=c1 | node 0: [mem 0x00100000-0x1fffffff]
Stack: | node 0: [mem 0x00000000-0x5fffffff]
00000000 20000403 00000000 00020000 e0000000 c158f111 000000 | Using APIC driver default
c15ec018 00000003 c15ec018 00000003 20000000 00000000 0002d3 | smpboot: Allowing 4 CPUs, 0 hotplug CPUs
00000100 c2380000 00000001 00000000 fffe0000 0016d000 000000 | Local APIC disabled by BIOS -- you can enable it with "lapic"
Call Trace: | APIC: disable apic facility
[<c158f111>] ? kernel_physical_mapping_init+0x1cc/0x2a5 | APIC: switched to apic NOOP
[<c14211d9>] ? init_memory_mapping+0x1f9/0x4f0 | PM: Registered nosave memory: 00000000000a0000 - 000000000010
[<c158204d>] ? setup_arch+0x764/0xa37 | PM: Registered nosave memory: 0000000020000000 - 000000002020
[<c1431bd5>] ? printk+0x37/0x3b | PM: Registered nosave memory: 0000000020200000 - 000000004000
[<c157d6de>] ? start_kernel+0xbb/0x31b | e820: [mem 0xcfa00000-0xfed1bfff] available for PCI devices
[<c157f269>] ? xen_start_kernel+0x650/0x65a | Booting paravirtualized kernel on Xen
[<c140905e>] ? sctp_assoc_rm_peer+0xde/0x200 | Xen version: 4.3-unstable (preserve-AD)
Code: 81 e6 00 f0 ff ff 0f ac fe 0c 53 31 db 89 0c 24 31 c9 4 | setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:4 nr_nod
EIP: [<c157fe96>] xen_set_pte_init+0x3b/0x43 SS:ESP e021:c154 | PERCPU: Embedded 14 pages/cpu @dd343000 s35520 r0 d21824 u573
CR2: 0000000000000000 | Built 1 zonelists in Zone order, mobility grouping on. Total
---[ end trace a7919e7f17c0a725 ]--- | Kernel command line: console=hvc0
Kernel panic - not syncing: Attempted to kill the idle task! | PID hash table entries: 2048 (order: 1, 8192 bytes)
> Dentry cache hash table entries: 65536 (order: 6, 262144 byte
> Inode-cache hash table entries: 32768 (order: 5, 131072 bytes
> Initializing CPU#0
> xsave: enabled xstate_bv 0x7, cntxt size 0x340
> Initializing HighMem for node 0 (0002d3fe:00160000)
> Memory: 1796596k/5767168k available (5818k kernel code, 30016
> virtual kernel memory layout:
Can you try the v3.10 or v3.9 and see how it works for you?
next prev parent reply other threads:[~2013-05-28 19:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <50C9C725.9060809@citrix.com>
[not found] ` <20121219173838.GC25471@phenom.dumpdata.com>
[not found] ` <E1TlR48-0008MI-N7@smtprelay05.ispgateway.de>
[not found] ` <20121219222624.GA12842@phenom.dumpdata.com>
[not found] ` <E1TlfQZ-0004aC-6k@smtprelay03.ispgateway.de>
[not found] ` <20130522210618.GA13319@phenom.dumpdata.com>
[not found] ` <20130522211537.GA13471@phenom.dumpdata.com>
[not found] ` <20130522211752.GB13471@phenom.dumpdata.com>
[not found] ` <20130524133859.GA3665@phenom.dumpdata.com>
[not found] ` <519F89BB.3020709@holpert.de>
2013-05-25 11:13 ` [Xen-users] DomU sees only 512MB RAM with PCI-passthrough Konrad Rzeszutek Wilk
2013-05-25 15:18 ` Christian Holpert
2013-05-25 18:31 ` Konrad Rzeszutek Wilk
2013-05-26 10:59 ` Christian Holpert
2013-05-28 19:38 ` Konrad Rzeszutek Wilk
2013-05-29 12:08 ` Christian Holpert
2013-05-28 19:45 ` Konrad Rzeszutek Wilk [this message]
2013-05-29 15:23 ` Christian Holpert
2013-05-29 17:05 ` Konrad Rzeszutek Wilk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130528194535.GB24701@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=christian@holpert.de \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.