Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD DomU (PV) hangs on Xen 4.13.1 / NetBSD 9.1



Hi Brad,

Am 22.12.2020 um 13:36 schrieb Brad Spencer:
I have always had to use the block device when presenting devices to any
sort of PV type guest.  Try /dev/zvol/dsk/...  When I attempted to use
character devices I think I had the same problem that you have.

Thanks for the hint! With this using the block device instead of the raw device:

name = "builder91"
type="pv"
kernel = "/netbsd-XEN3_DOMU.gz"
memory = 16384
vcpus = 8
vif = [ 'mac=00:16:3E:74:32:42,bridge=bridge0' ]
disk = [
   'phy:/dev/zvol/dsk/tank0/volumes/builder91,hda,rw',
]

The kernel seems to go further, but then panic into the debugger. Although it is not deterministic. I had it panic at different stages...one time it already arrived the rc.d scripts starting sshd and postfix (and then panic). So this is only one example:

[   2.0000344] xenbus: can't get state for device/suspend/event-channel (2)
[ 2.0000344] balloon0: current reservation: 4194304 pages => target: 4194304 pages
[   2.0000344] ignore shutdown request:
[   2.0000344] xenbus: can't get state for device/suspend/event-channel (2)
Tue Dec 22 16:35:05 CET 2020
Starting root file system check:
/dev/rdk0: file system is journaled; not checking
[   2.0800339] /: replaying log to disk
[   2.8500312] fatal page fault in supervisor mode
[ 2.8500312] trap type 6 code 0x2 rip 0xffffffff8022ae1a cs 0xe030 rflags 0x10286 cr2 0x20 ilevel 0x8 rsp 0xffffd602e7d3ec30 [ 2.8500312] curlwp 0xffffd6001d174040 pid 0.2 lowest kstack 0xffffd602e7d3b2c0
kernel: page fault trap, code=0
Stopped in pid 0.2 (system) at netbsd:xbd_handler+0x223: movl $0x5,20(
%r13)
xbd_handler() at netbsd:xbd_handler+0x223
xen_intr_biglock_wrapper() at netbsd:xen_intr_biglock_wrapper+0x1d
evtchn_do_event() at netbsd:evtchn_do_event+0xe8
do_hypervisor_callback() at netbsd:do_hypervisor_callback+0x161
Xhypervisor_pvhvm_callback() at netbsd:Xhypervisor_pvhvm_callback+0xa0
idle_loop() at netbsd:idle_loop+0xb6
ds          5
es          c018
fs          ec20
gs          1b84
rdi         ffffd60020c2c000
rsi         ffffd602eabe0000
rbp         ffffd602e7d3eca0
rbx         1d
rdx         230
rcx         5
rax         ffffd60020c2c910
r8          ffffffff80642780    cpu_info_primary
r9          32
r10         0
r11         246
r12         ffffd60020c2c910
r13         0
r14         40
r15         ffffd60020c2c000
rip         ffffffff8022ae1a    xbd_handler+0x223
cs          e030
rflags      10286
rsp         ffffd602e7d3ec30
ss          e02b
netbsd:xbd_handler+0x223:       movl    $0x5,20(%r13)
db{0}>

Kind regards
Matthias


Home | Main Index | Thread Index | Old Index