2.6.11-xen-sparse: missing CONFIG_SMP in pgtable-2level
PATCH 1/1 2.6.11-xen-sparse: missing CONFIG_SMP in pgtable-2level
The latest (20050322) xen-unstable fails to boot dom0 when CONFIG_SMP is enabled. The last working snapshot was from 2005-03-18. I traced the problem to a dropped #ifdef CONFIG_SMP in pgtable-2level.h
I've attached a debug trace of dom0 dying without the patch applied.
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253 T/L: 678-9253
[email protected]
diffstat output:
pgtable-2level.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletion(-)
---
linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/pgtable-2level.h +6 -1
@@ -13,8 +13,13 @@* within a page table are directly modified. Thus, the following * hook is made available. */ +#ifdef CONFIG_SMP +#define set_pte (pteptr, pteval) xen_l1_entry_update(pteptr, (pteval).pte_low) +#else #define set_pte (pteptr, pteval) (*(pteptr) = pteval) -#define set_pte_atomic (pteptr, pteval) set_pte(pteptr,pteval) +#endif + +#define set_pte_atomic (pteptr, pteval) set_pte(pteptr, pteval)#define set_pmd (pmdptr, pmdval) xen_l2_entry_update((pmdptr), (pmdval))#define set_pte_batched (pteptr, pteval) \ queue_l1_entry_update(pteptr, (pteval).pte_low)
__ __ _____ ___ _ _
\ \/ /___ _ __ |___ / / _ \ __| | _____ _____| | \ // _ \ '_ \ |_ \| | | |__ / _` |/ _ \ \ / / _ \ | / \ __/ | | | ___) | |_| |__| (_| | __/\ V / __/ | /_/\_\___|_| |_| |____(_)___/ \__,_|\___| \_/ \___|_|
http://www.cl.cam.ac.uk/netos/xen
University of Cambridge Computer Laboratory
Xen version 3.0-devel (rharper@localdomain) (gcc version 3.3.5 (Debian 1:3.3.5-5)) Tue Mar 22 13:27:26 CST 2005 Latest ChangeSet: information unavailable
(XEN) Physical RAM map:
(XEN) 0000000000000000 - 000000000009dc00 (usable) (XEN) 000000000009dc00 - 00000000000a0000 (reserved) (XEN) 00000000000e0000 - 0000000000100000 (reserved) (XEN) 0000000000100000 - 0000000037fed140 (usable) (XEN) 0000000037fed140 - 0000000037ff0000 (ACPI data) (XEN) 0000000037ff0000 - 0000000038000000 (reserved) (XEN) 00000000fec00000 - 0000000100000000 (reserved)
(XEN) System RAM: 895MB (917032kB)
(XEN) Xen heap: 10MB (10636kB)
(XEN) CPU0: Before vendor init, caps: 0383fbff 00000000 00000000, vendor = 0 (XEN) CPU caps: 0383fbff 00000000 00000000 00000000
(XEN) found SMP MP-table at 0009ddd0
(XEN) ACPI: RSDP (v000 IBM ) @ 0x000fdfd0
(XEN) ACPI: RSDT (v001 IBM SERTOPAZ 0x00001000 IBM 0x45444f43) @ 0x37feff80 (XEN) ACPI: FADT (v001 IBM SERTOPAZ 0x00001000 IBM 0x45444f43) @ 0x37feff00 (XEN) ACPI: MADT (v001 IBM SERTOPAZ 0x00001000 IBM 0x45444f43) @ 0x37fefe80 (XEN) ACPI: DSDT (v001 IBM SERTOPAZ 0x00001000 MSFT 0x0100000b) @ 0x00000000
(XEN) ACPI: Local APIC address 0xfee00000
(XEN) ACPI: LAPIC (acpi_id[0x00] lapic_id[0x03] enabled)
(XEN) Processor #3 Pentium(tm) Pro APIC version 17
(XEN) ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
(XEN) Processor #0 Pentium(tm) Pro APIC version 17
(XEN) Using ACPI for processor (LAPIC) configuration information (XEN) Intel MultiProcessor Specification v1.4
(XEN) Virtual Wire compatibility mode.
(XEN) OEM ID: IBM ENSW Product ID: xSeries 220 APIC at: 0xFEE00000 (XEN) I/O APIC #14 Version 17 at 0xFEC00000.
(XEN) I/O APIC #13 Version 17 at 0xFEC01000.
(XEN) Enabling APIC mode: Flat. Using 2 I/O APICs
(XEN) Processors: 2
(XEN) Using scheduler: Borrowed Virtual Time (bvt)
(XEN) Initializing CPU#0
(XEN) Detected 866.321 MHz processor.
(XEN) CPU0: Before vendor init, caps: 0383fbff 00000000 00000000, vendor = 0 (XEN) CPU caps: 0383fbff 00000000 00000000 00000000
(XEN) CPU0 booted
(XEN) enabled ExtINT on CPU#0
(XEN) ESR value before enabling vector: 00000000
(XEN) ESR value after enabling vector: 00000000
(XEN) Booting processor 1/0 eip 90000
(XEN) Initializing CPU#1
(XEN) masked ExtINT on CPU#1
(XEN) ESR value before enabling vector: 00000000
(XEN) ESR value after enabling vector: 00000000
(XEN) CPU1: Before vendor init, caps: 0383fbff 00000000 00000000, vendor = 0 (XEN) CPU caps: 0383fbff 00000000 00000000 00000000
(XEN) CPU1 has booted.
(XEN) Total of 2 processors activated.
(XEN) ENABLING IO-APIC IRQs
(XEN) Setting 14 in the phys_id_present_map
(XEN) ...changing IO-APIC physical APIC ID to 14 ... ok.
(XEN) Setting 13 in the phys_id_present_map
(XEN) ...changing IO-APIC physical APIC ID to 13 ... ok.
(XEN) init IO_APIC IRQs
(XEN) vector_irq[49] = 1
(XEN) vector_irq[51] = 3
(XEN) vector_irq[59] = 4
(XEN) vector_irq[61] = 6
(XEN) vector_irq[69] = 7
(XEN) vector_irq[71] = 8
(XEN) vector_irq[79] = 10
(XEN) vector_irq[81] = 12
(XEN) vector_irq[89] = 13
(XEN) vector_irq[91] = 14
(XEN) vector_irq[99] = 27
(XEN) vector_irq[a1] = 28
(XEN) ..TIMER: vector=0x41 pin1=2 pin2=-1
(XEN) ..MP-BIOS bug: 8254 timer not connected to IO-APIC
(XEN) ...trying to set up timer (IRQ0) through the 8259A ... failed. (XEN) ...trying to set up timer as Virtual Wire IRQ... works. (XEN) number of MP IRQ sources: 13.
(XEN) number of IO-APIC #14 registers: 16.
(XEN) number of IO-APIC #13 registers: 16.
(XEN) testing the IO APIC.......................
(XEN)
(XEN) IO APIC #14......
(XEN) .... register #00: 0E000000
(XEN) ....... : physical APIC id: 0E (XEN) ....... : Delivery Type: 0 (XEN) ....... : LTS : 0 (XEN) .... register #01: 000F0011 (XEN) ....... : max redirection entries: 000F (XEN) ....... : PRQ implemented: 0 (XEN) ....... : IO APIC version: 0011 (XEN) .... register #02: 0E000000 (XEN) ....... : arbitration: 0E (XEN) .... IRQ redirection table: (XEN) NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect: (XEN) 00 000 00 1 0 0 0 0 0 0 00 (XEN) 01 003 03 0 0 0 0 0 1 1 49 (XEN) 02 000 00 1 0 0 0 0 0 0 00 (XEN) 03 003 03 0 0 0 0 0 1 1 51 (XEN) 04 003 03 0 0 0 0 0 1 1 59 (XEN) 05 000 00 1 0 0 0 0 0 0 00 (XEN) 06 003 03 0 0 0 0 0 1 1 61 (XEN) 07 003 03 0 0 0 0 0 1 1 69 (XEN) 08 003 03 0 0 0 0 0 1 1 71 (XEN) 09 000 00 1 0 0 0 0 0 0 00 (XEN) 0a 003 03 1 1 0 1 0 1 1 79 (XEN) 0b 000 00 1 0 0 0 0 0 0 00 (XEN) 0c 003 03 0 0 0 0 0 1 1 81 (XEN) 0d 003 03 0 0 0 0 0 1 1 89 (XEN) 0e 003 03 0 0 0 0 0 1 1 91 (XEN) 0f 000 00 1 0 0 0 0 0 0 00 (XEN) (XEN) IO APIC #13...... (XEN) .... register #00: 0D000000 (XEN) ....... : physical APIC id: 0D (XEN) ....... : Delivery Type: 0 (XEN) ....... : LTS : 0 (XEN) .... register #01: 000F0011 (XEN) ....... : max redirection entries: 000F (XEN) ....... : PRQ implemented: 0 (XEN) ....... : IO APIC version: 0011 (XEN) .... register #02: 0D000000 (XEN) ....... : arbitration: 0D (XEN) .... IRQ redirection table: (XEN) NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect: (XEN) 00 000 00 1 0 0 0 0 0 0 00 (XEN) 01 000 00 1 0 0 0 0 0 0 00 (XEN) 02 000 00 1 0 0 0 0 0 0 00 (XEN) 03 000 00 1 0 0 0 0 0 0 00 (XEN) 04 0D3 03 1 0 0 0 0 1 2 55 (XEN) 05 000 00 1 0 0 0 0 0 0 00 (XEN) 06 0F6 06 1 0 0 0 0 0 2 08 (XEN) 07 0D3 03 1 0 0 0 0 0 2 EA (XEN) 08 000 00 1 0 0 0 0 0 0 00 (XEN) 09 000 00 1 0 0 0 0 0 0 00 (XEN) 0a 000 00 1 0 0 0 0 0 0 00 (XEN) 0b 003 03 1 1 0 1 0 1 1 99 (XEN) 0c 003 03 1 1 0 1 0 1 1 A1 (XEN) 0d 000 00 1 0 0 0 0 0 0 00 (XEN) 0e 000 00 1 0 0 0 0 0 0 00 (XEN) 0f 000 00 1 0 0 0 0 0 0 00
(XEN) IRQ to pin mappings:
(XEN) IRQ0 -> 0:2
(XEN) IRQ1 -> 0:1
(XEN) IRQ3 -> 0:3
(XEN) IRQ4 -> 0:4
(XEN) IRQ6 -> 0:6
(XEN) IRQ7 -> 0:7
(XEN) IRQ8 -> 0:8
(XEN) IRQ10 -> 0:10
(XEN) IRQ12 -> 0:12
(XEN) IRQ13 -> 0:13
(XEN) IRQ14 -> 0:14
(XEN) IRQ27 -> 1:11
(XEN) IRQ28 -> 1:12
(XEN) .................................... done. (XEN) Using local APIC timer interrupts.
(XEN) Calibrating APIC timer for CPU0...
(XEN) ..... CPU speed is 866.2623 MHz.
(XEN) ..... Bus speed is 133.2710 MHz.
(XEN) ..... bus_scale = 0x0000887A
(XEN) checking TSC synchronization across CPUs: passed. (XEN) Time init:
(XEN) .... System Time: 12750012ns
(XEN) .... cpu_freq: 00000000:33A3063C (XEN) .... scale: 00000001:27808C52 (XEN) .... Wall Clock: 1111521305s 550000us
(XEN) PCI: PCI BIOS revision 2.10 entry at 0xfd5dc, last bus=1
(XEN) PCI: Using configuration type 1
(XEN) PCI: Probing PCI hardware
(XEN) PCI: Probing PCI hardware (bus 00)
(XEN) PCI: Discovered peer bus 01
(XEN) PCI->APIC IRQ transform: (B0,I2,P0) -> 27
(XEN) PCI->APIC IRQ transform: (B0,I15,P0) -> 10
(XEN) PCI->APIC IRQ transform: (B1,I3,P0) -> 28
(XEN) mtrr: v2.0 (20020519)
(XEN) (file=grant_table.c, line=1067) Grant table init
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Xen-ELF header found: 'GUEST_OS=linux,GUEST_VER=2.6,XEN_VER=3.0,VIRT_BASE=0xC0000000,LOADER=generic,PT_MODE_WRITABLE' (XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN) Loaded kernel: c0100000->c054e4e4 (XEN) Init. ramdisk: c054f000->c054f000 (XEN) Phys-Mach map: c054f000->c05cf000 (XEN) Page tables: c05cf000->c05d2000 (XEN) Start info: c05d2000->c05d3000 (XEN) Boot stack: c05d3000->c05d4000 (XEN) TOTAL: c0000000->c0800000 (XEN) ENTRY ADDRESS: c0100000
(XEN) Give DOM0 read access to all PCI devices
(XEN) Scrubbing Free RAM: .........done.
(XEN) *** Serial input -> DOM0 (type 'CTRL-x' three times to switch input to Xen).
Linux version 2.6.11-xen0-smp (rharper@frylock) (gcc version 3.3.5 (Debian 1:3.3.5-5)) #1 SMP Tue Mar 22 13:32:54 CST 2005 BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000020000000 (usable)
512MB LOWMEM available.
DMI 2.3 present.
IRQ lockup detection disabled
Allocating PCI resources starting at 20000000 (gap: 20000000:e0000000)
Built 1 zonelists
Kernel command line: root=/dev/sda2 ro console=tty0
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 65536 bytes)
Xen reported: 866.321 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 513408k/524288k available (2844k kernel code, 10692k reserved, 980k data, 348k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok.
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... disabled
CPU0: Intel Pentium III (Coppermine) stepping 06
per-CPU timeslice cutoff: 731.68 usecs.
task migration cache decay timeout: 1 msecs.
Booting processor 1/1 eip c0100010
Initializing CPU#1
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU1: Intel Pentium III (Coppermine) stepping 06
Total of 2 processors activated (3460.30 BogoMIPS).
Brought up 2 CPUs
NET: Registered protocol family 16
PCI: Using configuration type Xenxen_mem: Initialising balloon driver.
SCSI subsystem initialized
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Probing PCI hardware (bus 01)
PCI: Probing PCI hardware
IA-32 Microcode Update Driver: v1.14-xen <[email protected]>
Initializing Cryptographic API
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
Floppy drive(s): fd0 is 1.44M
FDC 0 is a National Semiconductor PC87306
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
HP CISS Driver (v 2.6.4)
Intel(R) PRO/1000 Network Driver - version 5.6.10.1-k2
Copyright (c) 1999-2004 Intel Corporation.
pcnet32.c:v1.30i 06.28.2004 [email protected]
e100: Intel(R) PRO/100 Network Driver, 3.3.6-k2-NAPI
e100: Copyright(c) 1999-2004 Intel Corporation
PCI: Obtained IRQ 27 for device 0000:00:02.0
e100: eth0: e100_probe: addr 0xfeb7f000, irq 27, MAC addr 00:02:55:C8:07:57
Xen virtual console successfully installed as ttyS
Event-channel device installed.
Initialising Xen netif backend
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SvrWks OSB4: IDE controller at PCI slot 0000:00:0f.1
SvrWks OSB4: chipset revision 0
SvrWks OSB4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x0700-0x0707, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0x0708-0x070f, BIOS settings: hdc:pio, hdd:piohda: LTN485S, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: ATAPI 48X CD-ROM drive, 120kB Cache, (U)DMA Uniform CD-ROM driver Revision: 3.20
PCI: Obtained IRQ 28 for device 0000:01:03.0
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
<Adaptec aic7892 Ultra160 SCSI adapter>
aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
(scsi0:A:6): 80.000MB/s transfers (40.000MHz, offset 63, 16bit)
Vendor: IBM-PSG Model: DDYS-T36950N M Rev: S9HA
Type: Direct-Access ANSI SCSI revision: 03
scsi0:A:6:0: Tagged Queuing enabled. Depth 32
Red Hat/Adaptec aacraid driver (1.1.2-lk2 Mar 22 2005)
3ware Storage Controller device driver for Linux v1.26.02.000.
SCSI device sda: 71096640 512-byte hdwr sectors (36401 MB)
SCSI device sda: drive cache: write through
SCSI device sda: 71096640 512-byte hdwr sectors (36401 MB)
SCSI device sda: drive cache: write through
sda: sda1 sda2
Attached scsi disk sda at scsi0, channel 0, id 6, lun 0
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard on isa0060/serio0
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: automatically using best checksumming function: pIII_sse
(XEN) *** Serial input -> Xen (type 'CTRL-x' three times to switch input to DOM0). (XEN) 'h' pressed -> showing installed handlers
(XEN) key '%' (ascii '25') => Trap to xendbg (XEN) key 'L' (ascii '4c') => reset sched latency histogram (XEN) key 'R' (ascii '52') => reboot machine (XEN) key 'T' (ascii '54') => dump debugtrace (XEN) key 'a' (ascii '61') => dump ac_timer queues (XEN) key 'd' (ascii '64') => dump registers (XEN) key 'h' (ascii '68') => show this message (XEN) key 'l' (ascii '6c') => print sched latency histogram (XEN) key 'o' (ascii '6f') => audit domains >0 EXPERIMENTAL (XEN) key 'q' (ascii '71') => dump task queues + guest stat e
(XpEIINI) _ sskeey :' 1r2' 1(a5sc7i91i. '6720'0 )M =B> /dusmpe rcun
rqaueiueds5:
using function: pIII_sse (1215791.600 MB/sec)
md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27
device-mapper: 4.4.0-ioctl (2005-01-12) initialised: [email protected]
oprofile: using timer interrupt.
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 32Kbytes
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
NET: Registered protocol family 1
NET: Registered protocol family 17
Bridge firewalling registered
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 348k freed
kjournald starting. Commit interval 5 seconds
(XEN) (file=/home/rharper/work/openhype/xen/unstable/20050322/b/xen/include/asm/mm.h, line=160) Error pfn 00021e60: ed=fcff1880, sd=00000003, caf=80000000, taf=f0000000
Unable to handle kernel paging request at virtual address c007e67c printing eip: c0117bbf *pde = ma 105d0067 pa 005d0067 *pte = ma 1007e061 pa 0007e061 [<c0117c27>] change_page_attr+0x47/0x60 [<c0117d58>] kernel_map_pages+0x28/0x40 [<c013fb0a>] prep_new_page+0x7a/0x90 [<c013ffdf>] buffered_rmqueue+0x15f/0x270 [<c01452cf>] cache_alloc_debugcheck_after+0x6f/0x1b0 [<c014059a>] __alloc_pages+0x3fa/0x420 [<c014ce60>] do_anonymous_page+0xf0/0x200 [<c0116193>] _flush_page_update_queue+0x23/0xa0 [<c014cfd4>] do_no_page+0x64/0x390 [<c01437dd>] check_poison_obj+0x2d/0x1f0 [<c014d506>] handle_mm_fault+0xf6/0x1d0 [<c01154cc>] do_page_fault+0x19c/0x6c8 [<c0112967>] old_mmap+0xd7/0x110 [<c012e14b>] sys_newuname+0x3b/0x70 [<c010a05a>] page_fault+0x4e/0x54 Oops: 0003 [#1] PREEMPT SMP DEBUG_PAGEALLOC Modules linked in: CPU: 0 EIP: 0061:[<c0117bbf>] Not tainted VLI EFLAGS: 00010206 (2.6.11-xen0-smp)
EIP is at __change_page_attr+0x20f/0x230
eax: 21e60063 ebx: c1000fc0 ecx: 00000063 edx: 0001e19f
esi: c007e67c edi: c1000000 ebp: 00000063 esp: de281d88
ds: 0069 es: 0069 ss: 0069
Process default.hotplug (pid: 805, threadinfo=de280000 task=de23baf0)
Stack: de19f000 00000000 80052c00 de19f000 c13c33e0 00000000 00000000 00000000
c0117c27 c13c33e0 00000063 c13c33e0 00000000 00000001 c043e320 c0117d58
c13c33e0 00000001 00000063 c013fb0a c13c33e0 00000001 00000001 00000030
Call Trace:
[<c0117c27>] change_page_attr+0x47/0x60
[<c0117d58>] kernel_map_pages+0x28/0x40
[<c013fb0a>] prep_new_page+0x7a/0x90
[<c013ffdf>] buffered_rmqueue+0x15f/0x270
[<c01452cf>] cache_alloc_debugcheck_after+0x6f/0x1b0
[<c014059a>] __alloc_pages+0x3fa/0x420
[<c014ce60>] do_anonymous_page+0xf0/0x200
[<c0116193>] _flush_page_update_queue+0x23/0xa0
[<c014cfd4>] do_no_page+0x64/0x390
[<c01437dd>] check_poison_obj+0x2d/0x1f0
[<c014d506>] handle_mm_fault+0xf6/0x1d0
[<c01154cc>] do_page_fault+0x19c/0x6c8
[<c0112967>] old_mmap+0xd7/0x110
[<c012e14b>] sys_newuname+0x3b/0x70
[<c010a05a>] page_fault+0x4e/0x54
Code: 24 24 29 f9 c1 f9 05 c1 e1 0c 09 d1 f6 c1 01 89 c8 74 18 a1 00 a8 51 c0 89 ca c1 ea 0c 81 e1 ff 0f 00 00 8b 04 90 c1 e0 0c 09 c8 <89> 06 f0 ff 4b 04 e9 85 fe ff ff 8d b6 00 00 00 00 0f 0b e9 78
<6>note: default.hotplug[805] exited with preempt_count 1I was experiencing a similar boot crash on my p4 HT enabled kernel, and the patch below fixed my problem. Good job Ryan!
Thanks,
Jon
Quoted 31 lines · Ryan Harper
The latest (20050322) xen-unstable fails to boot dom0 when
CONFIG_SMPis enabled. The last working snapshot was from 2005-03-18. I traced the problem to a dropped #ifdefCONFIG_SMPinpgtable-2level.hI've attached a debug trace of dom0 dying without the patch applied.
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253 T/L: 678-9253
[email protected]diffstat output:
pgtable-2level.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletion(-)Signed-off-by Ryan Harper <[email protected]>---
---a/linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/pgtable-2level.h2005-03 -21 22:39:28.000000000 -0600 +++b/linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/pgtable-2level.h2005-03 -22 15:55:40.000000000 -0600 @@ -13,8 +13,13 @@
* within a page table are directly modified. Thus, the following
* hook is made available.
*/(quoted diff) +2
-0+#ifdef CONFIG_SMP +#define set_pte(pteptr, pteval) xen_l1_entry_update(pteptr,(pteval).pte_low) +#else
#defineset_pte(pteptr, pteval)(*(pteptr) = pteval)
linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/pgtable-2level.h line 25
Quoted 7 lines
linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/pgtable-2level.h +3
-1-#define set_pte_atomic (pteptr, pteval) set_pte(pteptr,pteval) +#endif + +#define set_pte_atomic (pteptr, pteval) set_pte(pteptr, pteval)#define set_pmd (pmdptr, pmdval) xen_l2_entry_update((pmdptr), (pmdval))#define set_pte_batched (pteptr, pteval) \ queue_l1_entry_update(pteptr, (pteval).pte_low)
-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
Quoted 3 lines · Ryan Harper
The latest (20050322) xen-unstable fails to boot dom0 when
CONFIG_SMPis enabled. The last working snapshot was from 2005-03-18. I traced the problem to a dropped #ifdefCONFIG_SMPinpgtable-2level.h
This is still broken in 20050324. Any reason not to apply this patch?
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253 T/L: 678-9253
[email protected]
-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005 Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
Quoted 6 lines · Ryan Harper
Quoted 3 lines · Ryan Harper
The latest (20050322) xen-unstable fails to boot dom0 when
CONFIG_SMPis enabled. The last working snapshot was from 2005-03-18. I traced the problem to a dropped #ifdefCONFIG_SMPinpgtable-2level.hThis is still broken in 20050324. Any reason not to apply this patch?
It only fixed the symptom and not the root problem (broken TLB flushing in Xen). I've just checked in a proper fix. SMP domain0 is running okay for me now.
-- Keir
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 9 lines · Keir Fraser
Quoted 6 lines · Ryan Harper
Quoted 4 lines · Ryan Harper
The latest (20050322) xen-unstable fails to boot dom0 when
CONFIG_SMPis
enabled. The last working snapshot was from 2005-03-18. I traced the problem to a dropped #ifdefCONFIG_SMPinpgtable-2level.h
Quoted 5 lines
Quoted 1 line
This is still broken in 20050324. Any reason not to apply this patch?
It only fixed the symptom and not the root problem (broken TLB flushing in Xen). I've just checked in a proper fix. SMP domain0 is running okay for me now.
Sorry for the impatience. I'll give it a test. Thanks.
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253 T/L: 678-9253
[email protected]
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 10 lines · Ryan Harper
Quoted 9 lines · Keir Fraser
Quoted 6 lines · Ryan Harper
Quoted 4 lines · Ryan Harper
The latest (20050322) xen-unstable fails to boot dom0 when
CONFIG_SMPis
enabled. The last working snapshot was from 2005-03-18. I traced the problem to a dropped #ifdefCONFIG_SMPinpgtable-2level.h
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
This is still broken in 20050324. Any reason not to apply this patch?
It only fixed the symptom and not the root problem (broken TLB flushing in Xen). I've just checked in a proper fix. SMP domain0 is running okay for me now.
Sorry for the impatience. I'll give it a test. Thanks.
The patch works for me as well. Thanks Keir.
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253 T/L: 678-9253
[email protected]
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click