qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] kqemu and XP guest - lock-up at mup.sys
@ 2010-02-05  3:59 Gordan Bobic
  2010-02-05 12:14 ` [Qemu-devel] " Jan Kiszka
  0 siblings, 1 reply; 5+ messages in thread
From: Gordan Bobic @ 2010-02-05  3:59 UTC (permalink / raw)
  To: qemu-devel

Hi,

It would appear that kqemu somehow breaks the XP guest under some 
circumstances.

If I install from scratch in qemu+kqemu, it works fine in kqemu, but not 
on bare metal. The fact it doesn't work on bare metal COULD be related 
to the fact that on bare metal I'm running off a USB stick (it's a 
rescue system).

If I install onto bare metal (again, onto a USB stick - I have a 
modified installer that includes the USB disk drivers at setup stage) 
and then start up that install in qemu, that works as long as I don't 
apply kqemu. But if I modprobe kqemu and start with 
-enable-kqemu/-kernel-kqemu (-smp 1 in all cases), the quest instanty 
locks up at 100% CPU usage. Everything else about the qemu configuration 
is exactly the same between the runs. Booting the system with -no-acpi 
at this point causes it to reboot instead of just locking up.

I tried with qemu 0.10.5 (RHEL5 from atrpms) and 0.11.1 (built from 
source). kqemu I use is dkms 1.4.0pre1 from the Dag repository.

With kqemu, the guest stops booting (including safe mode) at mup.sys. 
Googling around for similar problems didn't reveal much of use (other 
than the usual Windows solution to everything of "reinstall", which 
isn't an option here because I need the same setup to work both on bare 
metal and in qemu). Is there a work-around/tweak to make this work? Is 
there any particular reason why kqemu would break things under these 
circumstances when running without kqemu works fine, if slower? Is there 
a difference in how the emulated hardware looks/behaves with and without 
kqemu?

Thanks.

Gordan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] Re: kqemu and XP guest - lock-up at mup.sys
  2010-02-05  3:59 [Qemu-devel] kqemu and XP guest - lock-up at mup.sys Gordan Bobic
@ 2010-02-05 12:14 ` Jan Kiszka
  2010-02-05 13:34   ` Gordan Bobic
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2010-02-05 12:14 UTC (permalink / raw)
  To: Gordan Bobic; +Cc: qemu-devel

Gordan Bobic wrote:
> Hi,
> 
> It would appear that kqemu somehow breaks the XP guest under some
> circumstances.
> 
> If I install from scratch in qemu+kqemu, it works fine in kqemu, but not
> on bare metal. The fact it doesn't work on bare metal COULD be related
> to the fact that on bare metal I'm running off a USB stick (it's a
> rescue system).
> 
> If I install onto bare metal (again, onto a USB stick - I have a
> modified installer that includes the USB disk drivers at setup stage)
> and then start up that install in qemu, that works as long as I don't
> apply kqemu. But if I modprobe kqemu and start with
> -enable-kqemu/-kernel-kqemu (-smp 1 in all cases), the quest instanty
> locks up at 100% CPU usage. Everything else about the qemu configuration
> is exactly the same between the runs. Booting the system with -no-acpi
> at this point causes it to reboot instead of just locking up.
> 
> I tried with qemu 0.10.5 (RHEL5 from atrpms) and 0.11.1 (built from
> source). kqemu I use is dkms 1.4.0pre1 from the Dag repository.
> 
> With kqemu, the guest stops booting (including safe mode) at mup.sys.
> Googling around for similar problems didn't reveal much of use (other
> than the usual Windows solution to everything of "reinstall", which
> isn't an option here because I need the same setup to work both on bare
> metal and in qemu). Is there a work-around/tweak to make this work? Is
> there any particular reason why kqemu would break things under these
> circumstances when running without kqemu works fine, if slower? Is there
> a difference in how the emulated hardware looks/behaves with and without
> kqemu?

Due to limitations of the x86 architecture, kqemu used to be far a way
from providing accurate virtualization. That was one of the reasons why
no one worked on it anymore and, thus, it is no longer supported by QEMU
starting with release 0.12.

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Re: kqemu and XP guest - lock-up at mup.sys
  2010-02-05 12:14 ` [Qemu-devel] " Jan Kiszka
@ 2010-02-05 13:34   ` Gordan Bobic
  2010-02-05 16:13     ` Jamie Lokier
  2010-02-05 16:58     ` Jan Kiszka
  0 siblings, 2 replies; 5+ messages in thread
From: Gordan Bobic @ 2010-02-05 13:34 UTC (permalink / raw)
  To: qemu-devel

Jan Kiszka wrote:
> Gordan Bobic wrote:
>> Hi,
>>
>> It would appear that kqemu somehow breaks the XP guest under some
>> circumstances.
>>
>> If I install from scratch in qemu+kqemu, it works fine in kqemu, but not
>> on bare metal. The fact it doesn't work on bare metal COULD be related
>> to the fact that on bare metal I'm running off a USB stick (it's a
>> rescue system).
>>
>> If I install onto bare metal (again, onto a USB stick - I have a
>> modified installer that includes the USB disk drivers at setup stage)
>> and then start up that install in qemu, that works as long as I don't
>> apply kqemu. But if I modprobe kqemu and start with
>> -enable-kqemu/-kernel-kqemu (-smp 1 in all cases), the quest instanty
>> locks up at 100% CPU usage. Everything else about the qemu configuration
>> is exactly the same between the runs. Booting the system with -no-acpi
>> at this point causes it to reboot instead of just locking up.
>>
>> I tried with qemu 0.10.5 (RHEL5 from atrpms) and 0.11.1 (built from
>> source). kqemu I use is dkms 1.4.0pre1 from the Dag repository.
>>
>> With kqemu, the guest stops booting (including safe mode) at mup.sys.
>> Googling around for similar problems didn't reveal much of use (other
>> than the usual Windows solution to everything of "reinstall", which
>> isn't an option here because I need the same setup to work both on bare
>> metal and in qemu). Is there a work-around/tweak to make this work? Is
>> there any particular reason why kqemu would break things under these
>> circumstances when running without kqemu works fine, if slower? Is there
>> a difference in how the emulated hardware looks/behaves with and without
>> kqemu?
> 
> Due to limitations of the x86 architecture, kqemu used to be far a way
> from providing accurate virtualization.

KVM is subject to the same limitations, though, so that point is a bit 
moot. The only reason why I'm using kqemu is because I still have legacy 
32-bit hardware around that doesn't have VT extensions.

Either way, I'm mainly interested in the details of the differences in 
the environment provided by qemu with and without kqemu, as clearly it 
is this difference that causes the problem in question.

Gordan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Re: kqemu and XP guest - lock-up at mup.sys
  2010-02-05 13:34   ` Gordan Bobic
@ 2010-02-05 16:13     ` Jamie Lokier
  2010-02-05 16:58     ` Jan Kiszka
  1 sibling, 0 replies; 5+ messages in thread
From: Jamie Lokier @ 2010-02-05 16:13 UTC (permalink / raw)
  To: Gordan Bobic; +Cc: qemu-devel

Gordan Bobic wrote:
> Jan Kiszka wrote:
> >Gordan Bobic wrote:
> >Due to limitations of the x86 architecture, kqemu used to be far a way
> >from providing accurate virtualization.
> 
> KVM is subject to the same limitations, though, so that point is a bit 
> moot.

No, it isn't.  The VT/SVM extensions used by KVM support much more
accurate virtualisation than the tricks used by kqemu.  There are a
few bugs and omissions in KVM itself, but for most things it's a high
quality virtualisation.

-- Jamie

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] Re: kqemu and XP guest - lock-up at mup.sys
  2010-02-05 13:34   ` Gordan Bobic
  2010-02-05 16:13     ` Jamie Lokier
@ 2010-02-05 16:58     ` Jan Kiszka
  1 sibling, 0 replies; 5+ messages in thread
From: Jan Kiszka @ 2010-02-05 16:58 UTC (permalink / raw)
  To: Gordan Bobic; +Cc: qemu-devel

Gordan Bobic wrote:
> Jan Kiszka wrote:
>> Gordan Bobic wrote:
>>> Hi,
>>>
>>> It would appear that kqemu somehow breaks the XP guest under some
>>> circumstances.
>>>
>>> If I install from scratch in qemu+kqemu, it works fine in kqemu, but not
>>> on bare metal. The fact it doesn't work on bare metal COULD be related
>>> to the fact that on bare metal I'm running off a USB stick (it's a
>>> rescue system).
>>>
>>> If I install onto bare metal (again, onto a USB stick - I have a
>>> modified installer that includes the USB disk drivers at setup stage)
>>> and then start up that install in qemu, that works as long as I don't
>>> apply kqemu. But if I modprobe kqemu and start with
>>> -enable-kqemu/-kernel-kqemu (-smp 1 in all cases), the quest instanty
>>> locks up at 100% CPU usage. Everything else about the qemu configuration
>>> is exactly the same between the runs. Booting the system with -no-acpi
>>> at this point causes it to reboot instead of just locking up.
>>>
>>> I tried with qemu 0.10.5 (RHEL5 from atrpms) and 0.11.1 (built from
>>> source). kqemu I use is dkms 1.4.0pre1 from the Dag repository.
>>>
>>> With kqemu, the guest stops booting (including safe mode) at mup.sys.
>>> Googling around for similar problems didn't reveal much of use (other
>>> than the usual Windows solution to everything of "reinstall", which
>>> isn't an option here because I need the same setup to work both on bare
>>> metal and in qemu). Is there a work-around/tweak to make this work? Is
>>> there any particular reason why kqemu would break things under these
>>> circumstances when running without kqemu works fine, if slower? Is there
>>> a difference in how the emulated hardware looks/behaves with and without
>>> kqemu?
>>
>> Due to limitations of the x86 architecture, kqemu used to be far a way
>> from providing accurate virtualization.
> 
> KVM is subject to the same limitations, though, so that point is a bit
> moot. The only reason why I'm using kqemu is because I still have legacy
> 32-bit hardware around that doesn't have VT extensions.

As Jamie already pointed out, your perception of KVM is not correct. But
the issue of legacy hardware exists, no question. Just the effort to
keep it working is beyond reasonable limits.

> 
> Either way, I'm mainly interested in the details of the differences in
> the environment provided by qemu with and without kqemu, as clearly it
> is this difference that causes the problem in question.

The differences are various and subtle. If you want to understand them
(you do not, believe me), look at the code of kqemu or even debug it -
under KVM like we did. But, again, you do not want to do this...

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-05 16:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-05  3:59 [Qemu-devel] kqemu and XP guest - lock-up at mup.sys Gordan Bobic
2010-02-05 12:14 ` [Qemu-devel] " Jan Kiszka
2010-02-05 13:34   ` Gordan Bobic
2010-02-05 16:13     ` Jamie Lokier
2010-02-05 16:58     ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).