From: Jes Sorensen <jes@sgi.com>
To: qemu-devel@nongnu.org
Cc: jes@sgi.com, Paul Brook <paul@codesourcery.com>
Subject: Re: [Qemu-devel] [patch] Introduce per machine based max_cpu variable
Date: 01 Oct 2008 09:22:03 -0400 [thread overview]
Message-ID: <yq08wt8h2mc.fsf@jaguar.mkp.net> (raw)
In-Reply-To: <48E24359.9070607@codemonkey.ws>
>>>>> "Anthony" == Anthony Liguori <anthony@codemonkey.ws> writes:
Anthony> If it were 'max_cpu' then the meaning is pretty clear. On a
Anthony> UP system, the max_cpu is 0.
Well it depends on how you calculate it, it is meant as max_nr_cpus
which IMHO is the most clear. If you prefer, I can rename it to that.
Most users will think in terms of 'number of cpus to enable' rather
than the highest logical cpu number.
Anthony> You could also make it max_aps which makes it even more
Anthony> clear. A UP system doesn't have any APs.
What do you mean by AP?
Anthony> The other option is to have max_cpus == 0 be equivalent to
Anthony> max_cpus == 1. But don't print anything. Basically, I don't
Anthony> like the idea of modifying every machine definition when they
Anthony> all have almost the exact same value for the field.
I really don't understand this - the code as it is today is really
inconsistent. What my patch does is simply to make it explicit what it
does and make it consistent. I have taken great care to do it in a
way, so if in the unlikely situation it breaks an existing behavior,
it will be very clear what is wrong and how to fix it. I'll even be
willing to put my name in there and volunteer to fix it up for people
if this actually happens :-)
Cheers,
Jes
next prev parent reply other threads:[~2008-10-01 13:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-23 11:44 [Qemu-devel] [patch] move MAX_CPUS to cpu.h Jes Sorensen
2008-09-23 12:08 ` Paul Brook
2008-09-23 12:10 ` Jes Sorensen
2008-09-23 12:50 ` Paul Brook
2008-09-23 12:53 ` Jes Sorensen
2008-09-23 13:04 ` Paul Brook
2008-09-23 13:10 ` Jes Sorensen
2008-09-25 15:21 ` [Qemu-devel] [patch] Introduce per machine based max_cpu variable Jes Sorensen
2008-09-30 14:47 ` Anthony Liguori
2008-09-30 15:06 ` Jes Sorensen
2008-09-30 15:18 ` Anthony Liguori
2008-10-01 13:22 ` Jes Sorensen [this message]
2008-09-30 15:19 ` Jes Sorensen
2008-10-02 15:45 ` Paul Brook
2008-10-03 9:40 ` Jes Sorensen
2008-09-23 14:13 ` [Qemu-devel] [patch] move MAX_CPUS to cpu.h M. Warner Losh
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=yq08wt8h2mc.fsf@jaguar.mkp.net \
--to=jes@sgi.com \
--cc=paul@codesourcery.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.