[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4] xen/dom0less: support for vcpu affinity



Hi Stefano,

On 20/02/2025 02:18, Stefano Stabellini wrote:
From: Xenia Ragiadakou <xenia.ragiadakou@xxxxxxx>

Add vcpu affinity to the dom0less bindings. Example:

     dom1 {
             ...
             cpus = <4>;
             vcpu0 {
                    compatible = "xen,vcpu";
                    id = <0>;
                    hard-affinity = "4-7";
             };
             vcpu1 {
                    compatible = "xen,vcpu";
                    id = <1>;
                    hard-affinity = "0-3,5";
             };
             vcpu2 {
                    compatible = "xen,vcpu";
                    id = <2>;
                    hard-affinity = "1,6";
             };
             ...

Note that the property hard-affinity is optional. It is possible to add
other properties in the future not only to specify soft affinity, but
also to provide more precise methods for configuring affinity. For
instance, on ARM the MPIDR could be use to specify the pCPU. For now, it
is left to the future.

Signed-off-by: Xenia Ragiadakou <xenia.ragiadakou@xxxxxxx>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx>

Acked-by: Julien Grall <jgrall@xxxxxxxxxx>

Cheers,

--
Julien Grall




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.