All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir@xensource.com>
To: Andre Przywara <andre.przywara@amd.com>, xen-devel@lists.xensource.com
Subject: Re: [PATCH 2/4] [HVM] introduce CPU affinity for allocate_physmap call
Date: Mon, 13 Aug 2007 11:30:15 +0100	[thread overview]
Message-ID: <C2E5F147.14154%keir@xensource.com> (raw)
In-Reply-To: <46C02C33.8030301@amd.com>

On 13/8/07 11:02, "Andre Przywara" <andre.przywara@amd.com> wrote:

> @@ -35,6 +35,7 @@
>  #define XENMEM_increase_reservation 0
>  #define XENMEM_decrease_reservation 1
>  #define XENMEM_populate_physmap     6
> +#define XENMEM_DEFAULT_CPU ((unsigned int)-1)
>  struct xen_memory_reservation {
>  
>      /*
> @@ -66,6 +67,7 @@ struct xen_memory_reservation {
>       * Unprivileged domains can specify only DOMID_SELF.
>       */
>      domid_t        domid;
> +    unsigned int   cpu;
>  };

We cannot change the size of existing hypercall structures. In this case we
could steal bits from address_bits field and create a pair of 16-bit fields
from it. Also, a physical cpu id is not a great fit for this hypercall -- it
is meaningless to most guests who do not see the physical cpu map. Better to
pass a vcpu_id and let Xen work out the most appropriate physical cpu id
based on the vcpu's affinity. Or have a concept of per-guest 'virtual node
identifiers' and pass a 'uint16_t vnodeid'. The latter might actually be a
nice abstraction -- it'd be good to know other people's thoughts on this?

 -- Keir

  reply	other threads:[~2007-08-13 10:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-13 10:02 [PATCH 2/4] [HVM] introduce CPU affinity for allocate_physmap call Andre Przywara
2007-08-13 10:30 ` Keir Fraser [this message]
2007-08-13 12:59   ` Christoph Egger
2007-08-13 14:00     ` Isaku Yamahata
2007-08-13 14:06     ` Keir Fraser
2007-08-13 20:49       ` Ryan Harper
2007-08-15 10:12         ` Andre Przywara
2007-08-15 11:18           ` Andi Kleen
2007-08-15 10:13       ` Andre Przywara
2007-08-15 10:43         ` 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=C2E5F147.14154%keir@xensource.com \
    --to=keir@xensource.com \
    --cc=andre.przywara@amd.com \
    --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.