NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/58335 (Kernel panic when shutting down a virtual machine with Virtio devices)
Hi! Thanks again.
The relevant log section is:
```
[ 67.1497876] iic0: detached
[ 67.1497876] virtio_pci_detach:388: unmap space 0xffffffff818460c0
handle 0xc040 size 64
[ 67.1497876] virtio1: detached
[ 67.1497876] uhci2: detached
[ 67.1602788] uhci1: detached
[ 67.1602788] uhci0: detached
[ 67.1602788] makphy0: detached
[ 67.1602788] wm0: detached
[ 67.1602788] virtio_pci_detach:378: unmap space 0xffffffff81846080
handle 0xffff8780a4073000 size 16384
[ 67.1602788] virtio0: detached
[ 67.1602788] pchb0: detached
[ 67.1702167] cd0: detached
[ 67.1702167] atapibus0: detached
[ 67.1702167] atabus0: detached
```
The whole thing is:
```
\\-__,------,___.
\\ __,---` NetBSD/x86 EFI Boot (x64)
\\ `---,_. Revision 1.2 (Sat Jun 29 10:16:05 UTC 2024)
\\-,_____,.---`
\\
\\
\\
> boot
21707904+795008+1302144 [967040+1416552+1038924]=0x1b44430
Loading /stand/amd64/10.99.10/modules/cd9660/cd9660.kmod
[ 1.0000000] WARNING: system needs entropy for security; see entropy(7)
[ 1.0000000] cpu_rng: rdrand/rdseed
[ 1.0000000] entropy: ready
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[ 1.0000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012,
2013,
[ 1.0000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022,
2023,
[ 1.0000000] 2024
[ 1.0000000] The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All
rights reserved.
[ 1.0000000] NetBSD 10.99.10 (GENERIC) #0: Sat Jun 29 13:49:21 CEST 2024
[ 1.0000000]
roddy@apollo:/home/roddy/src/NetBSD/obj/sys/arch/amd64/compile/GENERIC
[ 1.0000000] total memory = 2043 MB
[ 1.0000000] avail memory = 1948 MB
[ 1.0000000] WARNING: module error: module `cd9660' pushed by boot
loader already exists
[ 1.0000040] efi: systbl at pa 7f9ed018
[ 1.0000040] mainbus0 (root)
[ 1.0000040] ACPI: RSDP 0x000000007FB7D014 000024 (v02 BOCHS )
[ 1.0000040] ACPI: XSDT 0x000000007FB7C0E8 000044 (v01 BOCHS BXPC
00000001 01000013)
[ 1.0000040] ACPI: FACP 0x000000007FB79000 000074 (v01 BOCHS BXPC
00000001 BXPC 00000001)
[ 1.0000040] ACPI: DSDT 0x000000007FB7A000 001792 (v01 BOCHS BXPC
00000001 BXPC 00000001)
[ 1.0000040] ACPI: FACS 0x000000007FBDC000 000040
[ 1.0000040] ACPI: APIC 0x000000007FB78000 000090 (v01 BOCHS BXPC
00000001 BXPC 00000001)
[ 1.0000040] ACPI: WAET 0x000000007FB77000 000028 (v01 BOCHS BXPC
00000001 BXPC 00000001)
[ 1.0000040] ACPI: BGRT 0x000000007FB76000 000038 (v01 INTEL EDK2
00000002 01000013)
[ 1.0000040] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 1.0000040] ioapic0 at mainbus0 apid 0
[ 1.0000040] cpu0 at mainbus0 apid 0
[ 1.0000040] cpu0: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, id 0x906ea
[ 1.0000040] cpu0: node 0, package 0, core 0, smt 0
[ 1.0000040] cpu1 at mainbus0 apid 1
[ 1.0000040] cpu1: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, id 0x906ea
[ 1.0000040] cpu1: node 0, package 1, core 0, smt 0
[ 1.0000040] cpu2 at mainbus0 apid 2
[ 1.0000040] cpu2: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, id 0x906ea
[ 1.0000040] cpu2: node 0, package 2, core 0, smt 0
[ 1.0000040] cpu3 at mainbus0 apid 3
[ 1.0000040] cpu3: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, id 0x906ea
[ 1.0000040] cpu3: node 0, package 3, core 0, smt 0
[ 1.0000040] acpi0 at mainbus0: Intel ACPICA 20230628
[ 1.0000040] LNKS: BIOS IRQ 10 for 0.1.INTA is invalid
[ 1.0000040] acpi0: fixed power button present
[ 1.0078176] com0 at acpi0 (COM2, PNP0501-2): io 0x2f8-0x2ff irq 3
[ 1.0078176] com0: ns16550a, 16-byte FIFO
[ 1.0078176] com1 at acpi0 (COM1, PNP0501-1): io 0x3f8-0x3ff irq 4
[ 1.0078176] com1: ns16550a, 16-byte FIFO
[ 1.0078176] com1: console
[ 1.0078176] pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
[ 1.0078176] pckbc2 at acpi0 (MOU, PNP0F13) (aux port): irq 12
[ 1.0078176] fdc0 at acpi0 (FDC0, PNP0700): io 0x3f2-0x3f5,0x3f7 irq 6
drq 2
[ 1.0078176] qemufwcfg0 at acpi0 (FWCF, QEMU0002): io 0x510-0x51b
[ 1.0078176] ACPI: Enabled 2 GPEs in block 00 to 0F
[ 1.0078176] pckbd0 at pckbc1 (kbd slot)
[ 1.0078176] pckbc1: using irq 1 for kbd slot
[ 1.0078176] wskbd0 at pckbd0 mux 1
[ 1.0078176] pms0 at pckbc1 (aux slot)
[ 1.0078176] pckbc1: using irq 12 for aux slot
[ 1.0078176] wsmouse0 at pms0 mux 0
[ 1.0078176] pci0 at mainbus0 bus 0: configuration mode 1
[ 1.0078176] pchb0 at pci0 dev 0 function 0: Intel 82441FX (PMC) PCI
and Memory Controller (rev. 0x02)
[ 1.0078176] pcib0 at pci0 dev 1 function 0: Intel 82371SB (PIIX3)
PCI-ISA Bridge (rev. 0x00)
[ 1.0078176] piixide0 at pci0 dev 1 function 1: Intel 82371SB IDE
Interface (PIIX3) (rev. 0x00)
[ 1.0078176] piixide0: primary channel interrupting at ioapic0 pin 14
[ 1.0078176] atabus0 at piixide0 channel 0
[ 1.0078176] piixide0: secondary channel ignored (disabled)
[ 1.0078176] piixpm0 at pci0 dev 1 function 3: Intel 82371AB (PIIX4)
Power Management Controller (rev. 0x03)
[ 1.0078176] piixpm0: 24-bit timer
[ 1.0078176] piixpm0: interrupting at ioapic0 pin 9
[ 1.0078176] iic0 at piixpm0 port 0: I2C bus
[ 1.0078176] virtio0 at pci0 dev 2 function 0
[ 1.0078176] virtio0: Unknown device (id 16, rev. 0x01)
[ 1.0078176] virtio0: no matching child driver; not configured
[ 1.0078176] wm0 at pci0 dev 3 function 0: Intel i82540EM 1000BASE-T
Ethernet (rev. 0x03)
[ 1.0078176] wm0: interrupting at ioapic0 pin 11
[ 1.0078176] wm0: Ethernet address 52:54:00:e7:05:1f
[ 1.0078176] makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 0
[ 1.0078176] makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
1000baseT, 1000baseT-FDX, auto
[ 1.0078176] hdaudio0 at pci0 dev 4 function 0: HD Audio Controller
[ 1.0078176] hdaudio0: interrupting at msi0 vec 0
[ 1.0078176] hdaudio0: HDA ver. 1.0, OSS 4, ISS 4, BSS 0, SDO 1, 64-bit
[ 1.0078176] hdafg0 at hdaudio0: vendor 1af4 product 0022
[ 1.0078176] hdafg0: DAC00 2ch: Speaker [Jack]
[ 1.0078176] hdafg0: ADC01 2ch: Line In [Jack]
[ 1.0078176] hdafg0: 2ch/2ch 16000Hz 22050Hz 32000Hz 44100Hz 48000Hz
88200Hz 96000Hz PCM16
[ 1.0078176] audio0 at hdafg0: playback, capture, full duplex, independent
[ 1.0078176] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms)
for playback
[ 1.0078176] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms)
for recording
[ 1.0078176] spkr0 at audio0: PC Speaker (synthesized)
[ 1.0078176] wsbell at spkr0 not configured
[ 1.0078176] uhci0 at pci0 dev 5 function 0: Intel 82801I USB UHCI
Controller (rev. 0x03)
[ 1.0078176] uhci0: interrupting at ioapic0 pin 10
[ 1.0078176] usb0 at uhci0: USB revision 1.0
[ 1.0078176] uhci1 at pci0 dev 5 function 1: Intel 82801I USB UHCI
Controller (rev. 0x03)
[ 1.0078176] uhci1: interrupting at ioapic0 pin 10
[ 1.0078176] usb1 at uhci1: USB revision 1.0
[ 1.0078176] uhci2 at pci0 dev 5 function 2: Intel 82801I USB UHCI
Controller (rev. 0x03)
[ 1.0078176] uhci2: interrupting at ioapic0 pin 11
[ 1.0078176] usb2 at uhci2: USB revision 1.0
[ 1.0078176] ehci0 at pci0 dev 5 function 7: Intel 82801I USB EHCI
Controller (rev. 0x03)
[ 1.0078176] ehci0: interrupting at ioapic0 pin 11
[ 1.0078176] ehci0: 3 companion controllers, 2 ports each: uhci0 uhci1
uhci2
[ 1.0078176] ehci0: Using DMA subregion for control data structures
[ 1.0078176] usb3 at ehci0: USB revision 2.0
[ 1.0078176] virtio1 at pci0 dev 6 function 0
[ 1.0078176] virtio1: console device (id 3, rev. 0x00)
[ 1.0078176] virtio1: no matching child driver; not configured
[ 1.0078176] virtio2 at pci0 dev 7 function 0
[ 1.0078176] virtio2: memory balloon device (id 5, rev. 0x00)
[ 1.0078176] viomb0 at virtio2: features: 0x10000000<INDIRECT_DESC>
[ 1.0078176] virtio2: interrupting at ioapic0 pin 11
[ 1.0078176] isa0 at pcib0
[ 1.0078176] attimer0 at isa0 port 0x40-0x43
[ 1.0078176] pcppi0 at isa0 port 0x61
[ 1.0078176] spkr1 at pcppi0: PC Speaker
[ 1.0078176] wsbell at spkr1 not configured
[ 1.0078176] midi0 at pcppi0: PC speaker
[ 1.0078176] sysbeep0 at pcppi0
[ 1.0078176] attimer0: attached to pcppi0
[ 1.0078176] acpicpu0 at cpu0: ACPI CPU
[ 1.0078176] acpicpu1 at cpu1: ACPI CPU
[ 1.0078176] acpicpu2 at cpu2: ACPI CPU
[ 1.0078176] acpicpu3 at cpu3: ACPI CPU
[ 1.7352240] atapibus0 at atabus0: 2 targets
[ 1.7455222] cd0 at atapibus0 drive 1: <QEMU DVD-ROM, QM00002, 2.5+>
cdrom removable
[ 1.7455222] wd0 at atabus0 drive 0
[ 1.7455222] wd0: <QEMU HARDDISK>
[ 1.7455222] wd0: 20480 MB, 41610 cyl, 16 head, 63 sec, 512 bytes/sect
x 41943040 sectors
[ 1.7455222] uhub0 at usb1: NetBSD (0x0000) UHCI root hub (0x0000),
class 9/0, rev 1.00/1.00, addr 1
[ 1.7455222] uhub1 at usb2: NetBSD (0x0000) UHCI root hub (0x0000),
class 9/0, rev 1.00/1.00, addr 1
[ 1.7455222] uhub2 at usb0: NetBSD (0x0000) UHCI root hub (0x0000),
class 9/0, rev 1.00/1.00, addr 1
[ 1.7562618] uhub3 at usb3: NetBSD (0x0000) EHCI root hub (0x0000),
class 9/0, rev 2.00/1.00, addr 1
[ 1.7562618] dk0 at wd0: "EFI", 262144 blocks at 4096, type: msdos
[ 1.7562618] dk1 at wd0: "NetBSD", 16777216 blocks at 266240, type: ffs
[ 1.7562618] dk2 at wd0: "syscgd", 24895488 blocks at 17043456, type: cgd
[ 2.8876073] uhidev0 at uhub3 port 1 configuration 1 interface 0
[ 2.8989889] uhidev0: QEMU (0x0627) QEMU USB Tablet (0x0001), rev
2.00/0.00, addr 2, iclass 3/0
[ 2.9081798] ums0 at uhidev0: 3 buttons and Z dir
[ 2.9194206] wsmouse1 at ums0 mux 0
[ 2.9194206] swwdog0: software watchdog initialized
[ 2.9289156] WARNING: 2 errors while detecting hardware; check system log.
[ 2.9289156] boot device: cd0
[ 2.9389786] root on cd0a dumps on cd0b
[ 2.9389786] root file system type: cd9660
[ 2.9496680] kern.module.path=/stand/amd64/10.99.10/modules
Created tmpfs /dev (1835008 byte, 3552 inodes)
You are using a serial console, we do not know your terminal emulation.
Please select one, typical values are:
vt100
ansi
xterm
Terminal type (just hit ENTER for 'vt220'): xterm
# uname -a
NetBSD 10.99.10 NetBSD 10.99.10 (GENERIC) #0: Sat Jun 29 13:49:21 CEST
2024
roddy@apollo:/home/roddy/src/NetBSD/obj/sys/arch/amd64/compile/GENERIC amd64
# sysctl kern.detachall
kern.detachall = 0
# shutdown -p now
Shutdown NOW!
shutdown: [pid 383]
# wall: You have write permission turned off; no reply possible
wall: Cannot stat `/var/run/utmp': No such file or directory
shutdown: poweroff by root:
System shutdown time has arrived
About to run shutdown hooks...
cron not running? (check /var/run/cron.pid).
inetd not running? (check /var/run/inetd.pid).
Saved entropy to /var/db/entropy-file.
Forcibly unmounting /tmp
Forcibly unmounting /var
Forcibly unmounting /etc
Removing block-type swap devices
Sat Jun 29 18:58:06 UTC 2024
Done running shutdown hooks.
init: can't add utmpx record for `runlevel': Bad file descriptor
init: can't add utmpx record for `runlevel': Bad file descriptor
init: can't add utmpx record for `console': Bad file descriptor
[ 67.1192027] syncing disks... done
[ 67.1393798] sysbeep0: detached
[ 67.1393798] midi0: detached
[ 67.1393798] uhub2: detached
[ 67.1393798] uhub1: detached
[ 67.1393798] uhub0: detached
[ 67.1393798] dk2 at wd0 (syscgd) deleted
[ 67.1393798] dk1 at wd0 (NetBSD) deleted
[ 67.1393798] dk0 at wd0 (EFI) deleted
[ 67.1497876] wd0: detached
[ 67.1497876] usb2: detached
[ 67.1497876] usb1: detached
[ 67.1497876] usb0: detached
[ 67.1497876] iic0: detached
[ 67.1497876] virtio_pci_detach:388: unmap space 0xffffffff818460c0
handle 0xc040 size 64
[ 67.1497876] virtio1: detached
[ 67.1497876] uhci2: detached
[ 67.1602788] uhci1: detached
[ 67.1602788] uhci0: detached
[ 67.1602788] makphy0: detached
[ 67.1602788] wm0: detached
[ 67.1602788] virtio_pci_detach:378: unmap space 0xffffffff81846080
handle 0xffff8780a4073000 size 16384
[ 67.1602788] virtio0: detached
[ 67.1602788] pchb0: detached
[ 67.1702167] cd0: detached
[ 67.1702167] atapibus0: detached
[ 67.1702167] atabus0: detached
[ 67.1702167] acpi0: entering state S5
``
On 6/28/24 20:29, Taylor R Campbell wrote:
Oops, corrected patch attached -- this one should actually build.
Home |
Main Index |
Thread Index |
Old Index