All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0 of 3] libxl: domain shutdown cleanup
@ 2011-12-13 16:24 Ian Campbell
  2011-12-13 16:24 ` [PATCH 1 of 3] libxl: add libxl__domain_pvcontrol_{available, read, write} Ian Campbell
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ian Campbell @ 2011-12-13 16:24 UTC (permalink / raw)
  To: xen-devel; +Cc: ian.jackson

The existing libxl_domain_shutdown is a bit odd, it takes an integer
"req" which can be used to indicate one of:
  * [0] = "poweroff",
  * [1] = "reboot",
  * [2] = "suspend",
  * [3] = "crash",
  * [4] = "halt",

"suspend" is not usable via this interface since it requires other
scaffolding, libxl_domain_suspend provides this already.

"halt" is the same as "poweroff".

"crash" is unused and at least Linux does not implement it. If a user
steps forward then libxl_domain_crash is trivial to add.

Therefore split libxl_domain_shutdown into libxl_domain_shutdown and
libxl_domain_reboot corresponding to "poweroff" and "reboot"
respectively.

Also push responsibility for dealing with lack of PV drivers into the
caller and at the same time improve the error messages presented to
the user when they try and "xl shutdown/reboot" an HVM guest with no
PV drivers and the corresponding documentation.

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

end of thread, other threads:[~2011-12-15 17:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-13 16:24 [PATCH 0 of 3] libxl: domain shutdown cleanup Ian Campbell
2011-12-13 16:24 ` [PATCH 1 of 3] libxl: add libxl__domain_pvcontrol_{available, read, write} Ian Campbell
2011-12-13 16:24 ` [PATCH 2 of 3] libxl: split libxl_domain_shutdown into libxl_domain_shutdown & libxl_domain_reboot Ian Campbell
2011-12-13 17:11   ` Ian Campbell
2011-12-13 17:18     ` Ian Campbell
2011-12-15 17:05       ` Ian Jackson
2011-12-15 17:23         ` Ian Campbell
2011-12-13 16:24 ` [PATCH 3 of 3] libxl: report failure to reboot/shutdown due to lackof PV interfaces to caller Ian Campbell

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.