aboutsummaryrefslogtreecommitdiffstats
path: root/tools/misc/xen-hptool.c
Commit message (Collapse)AuthorAgeFilesLines
* tools/misc/xen-hptool: Silently retry on CPU hotplug EBUSY failure.Keir Fraser2011-01-141-2/+17
| | | | | | | | EBUSY is a legitimate soft failure, due to inability to acquire a lock, or because RCU work has not been done since a CPU was last offlined. Signed-off-by: Keir Fraser <keir@xen.org>
* libxc: convert evtchn interfaces to use an opaque handle typeIan Campbell2010-12-231-4/+5
| | | | | | | | | | | | This makes the interface consistent with the changes made to the main interface in 21483:779c0ef9682c. Also fix some references to "struct xc_interface" which should have been simply "xc_interface" in tools/xenpaging, and update QEMU_TAG to pull in the corresponding qemu change. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxc: eliminate static variables, use xentoollog; API changeKeir Fraser2010-05-281-17/+17
| | | | | | | | | | | | | | | | | | | | This patch eliminate the global variables in libxenctrl (used for logging and error reporting). Instead the information which was in the global variables is now in a new xc_interface* opaque structure, which xc_interface open returns instead of the raw file descriptor; furthermore, logging is done via xentoollog. There are three new parameters to xc_interface_open to control the logging, but existing callers can just pass "0" for all three to get the old behaviour. All libxc callers have been adjusted accordingly. Also update QEMU_TAG for corresponding qemu change. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xen-hptool: A few usage cleanups.Keir Fraser2010-05-191-23/+26
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xen-hptool: Fix after interface change to xc_suspend_evtchn_release().Keir Fraser2010-05-041-2/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Tools: add online/offline hotplug user interfacesKeir Fraser2010-04-211-0/+329
Exporting cpu on/offline and memory on/offline hotplug interfaces, so that users can do those (memory/cpu) hotplug actions with following command line freely: usage: xen-hptool <command> [args] xen-hptool command list:\n\n cpu-online <cpuid> online CPU <cpuid> cpu-offline <cpuid> offline CPU <cpuid> mem-online <mfn> online MEMORY <mfn> mem-offline <mfn> offline MEMORY <mfn> mem-status <mfn> query Memory status<mfn> Signed-off-by: Yunhong Jiang<yunhong.jiang@intel.com> Signed-off-by: Liping Ke <liping.ke@intel.com>