All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ryan Harper <ryanh@us.ibm.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: Re: Re: [Xen-changelog] Create new vcpu_op() hypercall. Replaces old boot_vcpu()
Date: Mon, 3 Oct 2005 16:07:17 -0500	[thread overview]
Message-ID: <20051003210717.GB17358@us.ibm.com> (raw)
In-Reply-To: <0e4ad41728f6eae851f39c1440bdfd72@cl.cam.ac.uk>

* Keir Fraser <Keir.Fraser@cl.cam.ac.uk> [2005-10-03 15:56]:
> 
> On 3 Oct 2005, at 19:42, Ryan Harper wrote:
> 
> >Both do_boot_vcpu() and now VCPU_CREATE rely on domU kernel playing 
> >nice
> >and not making the hypercall more than has been indicated in the shared
> >table when we built the domain (nr_vcpus).  Wouldn't it be better to
> >have the domain creation hypercall specify the number of vcpus for a
> >domain (as well as a cpumap to indicate which physical cpus are to be
> >used) and alloc vcpu structures at that point leaving the vcpu_ops() to
> >get context and unpause the vcpu?
> >
> >If I put together a patch that mode the above change, would that be
> >considered?
> 
> I think there's not much in it -- allocating on demand vs. allocate at 
> domain build time. I think the simplest patch would be for Xen to be 
> passed a max_vcpuid or max_vcpus and apply the appropriate simple check 
> at VCPUOP_create.
> 
> I'd take a patch that adds a new dom0 op to set that value 
> (DOM0_SET_MAX_VCPUS or somesuch), applies the appropriate check inside 
> Xen. Also that plumbs that hypercall into the Python wrapper, and adds 
> a call to that command in xend (both during initial build and on 
> save/restore).

I was also thinking toward NUMA systems where I'd like to know which
physical cpus are being utilized for a given domain so when we allocate
memory for a domain we can try to localize those allocations to the cpus
that will be using it.  Currently domain memory allocation happens
before secondary processors are selected.

I'd rather see domain creation take both max_vcpus and cpu placement
bitmaps instead, but if that is not acceptable for 3.0, I'll go ahead
and work up the patch as described since it needs to be resolved for
3.0.

-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
ryanh@us.ibm.com

  reply	other threads:[~2005-10-03 21:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1EMUrD-0002RM-Cz@xenbits.xensource.com>
2005-10-03 18:42 ` [Xen-changelog] Create new vcpu_op() hypercall. Replaces old boot_vcpu() Ryan Harper
2005-10-03 20:48   ` Keir Fraser
2005-10-03 21:07     ` Ryan Harper [this message]
2005-10-03 21:53       ` Keir Fraser
2005-10-04 15:38   ` Ryan Harper
2005-10-04 16:05     ` Ryan Harper
2005-10-04 16:36       ` Keir Fraser
2005-10-04 20:39         ` Ryan Harper
2005-10-04 21:10           ` Ewan Mellor
2005-10-04 21:17             ` Ryan Harper
2005-10-05  9:28               ` Ewan Mellor

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=20051003210717.GB17358@us.ibm.com \
    --to=ryanh@us.ibm.com \
    --cc=Keir.Fraser@cl.cam.ac.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.