All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Change XEN_DOMCTL_setvcpuaffinity interface
@ 2026-07-01 11:16 Juergen Gross
  2026-07-01 11:16 ` [PATCH 1/3] tools/libxl: don't rely on xc_vcpu_setaffinity() returned cpumaps Juergen Gross
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Juergen Gross @ 2026-07-01 11:16 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, Anthony PERARD, Dario Faggioli, George Dunlap,
	Andrew Cooper, Michal Orzel, Jan Beulich, Julien Grall,
	Roger Pau Monné, Stefano Stabellini

Today the XEN_DOMCTL_setvcpuaffinity hypercall will not only change the
affinity settings of a vcpu, it will return the new effective settings,
too.

In case an error happens during this hypercall, the expectation of the
caller is that the affinity of the vcpu didn't change. This isn't true,
however, if passing the new effective affinity back to the user is
failing.

Instead of making error handling in the hypervisor even more complex,
just change the interface by NOT passing back the new affinity. It can
easily be obtained by another XEN_DOMCTL_getvcpuaffinity call if
needed.

Juergen Gross (3):
  tools/libxl: don't rely on xc_vcpu_setaffinity() returned cpumaps
  xen: don't let XEN_DOMCTL_setvcpuaffinity return the new affinities
  tools/libxenctrl: rename parameters of xc_vcpu_setaffinity()

 tools/include/xenctrl.h        | 26 +++++-----------------
 tools/libs/ctrl/xc_domain.c    | 26 ++++++++++------------
 tools/libs/light/libxl_sched.c |  9 ++++++++
 xen/common/sched/core.c        | 40 ++++++++--------------------------
 xen/include/public/domctl.h    |  9 ++------
 5 files changed, 38 insertions(+), 72 deletions(-)

-- 
2.54.0



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

end of thread, other threads:[~2026-07-02  6:31 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01 11:16 [PATCH 0/3] Change XEN_DOMCTL_setvcpuaffinity interface Juergen Gross
2026-07-01 11:16 ` [PATCH 1/3] tools/libxl: don't rely on xc_vcpu_setaffinity() returned cpumaps Juergen Gross
2026-07-01 11:16 ` [PATCH 2/3] xen: don't let XEN_DOMCTL_setvcpuaffinity return the new affinities Juergen Gross
2026-07-01 11:16 ` [PATCH 3/3] tools/libxenctrl: rename parameters of xc_vcpu_setaffinity() Juergen Gross
2026-07-01 11:39 ` [PATCH 0/3] Change XEN_DOMCTL_setvcpuaffinity interface Jan Beulich
2026-07-01 11:45   ` Andrew Cooper
2026-07-01 13:00     ` Jürgen Groß
2026-07-01 13:08   ` Jürgen Groß
2026-07-01 13:48     ` Jan Beulich
2026-07-01 14:19       ` Jürgen Groß
2026-07-01 15:34   ` Juergen Gross
2026-07-02  5:54     ` Jan Beulich
2026-07-02  6:13       ` Jürgen Groß
2026-07-02  6:25         ` Jan Beulich
2026-07-02  6:30           ` Juergen Gross

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.