qemu wiredness; it crashes windows

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Edward
Posts: 13
Joined: Wed Oct 18, 2006 1:12 pm

qemu wiredness; it crashes windows

Post by Edward »

I've recently been doing some Os development on windows and have been using qemu for testing. Having added so gdt code (which is proberbly wrong) I tested as usual. quemu froze and eventualy windows shut down (proberbly a resault of me presing ctrl-alt-del half a million times). I thought the objective of an emulator was to prevent these things happening. Have any of you had similar experiences?

qemu version: 0.8.9-windows

and the code in my os that causes it:

Code: Select all

	   asm("pushl %eax\n\t"\
	    "lgdt _GDTP(,1)\n\t"\
	    "movw $0x10, %ax\n\t"\
	    "movw %ax, %ds\n\t"\
	    "movw %ax, %es\n\t"\
	    "movw %ax, %fs\n\t"\
	    "movw %ax, %gs\n\t"\
	    "movw %ax, %ss\n\t"\
                    "ljmp $0x8,$nextin\n\t"
	    "nextin:\n\t"\
	    "popl %eax\n\t"\
	    


I just tried loading ds with a bad valuse. It had the smae resault. Is this right?
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

First off, QEMU's latest release is 0.8.2 (Not 0.8.9..:roll:)

Secondly QEMU does hang on various specific kernel faults, But I'm sure you could be more specific with your topic.. Are you using Windows 9x? Or NT(2k/xp..).

If QEMU hangs and you don't kill it time, It can constantly use 100% CPU and cause your system to shutdown. (Overheat?)

I use QEMU on OpenBSD and it does crash at times, Usually as result of user error though, But when it does.. It never locks down my entire system :)

I just need to send SIGKILL and it goes bye-bye 8)

Another reason NOT to use Windows. :lol:

(QEMU is also not officially supported on Windows..)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
jhawthorn
Member
Member
Posts: 58
Joined: Sun Nov 26, 2006 4:06 pm
Location: Victoria, BC, Canada
Contact:

Post by jhawthorn »

Qemu on windows in in alpha status. Probably for this very reason. Though the 100% CPU usage problem seems to be universal.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

jhawthorn wrote:Qemu on windows in in alpha status. Probably for this very reason. Though the 100% CPU usage problem seems to be universal.
I've noticed that the 100% CPU thing is only present when using the SDL interface, Using my patched OpenBSD branch with the curses interface.. It uses around 5%~ when in an idle state.

:)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
spix
Member
Member
Posts: 128
Joined: Mon Jun 26, 2006 8:41 am
Location: Millicent, South Australia
Contact:

Post by spix »

100% CPU usage shouldn't happen all the time on OpenBSD under SDL (or any *nix I dunno about windows). It should only happen when the guest operating system is using the processer at 100%.

If your guest OS is idling and the host is running at 100% then the guest needs fixing.

Andrew
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

spix wrote:100% CPU usage shouldn't happen all the time on OpenBSD under SDL (or any *nix I dunno about windows). It should only happen when the guest operating system is using the processer at 100%.

If your guest OS is idling and the host is running at 100% then the guest needs fixing.

Andrew
True, But if it's a closed source guest... Your pretty much out of luck :wink:
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

two things:
1) are you running with kqemu (if so, disable that)
2) are you running a pre-NT style windows (9x, ME) (if so, poor you)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Post by bubach »

Brynet-Inc wrote:True, But if it's a closed source guest... Your pretty much out of luck :wink:
Brynet-Inc, if you have 3 diffrent pieces of software and find bugs in all of them, which is most convenient, to download the source, understand it, debug it, fix it, or to wait for the next version?

I'm just saying that open source software isn't the solution to all problems.
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

Sure it is bubach, Stop spreading your lies.. 8)

You don't like me very much eh? :wink: (It's not like your the first..:lol:)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Post by inflater »

Warning of flamewar. :D

Open source programs are not the best. Maybe you think it because they are free to download and free to modify source (under gnu gpl license). Much programs, that are "open source" are unstable, buggy and un-betatested.

Paid software - well they are not the best too:
Some are very pricy, but they may have quality.
Some are cheap, but the quality is miserable.

So stop scrapping around this, or this whole topic may be locked by moderator, OK?

inflater
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
User avatar
Cheery
Member
Member
Posts: 52
Joined: Wed Oct 18, 2006 4:39 am

Post by Cheery »

inflater wrote:Open source programs are not the best. Maybe you think it because they are free to download and free to modify source (under gnu gpl license). Much programs, that are "open source" are unstable, buggy and un-betatested.

Paid software - well they are not the best too:
Some are very pricy, but they may have quality.
Some are cheap, but the quality is miserable.
Programmers who suck, they write sucky code even if they'd do it for free. There are two kinds of open source code, such that is long and most of it is useless stuff. And another which is short and all useful.

It's the death in open source if your sources are long and full of object spagetti.

In paid software this is not exactly the same. In corporate world, they do not recognize good programmer from a sucky programmer very well so sucky programmers can survive without unsuckifying themselves. ;)
Windows Vista rapes you, cuts you and pisses inside. Thought these are just nifty side-effects.
User avatar
Colonel Kernel
Member
Member
Posts: 1437
Joined: Tue Oct 17, 2006 6:06 pm
Location: Vancouver, BC, Canada
Contact:

Post by Colonel Kernel »

Cheery wrote:In paid software this is not exactly the same. In corporate world, they do not recognize good programmer from a sucky programmer very well so sucky programmers can survive without unsuckifying themselves. ;)
Also what can happen is that managers tend to put sucky programmers together because sucky programmers always underestimate how long it will take them to finish their work. In other words, management likes it when people tell them what they want to hear. ](*,)
Top three reasons why my OS project died:
  1. Too much overtime at work
  2. Got married
  3. My brain got stuck in an infinite loop while trying to design the memory manager
Don't let this happen to you!
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Post by bubach »

You don't like me very much eh?
Thats not true, I just think you should keep your thoughts to yourself sometimes.. :wink:
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

bubach wrote:
You don't like me very much eh?
Thats not true, I just think you should keep your thoughts to yourself sometimes.. :wink:
If everyone kept their thoughts to themselves.. This forum would have no meaningful purpose now would it :lol:

Besides, I'm right.. and your wrong.. wanna fight about it~! *shakes fist* :P j/k :wink:
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Post by inflater »

This forum would have no meaningful purpose now would it
Yeah. Now someone asks, for example, "How to install OpenBSD" ? and someone says: "Type FORMAT C:", do you, Brynet?

inflater
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
Locked