All of lore.kernel.org
 help / color / mirror / Atom feed
* How to query the number of vcpus?
@ 2005-04-29 20:08 Kip Macy
  2005-04-29 20:16 ` Keir Fraser
  2005-04-29 20:18 ` Ryan Harper
  0 siblings, 2 replies; 12+ messages in thread
From: Kip Macy @ 2005-04-29 20:08 UTC (permalink / raw)
  To: xen-devel

What is the right way to query how many vcpus a guest is using? As I
mentioned earlier it would seem to fall under the heading of
GETDOMAININFO, but that obviously doesn't work.

    -Kip

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: How to query the number of vcpus?
@ 2005-04-30 18:03 Ian Pratt
  2005-04-30 19:01 ` Keir Fraser
  0 siblings, 1 reply; 12+ messages in thread
From: Ian Pratt @ 2005-04-30 18:03 UTC (permalink / raw)
  To: Keir Fraser; +Cc: Kip Macy, Ryan Harper, xen-devel, christian.limpach

> cpumap_t is a reasonable name as at least it won't conflict 
> with type names internal to Xen.
> 
> However, why pass a pointer to a cpumap_t into PINCPU? And 
> should we cater now for systems with too many cpus to be 
> represented by a long?

I think so -- might as well get the interface right. I was thinking
something like the fd mask that get's passed to select, where you
sepcify the highest set bit.

Ian

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: How to query the number of vcpus?
@ 2005-05-01  4:21 Ian Pratt
  2005-05-02 15:21 ` Ryan Harper
  0 siblings, 1 reply; 12+ messages in thread
From: Ian Pratt @ 2005-05-01  4:21 UTC (permalink / raw)
  To: Keir Fraser; +Cc: Kip Macy, xen-devel, christian.limpach, Ryan Harper

 
> > I think so -- might as well get the interface right. I was thinking 
> > something like the fd mask that get's passed to select, where you 
> > sepcify the highest set bit.
> 
> In some cases Xen returns a cpumap to the guest (in 
> getdomaininfo). In that case the fd mask trick won't really 
> work as the guest needs to know in advance the biggetst map 
> that Xen may return. Anyway, a map of
> 256 bits is going to give us a fair amount of headroom I think.

Why do we need to ever return a cpumap to the guest? Being able to read
CPU pining information out isn't very useful, and both CPUs and VCPUs
can be enumerated in the normal manner. Is there something I've
forgotten?

Ian

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-05-02 15:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.