#
745c7231 |
| 29-Jun-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Make default host ip address to 192.168.33.1
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
|
#
bd30e200 |
| 29-Jun-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Make default network mode to user mode
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
|
#
a0db70d9 |
| 29-Jun-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Change default guest MAC address to 00:15:15:15:15:15
This patch makes guest MAC address the last portion of default guest IP address which is 192.168.33.15.
Signed-off-by: Asias He <asi
kvm tools: Change default guest MAC address to 00:15:15:15:15:15
This patch makes guest MAC address the last portion of default guest IP address which is 192.168.33.15.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
ec7674d7 |
| 29-Jun-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Introduce -net {user, tap, none} options for virtio net
Use '-net user' to enable user model network, which enables plain user without speical privileges to use network in guest.
Use '-n
kvm tools: Introduce -net {user, tap, none} options for virtio net
Use '-net user' to enable user model network, which enables plain user without speical privileges to use network in guest.
Use '-net tap' to enable tap based network, which requres special privileges.
Use '-net none' to disable virtio net.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
ea7016a9 |
| 17-Jun-2011 |
Pekka Enberg <penberg@kernel.org> |
kvm run: Add 'panic=1' to default kernel options
Now that we support machine reset via i8042, add 'panic=1' to default kernel options to make sure we exit the hypervisor if the guest kernel panics.
kvm run: Add 'panic=1' to default kernel options
Now that we support machine reset via i8042, add 'panic=1' to default kernel options to make sure we exit the hypervisor if the guest kernel panics.
Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
714e5b7f |
| 17-Jun-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Implement keyboard reset method
Implement the keyboard reset method which allows guest kernel to reboot the guest using the keyboard controller.
This will allow guest kernel to reboot th
kvm tools: Implement keyboard reset method
Implement the keyboard reset method which allows guest kernel to reboot the guest using the keyboard controller.
This will allow guest kernel to reboot the guest when it needs to, for example - kernel panic (when passing "panic=1" as kernel parameter).
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
b4422bf3 |
| 17-Jun-2011 |
Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> |
tools/kvm/9p: Add support for multiple 9p export dirs
Acked-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Pekka Enberg <p
tools/kvm/9p: Add support for multiple 9p export dirs
Acked-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
06761c76 |
| 16-Jun-2011 |
Pekka Enberg <penberg@kernel.org> |
kvm tools: Fix 'kvm run' on 32-bit machines with >2 GB of RAM
This patch fixes the following nasty 'kvm run' startup problem that's caused by 'long' and 'u64' mixup in the code:
$ ./kvm run F
kvm tools: Fix 'kvm run' on 32-bit machines with >2 GB of RAM
This patch fixes the following nasty 'kvm run' startup problem that's caused by 'long' and 'u64' mixup in the code:
$ ./kvm run Fatal: out of memory
Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
aa400b00 |
| 10-Jun-2011 |
Prasad Joshi <prasadjoshi124@gmail.com> |
kvm tools: Add IO delay option
Add a command line debug option to add a fix amount of delay in read and write operation.
From Ingo "the delays are *constant* [make sure you use a high-res timers ke
kvm tools: Add IO delay option
Add a command line debug option to add a fix amount of delay in read and write operation.
From Ingo "the delays are *constant* [make sure you use a high-res timers kernel], so they do not result in nearly as much measurement noise as real block IO does. [...] This way you are basically 'emulating' a real disk drive but you will emulate uniform latencies, which makes measurements a lot more reliable - while still relevant to the end result."
Suggested-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Prasad Joshi <prasadjoshi124@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
890364f8 |
| 07-Jun-2011 |
Cyrill Gorcunov <gorcunov@gmail.com> |
kvm tools: Introduce vidmode parmeter
Usually this might be set by loader but since we're the loader lets allow to specify vesa mode as well.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Sig
kvm tools: Introduce vidmode parmeter
Usually this might be set by loader but since we're the loader lets allow to specify vesa mode as well.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
175f8e86 |
| 06-Jun-2011 |
Pekka Enberg <penberg@kernel.org> |
kvm tools, ui: Add simple keyboard support to SDL UI
This patch wires up hw/i8042.c to the SDL UI for simple guest keyboard support.
Cc: Cyrill Gorcunov <gorcunov@gmail.com> Cc: Ingo Molnar <mingo@
kvm tools, ui: Add simple keyboard support to SDL UI
This patch wires up hw/i8042.c to the SDL UI for simple guest keyboard support.
Cc: Cyrill Gorcunov <gorcunov@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: John Floren <john@jfloren.net> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
3f838fec |
| 03-Jun-2011 |
Pekka Enberg <penberg@kernel.org> |
kvm tools, ui: Add support for SDL framebuffer output target
This patch adds support for SDL based framebuffer. Use the '--sdl' command line option to enable the feature.
Acked-by: Ingo Molnar <min
kvm tools, ui: Add support for SDL framebuffer output target
This patch adds support for SDL based framebuffer. Use the '--sdl' command line option to enable the feature.
Acked-by: Ingo Molnar <mingo@elte.hu> Cc: Cyrill Gorcunov <gorcunov@gmail.com> Cc: John Floren <john@jfloren.net> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
aba1efa5 |
| 03-Jun-2011 |
Pekka Enberg <penberg@kernel.org> |
kvm tools, ui: Move VNC specific framebuffer code to ui/vnc.c
This patch makes use of 'struct framebuffer' and moves the VNC code to ui/vnc.c in preparation for other framebuffer output targets.
Ac
kvm tools, ui: Move VNC specific framebuffer code to ui/vnc.c
This patch makes use of 'struct framebuffer' and moves the VNC code to ui/vnc.c in preparation for other framebuffer output targets.
Acked-by: Ingo Molnar <mingo@elte.hu> Cc: Cyrill Gorcunov <gorcunov@gmail.com> Cc: John Floren <john@jfloren.net> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
e342083c |
| 01-Jun-2011 |
John Floren <john@jfloren.net> |
kvm tools: Add support for PS/2 keyboard system
Add support for PS/2 keyboard system with AUX device (aka mouse). The device works with vnc, the guest must be started with the '--vnc' parameter for
kvm tools: Add support for PS/2 keyboard system
Add support for PS/2 keyboard system with AUX device (aka mouse). The device works with vnc, the guest must be started with the '--vnc' parameter for the device to be initialized.
Signed-off-by: John Floren <john@jfloren.net> [ turn into patch and clean up code ] Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
d94e22b9 |
| 30-May-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Pause/resume guest using SIGUSR2
Make SIGUSR2 pause/resume a guest, this allows to easily test pausing a guest. Can be tested using cmdline 'kill -USR2 $(pidof kvm)'.
Signed-off-by: Sash
kvm tools: Pause/resume guest using SIGUSR2
Make SIGUSR2 pause/resume a guest, this allows to easily test pausing a guest. Can be tested using cmdline 'kill -USR2 $(pidof kvm)'.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
4298ddad |
| 30-May-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Add APIs to allow pausing guests
Allow pausing and unpausing guests running on the host. Pausing a guest means that none of the VCPU threads are running KVM_RUN until they are unpaused.
kvm tools: Add APIs to allow pausing guests
Allow pausing and unpausing guests running on the host. Pausing a guest means that none of the VCPU threads are running KVM_RUN until they are unpaused.
The following API functions are added: void kvm__pause(void); void kvm__continue(void); void kvm__notify_paused(void);
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
37f3d50e |
| 27-May-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Add ioeventfd support
ioeventfd is way provided by KVM to receive notifications about reads and writes to PIO and MMIO areas within the guest.
Such notifications are usefull if all we ne
kvm tools: Add ioeventfd support
ioeventfd is way provided by KVM to receive notifications about reads and writes to PIO and MMIO areas within the guest.
Such notifications are usefull if all we need to know is that a specific area of the memory has been changed, and we don't need a heavyweight exit to happen.
The implementation uses epoll to scale to large number of ioeventfds.
Benchmarks ran on a seperate (non boot) 1GB virtio-blk device, formatted as ext4, using bonnie++.
cmd line: # bonnie++ -d temp/ -c 2 -s 768 -u 0
Before: Version 1.96 ------Sequential Output------ --Sequential Input- --Random- Concurrency 2 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP tux 768M 498 99 381127 74 269712 48 2871 99 717109 50 +++++ +++ Latency 18368us 31063us 21281us 3017us 6875us 251ms Version 1.96 ------Sequential Create------ --------Random Create-------- tux -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ Latency 148us 588us 2792us 1547us 1543us 218us
After: Version 1.96 ------Sequential Output------ --Sequential Input- --Random- Concurrency 2 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP tux 768M 499 99 459779 73 350689 54 2997 99 860395 58 +++++ +++ Latency 17194us 14619us 26358us 4055us 7890us 44122us Version 1.96 ------Sequential Create------ --------Random Create-------- tux -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ Latency 135us 567us 2564us 134us 1500us 231us
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
656be1b8 |
| 26-May-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Exit VCPU thread only when SIGKVMEXIT is received
Currently the VCPU loop would exit when the thread received any signal.
Change behaviour to exit only when SIGKVMEXIT is received. This
kvm tools: Exit VCPU thread only when SIGKVMEXIT is received
Currently the VCPU loop would exit when the thread received any signal.
Change behaviour to exit only when SIGKVMEXIT is received. This change prevents from the guest to terminate when unrelated signals are processed by the thread (for example, when attaching a debugger).
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
80ac1d05 |
| 26-May-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Add support for multiple virtio-rng devices
Since multiple hardware rng devices of the same type are currently unsupported by the kernel, this serves more as an example of a basic virtio
kvm tools: Add support for multiple virtio-rng devices
Since multiple hardware rng devices of the same type are currently unsupported by the kernel, this serves more as an example of a basic virtio driver under kvm tools and can be used to debug the PCI layer.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
5ffd4178 |
| 23-May-2011 |
John Floren <john@jfloren.net> |
kvm tools: Initialize and use VESA and VNC
Requirements - Kernel compiled with: CONFIG_FB_BOOT_VESA_SUPPORT=y CONFIG_FB_VESA=y CONFIG_FRAMEBUFFER_CONSOLE=y
Start VNC server by starting kvm tools wi
kvm tools: Initialize and use VESA and VNC
Requirements - Kernel compiled with: CONFIG_FB_BOOT_VESA_SUPPORT=y CONFIG_FB_VESA=y CONFIG_FRAMEBUFFER_CONSOLE=y
Start VNC server by starting kvm tools with "--vnc". Connect to the VNC server by running: "vncviewer :0".
Since there is no support for input devices at this time, it may be useful starting kvm tools with an additional ' -p "console=ttyS0" ' parameter so that it would be possible to use a serial console alongside with a graphic one.
Signed-off-by: John Floren <john@jfloren.net> [ turning code into patches and cleanup ] Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
a0a1e3c2 |
| 22-May-2011 |
Prasad Joshi <prasadjoshi124@gmail.com> |
kvm tools: Release memory allocated during virtio block initialization
Add a new function virtio_blk__delete() goes through array of block devices and releases memory allocated for block device.
Si
kvm tools: Release memory allocated during virtio block initialization
Add a new function virtio_blk__delete() goes through array of block devices and releases memory allocated for block device.
Signed-off-by: Prasad Joshi <prasadjoshi124@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
bcb6aaca |
| 22-May-2011 |
Prasad Joshi <prasadjoshi124@gmail.com> |
kvm tools: Add a wrapper function to initialize all virtio block devices
The patch moves the code for initialization of all of the virtio block devices to virtio subsystem.
Signed-off-by: Prasad Jo
kvm tools: Add a wrapper function to initialize all virtio block devices
The patch moves the code for initialization of all of the virtio block devices to virtio subsystem.
Signed-off-by: Prasad Joshi <prasadjoshi124@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
9df47d00 |
| 22-May-2011 |
Prasad Joshi <prasadjoshi124@gmail.com> |
kvm tools: Close the disk images after the guest shuts down
Signed-off-by: Prasad Joshi <prasadjoshi124@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
|
#
c1ed214e |
| 22-May-2011 |
Prasad Joshi <prasadjoshi124@gmail.com> |
kvm tools: Add a wrapper function to open disk images
The patch was suggested by Ingo to move the disk image subsystem code from the kvm-run.c file. The code to open all of the specified disk images
kvm tools: Add a wrapper function to open disk images
The patch was suggested by Ingo to move the disk image subsystem code from the kvm-run.c file. The code to open all of the specified disk images is now moved to a wrapper function in disk/core.c.
Signed-off-by: Prasad Joshi <prasadjoshi124@gmail.com> Suggested-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
1c7850f9 |
| 20-May-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Add virtio-9p
Overview: 9p allows for simple RPC based resource sharing over different transports (in our case, virtio).
This is the implementation of (most of) the original 9p2000 proto
kvm tools: Add virtio-9p
Overview: 9p allows for simple RPC based resource sharing over different transports (in our case, virtio).
This is the implementation of (most of) the original 9p2000 protocol, without the .u or the .l extensions.
How to use: 1. Make sure kernel is compiled with: CONFIG_NET_9P=y CONFIG_NET_9P_VIRTIO=y CONFIG_NET_9P_DEBUG=y (At least until code is stable) CONFIG_9P_FS=y
2. Start KVM with '--virtio-9p <dirname>'. What happens now is that a virtio transport with the name 'kvm_9p' is created. The server side of the transport maps dirname to the root of the file system.
3. Within the guest, mount the fs: mount -t 9p -otrans=virtio kvm_9p <local_dir> -oversion=9p2000 This will mount the 9p server to local_dir.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|