Opened 13 years ago

Closed 11 years ago

Last modified 6 years ago

#8139 closed bug (invalid)

"disable local apic" option needed to boot on qemu 0.14.1

Reported by: korli Owned by: axeld
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

I tried to boot Haiku on Qemu 0.14.1 on Ubuntu 11.10. "disable local apic" is required to boot.

qemu -hda ./haiku.image -m 1024 -usb -usbdevice mouse -serial stdio -net user -net nic 
qemu: pci_add_option_rom: failed to find romfile "pxe-rtl8139.bin"
options = 0
APM version 1.2 available, flags 3.
smp: using ACPI to detect MP configuration
smp: local apic address is 0xfee00000
smp: found local APIC with id 0
smp: found io APIC with id 1 and address 0xfec00000
VESA version = 2.0, capabilities 0
OEM string: VGABIOS Cirrus extension
 0x101: 640 x 480 x 8 (a = 187, mem = 4, phy = f0000000, p = 1, b = 1)
	mask: r: 0 0 g: 0 0 b: 0 0 dcmi: 1
 0x110: 640 x 480 x 15 (a = 187, mem = 6, phy = f0000000, p = 1, b = 1)
	mask: r: 5 10 g: 5 5 b: 5 0 dcmi: 0
 0x111: 640 x 480 x 16 (a = 187, mem = 6, phy = f0000000, p = 1, b = 1)
	mask: r: 5 11 g: 6 5 b: 5 0 dcmi: 0
 0x112: 640 x 480 x 24 (a = 187, mem = 6, phy = f0000000, p = 1, b = 1)
	mask: r: 8 16 g: 8 8 b: 8 0 dcmi: 0
 0x103: 800 x 600 x 8 (a = 187, mem = 4, phy = f0000000, p = 1, b = 1)
	mask: r: 0 0 g: 0 0 b: 0 0 dcmi: 1
 0x113: 800 x 600 x 15 (a = 187, mem = 6, phy = f0000000, p = 1, b = 1)
	mask: r: 5 10 g: 5 5 b: 5 0 dcmi: 0
 0x114: 800 x 600 x 16 (a = 187, mem = 6, phy = f0000000, p = 1, b = 1)
	mask: r: 5 11 g: 6 5 b: 5 0 dcmi: 0
 0x115: 800 x 600 x 24 (a = 187, mem = 6, phy = f0000000, p = 1, b = 1)
	mask: r: 8 16 g: 8 8 b: 8 0 dcmi: 0
 0x105: 1024 x 768 x 8 (a = 187, mem = 4, phy = f0000000, p = 1, b = 1)
	mask: r: 0 0 g: 0 0 b: 0 0 dcmi: 1
 0x116: 1024 x 768 x 15 (a = 187, mem = 6, phy = f0000000, p = 1, b = 1)
	mask: r: 5 10 g: 5 5 b: 5 0 dcmi: 0
 0x117: 1024 x 768 x 16 (a = 187, mem = 6, phy = f0000000, p = 1, b = 1)
	mask: r: 5 11 g: 6 5 b: 5 0 dcmi: 0
 0x118: 1024 x 768 x 24 (a = 187, mem = 6, phy = f0000000, p = 1, b = 1)
	mask: r: 8 16 g: 8 8 b: 8 0 dcmi: 0
 0x107: 1280 x 1024 x 8 (a = 187, mem = 4, phy = f0000000, p = 1, b = 1)
	mask: r: 0 0 g: 0 0 b: 0 0 dcmi: 1
 0x119: 1280 x 1024 x 15 (a = 187, mem = 6, phy = f0000000, p = 1, b = 1)
	mask: r: 5 10 g: 5 5 b: 5 0 dcmi: 0
 0x11a: 1280 x 1024 x 16 (a = 187, mem = 6, phy = f0000000, p = 1, b = 1)
	mask: r: 5 11 g: 6 5 b: 5 0 dcmi: 0
Using mode 0x118
VESA compatible graphics!
Welcome to the Haiku boot loader!
number of drives: 2
add_partitions_for(0x001051cc, mountFS = no)
add_partitions_for(fd = 0, mountFS = no)
0x001053d8 Partition::Partition
0x001053d8 Partition::Scan()
check for partitioning_system: EFI GUID Partition Map
check for partitioning_system: Intel Partition Map
  priority: 500
check for partitioning_system: Intel Extended Partition
boot partition offset: 0
0x001053d8 Partition::_Mount check for file_system: BFS Filesystem
load kernel...
video mode: 1024x768x24
smp: found 1 cpu
smp: apic_phys = 0xfee00000
smp: ioapic_phys = 0xfec00000
smp: apic (mapped) = 0x815fc000
APIC ticks/sec = 992903184
kernel entry at 80057fa8
Welcome to kernel debugger output!
Haiku revision: hrev43285-dirty
CPU 0: type 0 family 6 extended_family 0 model 3 extended_model 0 stepping 3, string 'GenuineIntel'
CPU 0: vendor 'Intel' model name 'QEMU Virtual CPU version 0.14.1'
CPU 0: features: fpu de pse tsc msr pae mce cx8 apic pge cmov pat mmx fxsr sse sse2 sse3 hypervisor 
reserve_io_interrupt_vectors: reserved 16 vectors starting from 0
reserve_io_interrupt_vectors: reserved 2 vectors starting from 98
using 32 bit paging (PAE not needed)
mark_page_range_in_use(0x0, 0x100): start page is before free list
mark_page_range_in_use(0x0, 0xa0): start page is before free list
add_memory_type_range(4, 0x0, 0xa0000, 6)
add_memory_type_range(5, 0xe0000, 0x20000, 6)
add_memory_type_range(72, 0xf0000000, 0x240000, 0)
mapping local apic at 0x815fc000
add_memory_type_range(75, 0xfee00000, 0x1000, 0)
setting up apic for CPU 0: apic id 0, version 327700
qemu -version
QEMU emulator version 0.14.1 (qemu-kvm-0.14.1), Copyright (c) 2003-2008 Fabrice Bellard

Change History (5)

comment:1 by korli, 13 years ago

Version: R1/alpha3R1/Development

comment:2 by korli, 13 years ago

Doing tests, I noticed init_sse was called twice in spite of the system being monoprocessor in arch_smp_init_percpu() and arch_cpu_init_post_vm(). Fixing this gets us a bit farther.

comment:3 by diver, 13 years ago

Blocking: 7665 added

comment:4 by korli, 11 years ago

Resolution: invalid
Status: newclosed

I don't have this QEmu version anymore. Closing.

comment:5 by waddlesplash, 6 years ago

Blocking: 7665 removed
Note: See TracTickets for help on using tickets.