All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/4] remove libxenctrl usage from xenstored
@ 2021-09-14 12:35 Juergen Gross
  2021-09-14 12:35 ` [PATCH RFC 1/4] xen: add a domain unique id to each domain Juergen Gross
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Juergen Gross @ 2021-09-14 12:35 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, Andrew Cooper, George Dunlap, Ian Jackson,
	Jan Beulich, Julien Grall, Stefano Stabellini, Wei Liu,
	Daniel De Graaf, Daniel P. Smith, Volodymyr Babchuk,
	Roger Pau Monné

Xenstored is using libxenctrl for only one purpose: to get information
about state of domains.

This RFC patch series is removing that dependency by introducing a new
stable interface which can be used by xenstored instead.

I have chosen to add a new hypercall with sub-commands. This can be
changed, of course, but I thought this would be a good step towards
stable control interfaces for the Xen tools.

I have done only very little testing (basically normal domain creation
and deletion). In case my approach is being accepted I'll do a more
thorough test.

What is missing right now is some cleanup (e.g. the need to allow
the dominfo operation of the domctl hypercall for a stubdom based
Xenstore could be removed). For Mini-OS some more work is needed to
remove the dependency to libxenctrl for xenstore-stubdom, as Mini-OS
can't be configured to use libxenevent and libxengnttab, but not
libxenctrl today. Again, I'll do that cleanup in case the series is
generally accepted.

Juergen Gross (4):
  xen: add a domain unique id to each domain
  xen: add bitmap to indicate per-domain state changes
  xen: add new stable control hypercall
  tools/xenstore: use new stable interface instead of libxenctrl

 tools/flask/policy/modules/dom0.te  |   2 +-
 tools/xenstore/Makefile             |   3 +-
 tools/xenstore/xenstored_control.c  |  14 +-
 tools/xenstore/xenstored_domain.c   | 219 +++++++++++++++-------------
 xen/arch/arm/traps.c                |   1 +
 xen/arch/x86/hvm/hypercall.c        |   1 +
 xen/arch/x86/hypercall.c            |   1 +
 xen/arch/x86/pv/hypercall.c         |   1 +
 xen/common/Makefile                 |   1 +
 xen/common/control.c                |  52 +++++++
 xen/common/domain.c                 |  76 ++++++++++
 xen/common/event_channel.c          |  11 +-
 xen/include/Makefile                |   1 +
 xen/include/public/control.h        |  80 ++++++++++
 xen/include/public/xen.h            |   1 +
 xen/include/xen/event.h             |   6 +
 xen/include/xen/hypercall.h         |   5 +
 xen/include/xen/sched.h             |   7 +
 xen/include/xsm/dummy.h             |  14 ++
 xen/include/xsm/xsm.h               |   6 +
 xen/xsm/dummy.c                     |   1 +
 xen/xsm/flask/hooks.c               |   6 +
 xen/xsm/flask/policy/access_vectors |   2 +
 23 files changed, 402 insertions(+), 109 deletions(-)
 create mode 100644 xen/common/control.c
 create mode 100644 xen/include/public/control.h

-- 
2.26.2



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

end of thread, other threads:[~2021-11-25 11:01 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 12:35 [PATCH RFC 0/4] remove libxenctrl usage from xenstored Juergen Gross
2021-09-14 12:35 ` [PATCH RFC 1/4] xen: add a domain unique id to each domain Juergen Gross
2021-11-22 10:01   ` Jan Beulich
2021-11-22 11:42   ` Julien Grall
2021-11-22 12:48     ` Juergen Gross
2021-11-22 14:10       ` Julien Grall
2021-11-22 14:29         ` Juergen Gross
2021-11-22 14:37           ` Julien Grall
2021-11-25  6:32             ` Juergen Gross
2021-09-14 12:35 ` [PATCH RFC 2/4] xen: add bitmap to indicate per-domain state changes Juergen Gross
2021-09-23  9:16   ` Julien Grall
2021-11-22 10:41   ` Jan Beulich
2021-11-22 12:46     ` Juergen Gross
2021-11-22 13:39       ` Jan Beulich
2021-11-25  6:30         ` Juergen Gross
2021-09-14 12:35 ` [PATCH RFC 3/4] xen: add new stable control hypercall Juergen Gross
2021-11-22 15:39   ` Jan Beulich
2021-11-25  6:55     ` Juergen Gross
2021-11-25  9:38       ` Jan Beulich
2021-11-25 10:12         ` Juergen Gross
2021-11-25 10:19           ` Jan Beulich
2021-11-25 10:33             ` Juergen Gross
2021-11-25 10:51               ` Jan Beulich
2021-11-25 11:00                 ` Juergen Gross
2021-09-14 12:36 ` [PATCH RFC 4/4] tools/xenstore: use new stable interface instead of libxenctrl 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.