All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Cc: Blue Swirl <blueswir1@hotmail.com>
Subject: Re: [Qemu-devel] Re: request : qemu-smp as target
Date: Sat, 14 May 2005 12:31:21 +0100	[thread overview]
Message-ID: <200505141231.22402.paul@codesourcery.com> (raw)
In-Reply-To: <BAY104-F21B3902A51A90415295094FF130@phx.gbl>

On Saturday 14 May 2005 10:37, Blue Swirl wrote:
> Hi,
>
> The architecture used in sparc target (sun4m) supports SMP up to a maximum
> of 16 CPUs. At hardware emulation level (hw/*, target-sparc/*), it would be
> easy to add the missing interprocessor interrupts, per-CPU counters and
> atomic instructions. It would also be simple to add the prom functions for
> starting/stopping CPUs to Proll. Maybe some days' work in total.
>
> Higher level (vl.c, cpu-exec.c) could need more work. Maybe Fabrice can
> enlighten us?

I guess you'd really want to simulate multiple CPUs with multiple host 
threads. One of the additional problems could then be memory/cache coherency. 
I'm not sure how much of a problem this would be in practice. If both host 
and guest require the same (or no) explicit SMP memory barriert it's not a 
problem. It the guest has stronger coherency requirements than the host we 
have a problem.

> For some reason, Sparc performance is low (1/10 of native x86 nbench)
> compared to x86 (2/3). Simulating SMP on a uniprocessor would only decrease
> performance.

It think x86-on-x86 user-mode uses code-copying by default. ie. it runs a lot 
of the the code unmodified. In my experience i386-softmmu is generally 10-15x 
slower than native, and arm-user is 5-10x slower.

Paul

  reply	other threads:[~2005-05-14 11:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-14  9:37 [Qemu-devel] Re: request : qemu-smp as target Blue Swirl
2005-05-14 11:31 ` Paul Brook [this message]
2005-05-14 15:22   ` Blue Swirl
2005-05-14 12:16 ` Fabrice Bellard
2005-05-14 13:11   ` Jonas Maebe
2005-05-14 14:46   ` Blue Swirl
2005-05-14 16:55   ` Joe Batt
2005-05-17 20:21     ` Paul Brook
2005-05-17 20:41       ` Joe Batt
2005-05-17 20:59         ` Paul Brook
2005-05-18 11:29         ` Mark Williamson
2005-05-18 21:19           ` Re[2]: " Igor Shmukler
2005-05-18 11:25       ` Mark Williamson
  -- strict thread matches above, loose matches on Subject: below --
2005-05-16 13:17 octane indice

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=200505141231.22402.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=blueswir1@hotmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.