| To: | Andre Przywara <andre.przywara@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [Xen-devel] [PATCH 2/4] [HVM] introduce CPU affinity for allocate_physmap call |
| From: | Keir Fraser <keir@xxxxxxxxxxxxx> |
| Date: | 2007年8月13日 11:30:15 +0100 |
| Delivery-date: | 2007年8月13日 03:30:54 -0700 |
| Envelope-to: | www-data@xxxxxxxxxxxxxxxxxx |
| In-reply-to: | <46C02C33.8030301@xxxxxxx> |
| List-help: | <mailto:xen-devel-request@lists.xensource.com?subject=help> |
| List-id: | Xen developer discussion <xen-devel.lists.xensource.com> |
| List-post: | <mailto:xen-devel@lists.xensource.com> |
| List-subscribe: | <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
| List-unsubscribe: | <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
| Sender: | xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
| Thread-index: | AcfdlO+3LgnQXkmIEdymlgAX8io7RQ== |
| Thread-topic: | [Xen-devel] [PATCH 2/4] [HVM] introduce CPU affinity for allocate_physmap call |
| User-agent: | Microsoft-Entourage/11.3.3.061214 |
On 13/8/07 11:02, "Andre Przywara" <andre.przywara@xxxxxxx> 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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
| Previous by Date: | [Xen-devel] [PATCH 4/4] [HVM] inject created SRAT table into the guest , Andre Przywara |
|---|---|
| Next by Date: | Re: [Xen-devel] [PATCH 2/4] [HVM] introduce CPU affinity for allocate_physmap call , Christoph Egger |
| Previous by Thread: | [Xen-devel] [PATCH 2/4] [HVM] introduce CPU affinity for allocate_physmap call , Andre Przywara |
| Next by Thread: | Re: [Xen-devel] [PATCH 2/4] [HVM] introduce CPU affinity for allocate_physmap call , Christoph Egger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |