qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Linux CPU accouting with kqemu
@ 2008-06-06 17:57 Steve Fosdick
  2008-06-06 18:59 ` Laurent Vivier
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Fosdick @ 2008-06-06 17:57 UTC (permalink / raw)
  To: qemu-devel

I have noticed that the Linux system CPU usage seems remarkably high 
when running Windows XP as a guest under qemu/kqemu, but not when 
running under qemu without kqemu.

Just today I was reading the kqemu API documentation and it occurred to 
be that from the Linux perspective the user/system CPU times may be 
backward with kqemu.

Is it perhaps the case that when kqemu has been told to run code in the 
guest VM (KQEMU_EXEC ioctl) and this is happenning without any 
exceptions (more likely when the guest is running user-mode code rather 
than OS code) Linux still sees this as running in the kernel and 
records it as "system" time but when kqemu returns to qemu (because of 
an exception) the Linux kernel now sees this as user CPU time when in 
all likelihood the guest OS is now executing somewhere it it's kernel?

Regards,
Steve.

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

end of thread, other threads:[~2008-06-11  9:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-06 17:57 [Qemu-devel] Linux CPU accouting with kqemu Steve Fosdick
2008-06-06 18:59 ` Laurent Vivier
2008-06-11  8:41   ` [Qemu-devel] [PATCHl] kqemu: Linux CPU accouting Laurent Vivier
2008-06-11  9:27     ` [Qemu-devel] " Fabrice Bellard

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).