xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] add hypercall option to temporarily pin a vcpu
@ 2016-03-10  5:27 Juergen Gross
  2016-03-10  5:27 ` [PATCH v4 1/3] libxc: do some retries in xc_cpupool_removecpu() for EBUSY case Juergen Gross
                   ` (3 more replies)
  0 siblings, 4 replies; 27+ messages in thread
From: Juergen Gross @ 2016-03-10  5:27 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, Wei Liu, Dario Faggioli, Ian Jackson, Stefano Stabellini

Some hardware (e.g. Dell studio 1555 laptops) require SMIs to be
called on physical cpu 0 only. Linux drivers like dcdbas or i8k try
to achieve this by pinning the running thread to cpu 0, but in Dom0
this is not enough: the vcpu must be pinned to physical cpu 0 via
Xen, too.

This patch series enhances xen tools to cope with new reactions of
the hypervisor due to the new feature.

Changes in V4:
- removed patches 1-3 (hypervisor patches) as already accepted
- patch 1 (was 4): minor code modifications as suggested by Dario Faggioli
- patch 3 (was 6): change "force" variable to bool as suggested by 
  Dario Faggioli
- patch 3 (was 6): add #define to libxl indicating availability of
  libxl_set_vcpuaffinity_force() as requested by Wei Liu
- patch 3 (was 6): add force option to xl man page as requested by 
  Dario Faggioli

Changes in V3:
- removed old patch 1 as already accepted
- new patch 1 to correct error in cpupool_unassign_cpu_helper()
- patch 2: adjust coding style as requested by Jan Beulich
- patch 2: rename pin_temp to pin_override as requested by Jan Beulich and
  suggested by David Vrabel
- patch 2: change return type of do_pin_temp() to int as requested by
  Jan Beulich
- patch 2: swap error checks in do_sched_op() as requested by Jan Beulich
- patch 2: adjust comment in xen/include/public/sched.h as requested by
  Jan Beulich
- new patch 3 to add possibility in hypervisor to undo pin override via tools
- patch 4 (was 3): adjust coding style as requested by Wei Liu
- new patch 5 to  print message how to recover from xl cpupool-cpu-remove
  errors
- new patch 6 to undo pin override via xl vcpu-pin (force option)

Changes in V2:
- add patch 1 to silence messages on suspend/resume
- add patch 3 to handle EBUSY case when removing cpu from cpupool
- limit operation to hardware domain as suggested by Jan Beulich
- some style issues corrected as requested by Jan Beulich
- use fixed width types in interface as requested by Jan Beulich
- add compat layer checking as requested by Jan Beulich


Juergen Gross (3):
  libxc: do some retries in xc_cpupool_removecpu() for EBUSY case
  libxl: print message how to recover from xl cpupool-cpu-remove errors
  libxl: add force option for xl vcpu-pin

 docs/man/xl.pod.1         |  7 ++++++-
 tools/libxc/xc_cpupool.c  | 20 +++++++++++++++++++-
 tools/libxl/libxl.c       | 31 +++++++++++++++++++++++++------
 tools/libxl/libxl.h       | 10 ++++++++++
 tools/libxl/xl_cmdimpl.c  | 32 +++++++++++++++++++++++++++-----
 tools/libxl/xl_cmdtable.c |  3 ++-
 6 files changed, 89 insertions(+), 14 deletions(-)

Cc: Dario Faggioli <dario.faggioli@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
-- 
2.6.2


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2016-04-14 19:15 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-10  5:27 [PATCH v4 0/3] add hypercall option to temporarily pin a vcpu Juergen Gross
2016-03-10  5:27 ` [PATCH v4 1/3] libxc: do some retries in xc_cpupool_removecpu() for EBUSY case Juergen Gross
2016-03-10 10:26   ` Dario Faggioli
2016-03-10 17:16   ` Wei Liu
2016-04-12 13:02   ` Olaf Hering
2016-04-12 13:45     ` Juergen Gross
2016-04-12 13:50       ` Olaf Hering
2016-04-12 13:57       ` Wei Liu
2016-04-14 16:04   ` Ian Jackson
2016-03-10  5:27 ` [PATCH v4 2/3] libxl: print message how to recover from xl cpupool-cpu-remove errors Juergen Gross
2016-04-14 16:06   ` Ian Jackson
2016-04-14 17:10     ` Dario Faggioli
2016-04-14 17:22       ` Ian Jackson
2016-04-14 17:27         ` Dario Faggioli
2016-03-10  5:27 ` [PATCH v4 3/3] libxl: add force option for xl vcpu-pin Juergen Gross
2016-03-10 10:25   ` Dario Faggioli
2016-03-10 17:17   ` Wei Liu
2016-04-14 16:10   ` Ian Jackson
2016-04-14 17:18     ` Dario Faggioli
2016-03-22  7:36 ` [PATCH v4 0/3] add hypercall option to temporarily pin a vcpu Juergen Gross
2016-03-24 14:03   ` Wei Liu
2016-03-24 17:58     ` Juergen Gross
2016-03-24 19:41       ` Wei Liu
2016-03-30 10:28         ` Juergen Gross
2016-03-30 14:23           ` Konrad Rzeszutek Wilk
2016-04-14 16:11             ` Ian Jackson
2016-04-14 19:15               ` Konrad Rzeszutek Wilk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).