Re: FreeBSD image hangs during boot

Aurelien Jarno
2007-10-10T13:47:11Z

Avi Kivity a écrit :
> Aurelien Jarno wrote:
>> Avi Kivity a écrit :
>>
>>> Aurelien Jarno wrote:
>>>
>>>>>> I also confirm that using -no-acpi fixes the problem. However, I have
>>>>>> seen strange data corruption, even on Intel.
>>>>>>
>>>>>> Basically, booting a recently installed FreeBSD leads to the following
>>>>>> message from the bootloader: "No kernel found". And the next time, I get
>>>>>> from the *BIOS*: "Boot from Hard Disk failed: not a bootable disk".
>>>>>>
>>>>>> Looking at the disk image, the partition table (and maybe more?) has
>>>>>> disappeared. This is with a raw image disk.
>>>>>>

[snip]

>> After a few more tests, I have been able to reproduce it with the
>> current CVS version of QEMU. I conclude this is a QEMU or a BIOS
>> problem, and not a KVM one.
>>
>> Sorry for the noise.
>>
>
> Well, it still needs to be fixed. I think there's a git import of qemu
> available somewhere, that can be used for bisecting.
>

Well the IDE code hasn't changed a lot recently, so I checked the CVS
history and easily (first test) found the commit that causes the problem:

Last AIO patch, by Vladimir N. Oleynik.

http://cvs.savannah.nongnu.org/viewvc/qemu/hw/ide.c?root=qemu&r1=1.64&r2=1.65

--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org | aurelien-rXXEIb44qovR7s880joybQ@public.gmane.org
`- people.debian.org/~aurel32 | www.aurel32.net