Hardcoding vbd

  • From: Andrew Stuart <andrew.stuart@xxxxxxxxxxxxxxxxxx>
  • To: Antti Kantee <pooka@xxxxxx>
  • Date: Wed, 17 Jun 2015 10:41:57 +1000

Sorry Antti can I trouble you to suggest what the hardcoding should look like
for setting the devnum? I had a go but I’m not yet confident with C - my code
seemed to set devnum to the same thing three times.

Also I’m a little concerned ahout this mesaage in the log below, is it
important?
============= Init TPM Front ================
Tpmfront:Error Unable to read device/vtpm/0/backend-id during tpmfront
initialization! error = ENOENT
Tpmfront:Info Shutting down tpmfront
close blk: backend=/local/domain/0/backend/vbd/7457/2049 node=device/vbd/2049
close blk: backend=/local/domain/0/backend/vbd/7457/2128 node=device/vbd/2128

This is the startup log using the very latest rumprun from git:


Xen Minimal OS!
start_info: 0xae2000(VA)
nr_pages: 0x26700
shared_inf: 0x7e073000(MA)
pt_base: 0xae5000(VA)
nr_pt_frames: 0x9
mfn_list: 0x9ae000(VA)
mod_start: 0x0(VA)
mod_len: 0
flags: 0x0
cmd_line: root=/dev/sda1 ro 4
stack: 0x96d840-0x98d840
MM: Init
_text: 0x0(VA)
_etext: 0x7dc7d(VA)
_erodata: 0x9a000(VA)
_edata: 0x9fce0(VA)
stack start: 0x96d840(VA)
_end: 0x9ade40(VA)
start_pfn: af1
max_pfn: 26700
Mapping memory range 0xc00000 - 0x26700000
setting 0x0-0x9a000 readonly
skipped 0x1000
MM: Initialise page allocator for c1f000(c1f000)-26700000(26700000)
MM: done
Demand map pfns at 26701000-2026701000.
Heap resides at 2026702000-4026702000.
Initialising timer interface
Initialising console ... done.
gnttab_table mapped at 0x26701000.
Initialising scheduler
Thread "Idle": pointer: 0x2026702050, stack: 0x26660000
Thread "xenstore": pointer: 0x2026702800, stack: 0x26670000
xenbus initialised on irq 1 mfn 0x9ef160
Thread "shutdown": pointer: 0x2026702fb0, stack: 0x26680000
Dummy main: start_info=0x98d940
Thread "main": pointer: 0x2026703760, stack: 0x26690000
"main" "root=/dev/sda1" "ro" "4"
vbd 2049 is hd0
******************* BLKFRONT for device/vbd/2049 **********


backend at /local/domain/0/backend/vbd/7457/2049
Failed to read /local/domain/0/backend/vbd/7457/2049/feature-barrier.
Failed to read /local/domain/0/backend/vbd/7457/2049/feature-flush-cache.
2097152 sectors of 512 bytes
**************************
vbd 2128 is hd1
******************* BLKFRONT for device/vbd/2128 **********


backend at /local/domain/0/backend/vbd/7457/2128
Failed to read /local/domain/0/backend/vbd/7457/2128/feature-barrier.
Failed to read /local/domain/0/backend/vbd/7457/2128/feature-flush-cache.
2097152 sectors of 512 bytes
**************************


GNU GRUB version 0.97 (629760K lower / 0K upper memory)



+-------------------------------------------------------------------------+||||||||||||||||||||||||+-------------------------------------------------------------------------+

Use the ^ and v keys to select which entry is highlighted.

Press enter to boot the selected OS, 'e' to edit the

commands before booting, or 'c' for a command-line. 
Rump













  The highlighted entry will be
booted automatically in 1 seconds.  Booting 'Rump'



root (hd0)

Filesystem type is ext2fs, using whole disk

kernel /boot/rump-os.gz



============= Init TPM Front ================
Tpmfront:Error Unable to read device/vtpm/0/backend-id during tpmfront
initialization! error = ENOENT
Tpmfront:Info Shutting down tpmfront
close blk: backend=/local/domain/0/backend/vbd/7457/2049 node=device/vbd/2049
close blk: backend=/local/domain/0/backend/vbd/7457/2128 node=device/vbd/2128
start_info: 0x6e5000(VA)
nr_pages: 0x26700
shared_inf: 0x7e073000(MA)
pt_base: 0x6e8000(VA)
nr_pt_frames: 0x7
mfn_list: 0x5b1000(VA)
mod_start: 0x0(VA)
mod_len: 0
flags: 0x0
cmd_line:
stack: 0x5169e0-0x5969e0
MM: Init
_text: 0x0(VA)
_etext: 0x286bd4(VA)
_erodata: 0x375000(VA)
_edata: 0x38fb20(VA)
stack start: 0x5169e0(VA)
_end: 0x5b0d20(VA)
start_pfn: 6f2
max_pfn: 26700
Mapping memory range 0x800000 - 0x26700000
setting 0x0-0x375000 readonly
skipped 0x1000
MM: Initialise page allocator for 822000(822000)-26700000(26700000)
MM: done
Demand map pfns at 26701000-2026701000.
Initialising timer interface
Initialising console ... done.
gnttab_table mapped at 0x26701000.
xenbus initialised on irq 1 mfn 0x9ef160
Failed to read device/pci/0/backend-id.
no backend
using hardcoded_jsoncfg
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.

NetBSD 7.99.17 (RUMP-ROAST)
total memory = 303 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
cpu0 at thinair0: rump virtual cpu
root file system type: rumpfs
kern.module.path=/stand/amd64/7.99.17/modules
mainbus0 (root)
pci0 at mainbus0 bus 0
pci0: memory space enabled, rd/line, rd/mult, wr/inv ok
timecounter: Timecounter "rumpxen" frequency 1000000000 Hz quality 100
mounted tmpfs on /tmp
net TX ring size 256
net RX ring size 256
netfront: node=device/vif/0 backend=/local/domain/0/backend/vif/7457/0
netfront: MAC 22:00:0A:C5:5E:85
xenif0: Ethernet address 22:00:0a:c5:5e:85
dhcp: xenif0: adding IP address 10.197.94.133/26
dhcp: xenif0: adding route to 10.197.94.128/26
dhcp: xenif0: adding default route via 10.197.94.129
lease time: 86400 seconds
unsupported devtype blk0
rumprun: etfs register for "blk0" failed: 6

=== ERROR: _exit(1) called ===
panic: releasing non-pertinent lwp
rump kernel halting...
halted
PANIC: rumpuser panic
port 4 still bound!
minios: halting, reason=0


Other related posts: