qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: malc <av1474@comtv.ru>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Main loop
Date: Sun, 27 Sep 2009 17:23:03 +0300	[thread overview]
Message-ID: <f43fc5580909270723v7caa3d96kb4f332fbfaf331ef@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0909270343220.4611@linmac.oyster.ru>

On Sun, Sep 27, 2009 at 2:55 AM, malc <av1474@comtv.ru> wrote:
>
> At http://repo.or.cz/w/qemu/malc.git?a=shortlog;h=refs/heads/mtloop you
> can find the branch which refactors main execution loop somewhat, effects
> include:
>
> a. Host alarm timers are gone
> b. IO thread is replaced (now Windows is supported too)
>
> I have no means of testing the KVM/Xen bits (both are likely to be broken
> by this), and since testing was only done on Linux/X86-64[1],PPC and
> Windows/i386 chances are good that something might be not so great in
> BSD/Solairs/MacOS X lands.
>
> Apart from obvious KVM bits, other things were not implemented (yet)
> either: proper VM stop/resume, GDB, etc.
>
> Diffstat relative to c2b023b62707f5dc73497dc03f3764f145a29785 (plus
> one somewhat unrelated local commit) is bellow.
>
>  Makefile        |    1 -
>  configure       |    8 -
>  cpu-defs.h      |    2 -
>  cpu-exec.c      |    3 +
>  hw/xenfb.c      |    2 +-
>  qemu-options.hx |    9 -
>  qemu-thread.c   |  163 ------
>  qemu-thread.h   |   40 --
>  sysemu.h        |    2 +-
>  vl.c            | 1650 ++++++++++++++++++++-----------------------------------
>  10 files changed, 593 insertions(+), 1287 deletions(-)
>
> Comments?

+extern void ontb (CPUState *env);
+

Please try to avoid prototypes outside header files. The name does not
tell what the function does.

     if (delta < MIN_TIMER_REARM_US)
         delta = MIN_TIMER_REARM_US;
+    if (delta > MIN_TIMER_REARM_US)
+        delta = MIN_TIMER_REARM_US;

The above four lines are equal to
     delta = MIN_TIMER_REARM_US;

Maybe the latter two should use MAX_TIMER_REARM_US?

  parent reply	other threads:[~2009-09-27 14:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-26 23:55 [Qemu-devel] Main loop malc
2009-09-27  0:49 ` Anthony Liguori
2009-09-27 10:55   ` malc
2009-09-27 14:05     ` Anthony Liguori
2009-09-27 14:39       ` malc
2009-09-28 13:57         ` Glauber Costa
2009-09-28 18:50           ` malc
2009-09-28 19:35             ` Anthony Liguori
2009-09-28 21:21               ` Glauber Costa
2009-09-28 23:57           ` malc
2009-09-27 14:31     ` malc
2009-09-27 14:23 ` Blue Swirl [this message]
2009-09-27 14:35   ` malc
2009-09-27 17:43 ` malc
     [not found] ` <m3fxa7jug0.fsf@neno.mitica>
2009-09-28  9:42   ` [Qemu-devel] " malc
     [not found]     ` <m3pr9bidy9.fsf@neno.mitica>
2009-09-28 10:19       ` malc

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=f43fc5580909270723v7caa3d96kb4f332fbfaf331ef@mail.gmail.com \
    --to=blauwirbel@gmail.com \
    --cc=av1474@comtv.ru \
    --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).