OSDev.org

The Place to Start for Operating System Developers
It is currently Sat May 11, 2024 4:32 pm

All times are UTC - 6 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: qemu wiredness; it crashes windows
PostPosted: Sat Dec 16, 2006 3:18 pm 
Offline

Joined: Wed Oct 18, 2006 1:12 pm
Posts: 13
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:
      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?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 16, 2006 6:29 pm 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 9:29 pm
Posts: 2426
Location: Canada
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 16, 2006 8:11 pm 
Offline
Member
Member
User avatar

Joined: Sun Nov 26, 2006 4:06 pm
Posts: 58
Location: Victoria, BC, Canada
Qemu on windows in in alpha status. Probably for this very reason. Though the 100% CPU usage problem seems to be universal.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 17, 2006 1:25 am 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 9:29 pm
Posts: 2426
Location: Canada
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 17, 2006 5:37 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 26, 2006 8:41 am
Posts: 128
Location: Millicent, South Australia
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

_________________
Mort OS - Blog


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 17, 2006 9:59 am 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 9:29 pm
Posts: 2426
Location: Canada
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 17, 2006 3:52 pm 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
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 ]


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 17, 2006 8:00 pm 
Offline
Member
Member
User avatar

Joined: Sat Oct 23, 2004 11:00 pm
Posts: 1223
Location: Sweden
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 17, 2006 10:12 pm 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 9:29 pm
Posts: 2426
Location: Canada
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 18, 2006 9:25 am 
Offline
Member
Member
User avatar

Joined: Thu Sep 28, 2006 10:32 am
Posts: 1309
Location: Slovakia
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)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 18, 2006 10:00 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 4:39 am
Posts: 52
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 18, 2006 10:07 am 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 6:06 pm
Posts: 1437
Location: Vancouver, BC, Canada
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!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 18, 2006 10:57 am 
Offline
Member
Member
User avatar

Joined: Sat Oct 23, 2004 11:00 pm
Posts: 1223
Location: Sweden
Quote:
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 18, 2006 11:19 am 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 9:29 pm
Posts: 2426
Location: Canada
bubach wrote:
Quote:
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 18, 2006 1:04 pm 
Offline
Member
Member
User avatar

Joined: Thu Sep 28, 2006 10:32 am
Posts: 1309
Location: Slovakia
Quote:
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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group