In case of a kernel panic it is currently possible to specify that a dumpshould be created, the system should be rebooted or stopped. Virtual sysfsfiles under the directory /sys/firmware/ are used for that configuration.In addition to that, there are kernel parameters 'vmhalt', 'vmpoff'and 'vmpanic', which can be used to specify z/VM commands, which areautomatically executed in case of halt, power off or a kernel panic.This patch combines both functionalities and allows to specify the z/VM CPcommands also via sysfs attributes. In addition to that, it enhances theexisting handling of shutdown triggers (e.g. halt or panic) and associatedshutdown actions (e.g. dump or reipl) and makes it more flexible.