[ kvm-Bugs-2143498 ] FreeBSD fails to reboot

SourceForge.net
2008-11-02T16:04:54Z

Date: 2008-11-02 18:04

Message:
KVM-78 is affected as well.

When FreeBSD is started in verbose output mode, the following messages
appear:
First Boot:
...
ata0-master: pio=PIO4 wdma=WDMA2 udma=UDMA100 cable=80 wire
ad0: setting PIO4 on PIIX3 chip
ad0: setting WDMA2 on PIIX3 chip
ad0: 8192MB <QEMU HARDDISK 0.9.1> at ata0-master WDMA2
ad0: 16777216 sectors [16644C/16H/63S] 16 sectors/interrupt 1 depth queue
GEOM: new disk ad0
...

Warm reboot:
...
ata0: reiniting channel ..
ata0: reset tp1 mask=03 ostat0=58 ostat1=58
ata0: stat0=0x50 err=0x01 lsb=0x00 msb=0x00
ata0: stat1=0x00 err=0x01 lsb=0xff msb=0xff
ata0: reset tp2 stat0=50 stat1=00 devices=0x1<ATA_MASTER>
ata0: reinit done ..
ata0: reiniting channel ..
ata0: reset tp1 mask=03 ostat0=58 ostat1=58
ata0: stat0=0x50 err=0x01 lsb=0x00 msb=0x00
ata0: stat1=0x00 err=0x01 lsb=0xff msb=0xff
ata0: reset tp2 stat0=50 stat1=00 devices=0x1<ATA_MASTER>
ata0: reinit done ..
ata1: reiniting channel ..
ata1: reset tp1 mask=03 ostat0=58 ostat1=58
ata1: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb
ata1: stat1=0x00 err=0x01 lsb=0xff msb=0xff
ata1: reset tp2 stat0=00 stat1=00 devices=0x4<ATAPI_MASTER>
ata1: reinit done ..
ata1: reiniting channel ..
ata1: reset tp1 mask=03 ostat0=58 ostat1=58
ata1: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb
ata1: stat1=0x00 err=0x01 lsb=0xff msb=0xff
ata1: reset tp2 stat0=00 stat1=00 devices=0x4<ATAPI_MASTER>
ata1: reinit done ..
ATA PseudoRAID loaded
Trying to mount root from ufs:/dev/ad0s1a

Manual root filesystem specification:
<fstype>:<device> Mount <device> using filesystem <fstype>
eg. ufs:da0s1a
? List valid disk boot devices
<empty line> Abort manual input

mountroot>

adding -no-kvm-irqchip DOES fix this problem, -no-kvm-pit is not
sufficient.