All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Hopwood <david.nospam.hopwood@blueyonder.co.uk>
To: xen-devel@lists.xensource.com
Subject: Re: How to query the number of vcpus?
Date: Sat, 30 Apr 2005 15:09:07 +0100	[thread overview]
Message-ID: <42739183.7000706@blueyonder.co.uk> (raw)
In-Reply-To: <E1DRoC6-0004dk-00@mta1.cl.cam.ac.uk>

Keir Fraser wrote:
> Also I'd change the appearances of the mask in the dom0 interface from:
>  cpumap_t cpumap[MAX_VIRT_CPUS]
> And:
>  cpumap_t *cpumap
> To:
>  u8 vcpumask[MAX_VCPUID/8]

u8 vcpumask[MAX_VCPUID/8 + 1]

> Having an array of '_t' is odd as each entry in the array is really
> logically just a single bit. And I would like to separate the size of
> the array at the admin interfaces from MAX_VIRT_CPUS: it would be nice
> to be able to increase MAX_VIRT_CPUS without changing the admin
> interface. That's why I'd add something like MAX_VCPUID (probably set
> it to 256).

255 (if it's the maximum ID rather than the number of IDs).

-- 
David Hopwood <david.nospam.hopwood@blueyonder.co.uk>

  reply	other threads:[~2005-04-30 14:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-29 20:08 How to query the number of vcpus? Kip Macy
2005-04-29 20:16 ` Keir Fraser
2005-04-29 20:18 ` Ryan Harper
2005-04-29 20:24   ` Kip Macy
2005-04-30  9:23   ` Keir Fraser
2005-04-30 14:09     ` David Hopwood [this message]
2005-04-30 14:50     ` Keir Fraser
  -- strict thread matches above, loose matches on Subject: below --
2005-04-30 18:03 Ian Pratt
2005-04-30 19:01 ` Keir Fraser
2005-05-01  4:21 Ian Pratt
2005-05-02 15:21 ` Ryan Harper
2005-05-02 15:27   ` Keir Fraser

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=42739183.7000706@blueyonder.co.uk \
    --to=david.nospam.hopwood@blueyonder.co.uk \
    --cc=xen-devel@lists.xensource.com \
    /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.