#
0cf9e1f4 |
| 06-Feb-2013 |
Michael Ellerman <michael@ellerman.id.au> |
kvm tools: Return error status in lkvm list
Currently list always returns 0, even if there was an error. Instead have it accumulate any errors and return that.
Signed-off-by: Michael Ellerman <mich
kvm tools: Return error status in lkvm list
Currently list always returns 0, even if there was an error. Instead have it accumulate any errors and return that.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
49dca54d |
| 27-Dec-2011 |
Lai Jiangshan <laijs@cn.fujitsu.com> |
kvm tools: Don't remove any file which is not created by itself
It is user's or other program's reponsibility, not the current program. Just try best to let the user know what happen. Also make prin
kvm tools: Don't remove any file which is not created by itself
It is user's or other program's reponsibility, not the current program. Just try best to let the user know what happen. Also make print_guest() keep the same behavior as do_debug() do_pause() ...etc. when it failed.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
08ffc82a |
| 27-Dec-2011 |
Lai Jiangshan <laijs@cn.fujitsu.com> |
kvm tools: Check the state before pause/resume
Let the user know what happened
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
|
#
0a56c424 |
| 27-Dec-2011 |
Lai Jiangshan <laijs@cn.fujitsu.com> |
kvm tools: Remove unused code for print_guest()
comm is unused ==> fscanf() is unused ==> fd is unused ==> proc_name is unused.
so all this code can be removed.
Signed-off-by: Lai Jiangshan <laijs
kvm tools: Remove unused code for print_guest()
comm is unused ==> fscanf() is unused ==> fd is unused ==> proc_name is unused.
so all this code can be removed.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
0579e1d7 |
| 22-Dec-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Use kvm_ipc__send to send IPC msg
No need to send IPC msg using bare write() any more.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
|
#
5bf27f05 |
| 22-Dec-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Respect paused status in ./lkvm list
'./lkvm list' does not give the correct vm status if the vm is paused currently.
This patch fixes this by using KVM_IPC_VMSTATE IPC cmd to query the
kvm tools: Respect paused status in ./lkvm list
'./lkvm list' does not give the correct vm status if the vm is paused currently.
This patch fixes this by using KVM_IPC_VMSTATE IPC cmd to query the vm status.
Suppose the guest is paused by ./lkvm pause:
Before:
asias@hj$ ./lkvm list PID NAME STATE ------------------------------------ 3036 guest-3036 running default shut off
After:
asias@hj$ ./lkvm list PID NAME STATE ------------------------------------ 3036 guest-3036 paused default shut off
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
8d2ff5da |
| 17-Dec-2011 |
Wanlong Gao <wanlong.gao@gmail.com> |
kvm tools: change the binary name from kvm to lkvm for commands' usage
Commands' usage : Change the binary name from *kvm* to *lkvm*, since commit ad3efb18 has done it.
Signed-off-by: Wanlong Gao <
kvm tools: change the binary name from kvm to lkvm for commands' usage
Commands' usage : Change the binary name from *kvm* to *lkvm*, since commit ad3efb18 has done it.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
3cbe80e8 |
| 16-Dec-2011 |
Lai Jiangshan <laijs@cn.fujitsu.com> |
kvm-tools: fix wrong "./lkvm list -i"
because the program name is changed, "./lkvm list -i" can't work now. This fix just remove the test: 1) this test is not reliable. 2) the target process can res
kvm-tools: fix wrong "./lkvm list -i"
because the program name is changed, "./lkvm list -i" can't work now. This fix just remove the test: 1) this test is not reliable. 2) the target process can respond for "get_pid()", it must be kvm-tool. (at least it is more reliable)
Acked-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
da08dcdb |
| 16-Dec-2011 |
Lai Jiangshan <laijs@cn.fujitsu.com> |
kvm-tools: remove unneed sprintf("%s")
it makes no sense.
Acked-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Pekka Enberg <penberg@ke
kvm-tools: remove unneed sprintf("%s")
it makes no sense.
Acked-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
78c684b1 |
| 26-Oct-2011 |
Osier Yang <jyang@redhat.com> |
kvm tools: Beautify kvm list output
With the patch, output of "kvm list" will be:
% ./kvm list PID NAME STATE ------------------------------------ 5270 test runn
kvm tools: Beautify kvm list output
With the patch, output of "kvm list" will be:
% ./kvm list PID NAME STATE ------------------------------------ 5270 test running test shut off default shut off
"not running" is changed into "shut off", as it might be other states which are "not running" in future? such as "paused".
Signed-off-by: Osier Yang <jyang@redhat.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
84e10404 |
| 25-Oct-2011 |
Pekka Enberg <penberg@kernel.org> |
kvm tools: Improve "kvm list" default output
This patch changes 'kvm list' default output to look as follows:
[penberg@tux kvm]$ ./kvm list PID GUEST 8156 guest-8156 default (not r
kvm tools: Improve "kvm list" default output
This patch changes 'kvm list' default output to look as follows:
[penberg@tux kvm]$ ./kvm list PID GUEST 8156 guest-8156 default (not running) test-box (not running)
Acked-by: Cyrill Gorcunov <gorcunov@gmail.com> Acked-by: Sasha Levin <levinsasha928@gmail.com> Cc: Asias He <asias.hejun@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
4b1addae |
| 16-Oct-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Switch to using UNIX sockets instead of signals
This patch changes the IPC method to use UNIX sockets instead of signals.
This allows for more flexibility in moving data between processe
kvm tools: Switch to using UNIX sockets instead of signals
This patch changes the IPC method to use UNIX sockets instead of signals.
This allows for more flexibility in moving data between processes, for example it would allow avoid printing output in the terminal of the guest.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
9667701c |
| 16-Oct-2011 |
Pekka Enberg <penberg@kernel.org> |
kvm tools: Use kvm__get_dir() helper function
This patch adds a kvm__get_dir() helper function that replaces open-coded uses of HOME_DIR and KVM_PID_FILE_PATH.
Cc: Asias He <asias.hejun@gmail.com>
kvm tools: Use kvm__get_dir() helper function
This patch adds a kvm__get_dir() helper function that replaces open-coded uses of HOME_DIR and KVM_PID_FILE_PATH.
Cc: Asias He <asias.hejun@gmail.com> Cc: Cyrill Gorcunov <gorcunov@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
076e946e |
| 13-Oct-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Add option to list rootfs in 'kvm list'
Previously we would only list running instances, now that we create rootfs instances it's appropriate to add a method to list them as well.
Sugges
kvm tools: Add option to list rootfs in 'kvm list'
Previously we would only list running instances, now that we create rootfs instances it's appropriate to add a method to list them as well.
Suggested-by: Ingo Molnar <mingo@elte.hu> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
0725673a |
| 12-Aug-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Connect existing command helpers to 'kvm help'
This patch connects usage helpers to 'kvm help' callbacks, allowing to see help about a command by doing 'kvm help [command]'.
Signed-off-b
kvm tools: Connect existing command helpers to 'kvm help'
This patch connects usage helpers to 'kvm help' callbacks, allowing to see help about a command by doing 'kvm help [command]'.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
8a09361d |
| 10-Aug-2011 |
Pekka Enberg <penberg@kernel.org> |
kvm tools: Improve 'kvm list' output
This patch improves 'kvm list' output to look more like 'ps':
$ ./kvm list PID GUEST 2820 guest-2820
Cc: Ingo Molnar <mingo@elte.hu> Cc: Sasha Levin <
kvm tools: Improve 'kvm list' output
This patch improves 'kvm list' output to look more like 'ps':
$ ./kvm list PID GUEST 2820 guest-2820
Cc: Ingo Molnar <mingo@elte.hu> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
886af5f2 |
| 10-Aug-2011 |
Liming Wang <walimisdev@gmail.com> |
kvm tools: convert callback to int and deal with the return value
callback function maybe fail, so we should deal with the return value.
Signed-off-by: Liming Wang <walimisdev@gmail.com> Signed-off
kvm tools: convert callback to int and deal with the return value
callback function maybe fail, so we should deal with the return value.
Signed-off-by: Liming Wang <walimisdev@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
ebc49f06 |
| 09-Aug-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Change method of retrieving process name
This patch changes './kvm list' to retrieve process name from '/proc/<pid>/stat' instead of '/proc/<pid>/comm' as it appears the latter does not e
kvm tools: Change method of retrieving process name
This patch changes './kvm list' to retrieve process name from '/proc/<pid>/stat' instead of '/proc/<pid>/comm' as it appears the latter does not exist by default on several systems.
Reported-by: Pradeep Kumar Surisetty <psuriset@linux.vnet.ibm.com> Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
1a0ef251 |
| 10-Jul-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Fix leaked descriptors
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
|
#
2a24f96d |
| 09-Jul-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Rename command source files
Rename kvm-[command] into builtin-[command] to prevent clashes with non-command files such as kvm-cpu.h
Suggested-by: Pekka Enberg <penberg@kernel.org> Signed
kvm tools: Rename command source files
Rename kvm-[command] into builtin-[command] to prevent clashes with non-command files such as kvm-cpu.h
Suggested-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
1b1577dc |
| 05-Jul-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Clean ghost pid files in 'kvm list'
When running 'kvm list', first make sure that the guest process is up and running before printing the entry.
Signed-off-by: Sasha Levin <levinsasha928
kvm tools: Clean ghost pid files in 'kvm list'
When running 'kvm list', first make sure that the guest process is up and running before printing the entry.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
9dba6721 |
| 03-Jul-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Add 'kvm list' command
Use 'kvm list' to list running virtual guest.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
|