Re: [RFC/PATCH 1/2] kvm tools, seabios: Add "--bios" option to "vm run"

Pekka Enberg
2012-02-24T19:01:04Z

On Fri, Feb 24, 2012 at 8:54 PM, Pekka Enberg <penberg@kernel.org> wrote:
> I played around with the "--debug-ioport" command line option and was able
> to cheat my way past SeaBIOS POST phase. Should SeaBIOS automatically pick
> up virtio devices and attempt to boot them?

Aah, I guess we need to implement proper support for QEMU BIOS config
port ("0x510") because the dummy port is accidentally asking for a
boot menu.

If I disable boot menu support from SeaBIOS, I'm now seeing this PCI
"out of address space" error which I suppose is what Ron and John were
talking about earlier:

[penberg@tux kvm]$ ./vm run --firmware
/home/penberg/seabios/out/bios.bin -d
~/images/debian_lenny_amd64_standard.qcow2 --debug-ioport
Warning: Forcing read-only support for QCOW
# lkvm run -k ../../arch/x86/boot/bzImage -m 448 -c 4 --name guest-12176
Start bios (version pre-1.6.4-20120224_205725-tux)
enabling shadow ram
Unable to unlock ram - bridge not found
qemu_cfg_present=0
Find memory size
Add to e820 map: 00000000 00100000 1
Add to e820 map: 00000000 00000000 1
Add to e820 map: fffc0000 00040000 2
Add to e820 map: 000a0000 00050000 -1
Add to e820 map: 000f0000 00010000 2
Add to e820 map: fffbc000 00004000 2
Ram Size=0x00100000 (0x0000000000000000 high)
malloc setup
pmm_malloc zone=0x000f0060 handle=ffffffff size=51132 align=10
ret=0x00083780 (detail=0x0008ff40)
Relocating init from 0x000e3950 to 0x00083780 (size 51132)
malloc fixup reloc
init ivt
init bda
Add to e820 map: 0009fc00 00000400 2
init pic
init timer
tsc calibrate start=25589844 end=25596132 diff=6288
CPU Mhz=3
math cp init
init mtrr
pci setup
=== PCI bus & bridge init ===
PCI: pci_bios_init_bus_rec bus = 0x0
=== PCI device probing ===
PCI probe
pmm_malloc zone=0x0008fe90 handle=ffffffff size=112 align=10
ret=0x000836b0 (detail=0x00083720)
PCI device 00:01.0 (vd=1af4:1001 c=0180)
pmm_malloc zone=0x0008fe90 handle=ffffffff size=112 align=10
ret=0x00083610 (detail=0x00083680)
PCI device 00:02.0 (vd=1af4:1000 c=0200)
Found 2 PCI devices (max PCI bus is 00)
=== PCI new allocation pass #1 ===
pmm_malloc zone=0x0008fe90 handle=ffffffff size=532 align=10
ret=0x000833c0 (detail=0x000835e0)
PCI: check devices
PCI: out of address space

Pekka