qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Steve Fosdick <lists@pelvoux.nildram.co.uk>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Linux CPU accouting with kqemu
Date: Fri, 06 Jun 2008 18:57:03 +0100	[thread overview]
Message-ID: <1212775023.17383.0@ecrins> (raw)

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.

             reply	other threads:[~2008-06-06 18:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-06 17:57 Steve Fosdick [this message]
2008-06-06 18:59 ` [Qemu-devel] Linux CPU accouting with kqemu 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1212775023.17383.0@ecrins \
    --to=lists@pelvoux.nildram.co.uk \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).