#
af7b0868 |
| 06-Dec-2011 |
Matt Evans <matt@ozlabs.org> |
kvm tools: Split x86 arch-specific bits into x86/
Create a new arch-specific subdirectory to contain architecture-specific code and includes.
The Makefile now adds various arch-specific objects bas
kvm tools: Split x86 arch-specific bits into x86/
Create a new arch-specific subdirectory to contain architecture-specific code and includes.
The Makefile now adds various arch-specific objects based on detected architecture. That aside, this patch should only contain code moves. These include:
- x86-specific kvm_cpu setup, kernel loading, memory setup etc. now in x86/kvm{-cpu}.c - BIOS now lives in x86/bios/ - ioport setup - KVM extensions are asserted in arch-specific kvm.c now, so each architecture can manage its own dependencies. - Various architecture-specific #defines are moved into $(ARCH)/include/kvm{-cpu}.h such as struct kvm_cpu, KVM_NR_CPUS, KVM_32BIT_GAP_SIZE.
Signed-off-by: Matt Evans <matt@ozlabs.org> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
8a585d13 |
| 02-Dec-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Remove double 'init=' kernel param
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
|
#
a8e6b4b9 |
| 17-Nov-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Add '--no-dhcp' to disable kernel DHCP
This new option disables the kernel DHCP which runs when starting a custom rootfs.
This is useful when we want to start a rootfs but are using a ne
kvm tools: Add '--no-dhcp' to disable kernel DHCP
This new option disables the kernel DHCP which runs when starting a custom rootfs.
This is useful when we want to start a rootfs but are using a network other than the usermode IP proxy (a network which doesn't provide DHCP).
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
9ed67cdc |
| 16-Nov-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Add vhost-net support
This patch adds support to using the vhost-net device when using a tap backed virtio-net device.
Activating vhost-net is done by appending a 'vhost=1' flag to the n
kvm tools: Add vhost-net support
This patch adds support to using the vhost-net device when using a tap backed virtio-net device.
Activating vhost-net is done by appending a 'vhost=1' flag to the net device configuration. For example:
'kvm run -n mode=tap,vhost=1'
This improves performance as follows:
Short version ------------------
TCP Throughput: +29% UDP Throughput: +10% TCP Latency: -15% UDP Latency: -12%
Long version ------------------
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) port 0 AF_INET Recv Send Send Socket Socket Message Elapsed Size Size Size Time Throughput bytes bytes bytes secs. 10^6bits/sec
87380 16384 16384 10.00 4895.04
MIGRATED UDP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) port 0 AF_INET Socket Message Elapsed Messages Size Size Time Okay Errors Throughput bytes bytes secs # # 10^6bits/sec
229376 65507 10.00 125287 0 6565.60 229376 10.00 106910 5602.57
MIGRATED TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) port 0 AF_INET : first burst 0 Local /Remote Socket Size Request Resp. Elapsed Trans. Send Recv Size Size Time Rate bytes Bytes bytes bytes secs. per sec
16384 87380 1 1 10.00 14811.55
MIGRATED UDP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) port 0 AF_INET : first burst 0 Local /Remote Socket Size Request Resp. Elapsed Trans. Send Recv Size Size Time Rate bytes Bytes bytes bytes secs. per sec
229376 229376 1 1 10.00 16000.44 229376 229376
After:
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) port 0 AF_INET Recv Send Send Socket Socket Message Elapsed Size Size Size Time Throughput bytes bytes bytes secs. 10^6bits/sec
87380 16384 16384 10.00 6340.74
MIGRATED UDP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) port 0 AF_INET Socket Message Elapsed Messages Size Size Time Okay Errors Throughput bytes bytes secs # # 10^6bits/sec
229376 65507 10.00 131478 0 6890.09 229376 10.00 118136 6190.90
MIGRATED TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) port 0 AF_INET : first burst 0 Local /Remote Socket Size Request Resp. Elapsed Trans. Send Recv Size Size Time Rate bytes Bytes bytes bytes secs. per sec
16384 87380 1 1 10.00 17126.10
MIGRATED UDP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) port 0 AF_INET : first burst 0 Local /Remote Socket Size Request Resp. Elapsed Trans. Send Recv Size Size Time Rate bytes Bytes bytes bytes secs. per sec
229376 229376 1 1 10.00 17944.51 Cc: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
c271766b |
| 09-Nov-2011 |
Cyrill Gorcunov <gorcunov@gmail.com> |
kvm tools: Drop "notsc" no longer needed kernel option
"notsc" option has been used to avoid APIC calibration problem at early days when we didn't support APIC at all.
Now with KVM APIC emulation u
kvm tools: Drop "notsc" no longer needed kernel option
"notsc" option has been used to avoid APIC calibration problem at early days when we didn't support APIC at all.
Now with KVM APIC emulation used there is no longer need for this option. Drop it.
Reported-by: Richard Weinberger <richard@nod.at> Tested-by: Richard Weinberger <richard@nod.at> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
b7d2f013 |
| 21-Oct-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Allow piping debug output to file descriptor
This patch makes debug output go to a 'debug_fd' instead of stdout.
Doing so allows us to send the output to a different console when require
kvm tools: Allow piping debug output to file descriptor
This patch makes debug output go to a 'debug_fd' instead of stdout.
Doing so allows us to send the output to a different console when required.
This patch also changes the behaviour of 'kvm debug' to show the debug output in the console that executed the debug command instead of in the console of the guest.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> 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 ...
|
#
9a6d73f1 |
| 28-Sep-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Support multiple net devices
This patch adds support for multiple network devices. The command line syntax changes to the following:
--network/-n [mode=tap/user/none][,guest_ip=ip][,hos
kvm tools: Support multiple net devices
This patch adds support for multiple network devices. The command line syntax changes to the following:
--network/-n [mode=tap/user/none][,guest_ip=ip][,host_ip= ip][,guest_mac=mac][,script=file]
Each of the parameters is optional, and the config defaults to a TAP based networking with a sequential MAC.
Acked-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
69c88b95 |
| 14-Sep-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Use host's resolv.conf within the guest
Since kernel IP autoconfiguration doesn't set up /etc/resolv.conf, we'll use the one located within the host, since this was anyway what we simulat
kvm tools: Use host's resolv.conf within the guest
Since kernel IP autoconfiguration doesn't set up /etc/resolv.conf, we'll use the one located within the host, since this was anyway what we simulated within the DHCP offer packets.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
show more ...
|
#
1add4b76 |
| 16-Sep-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Allow remapping guest TTY into host PTS
This patch adds the '-tty' option to 'kvm run' which allows the user to remap a guest TTY into a PTS on the host.
Usage: 'kvm run --tty [i
kvm tools: Allow remapping guest TTY into host PTS
This patch adds the '-tty' option to 'kvm run' which allows the user to remap a guest TTY into a PTS on the host.
Usage: 'kvm run --tty [id]'
The tty will be mapped to a pts and will be printed on the screen: ' Info: Assigned terminal 1 to pty /dev/pts/X'
At this point, it is possible to communicate with the guest using that pty.
This is useful for debugging guest kernel using KGDB:
1. Run the guest: 'kvm run -k [vmlinuz] -p "kgdboc=ttyS1 kgdbwait" --tty 1'
And see which PTY got assigned to ttyS1.
2. Run GDB on the host: 'gdb [vmlinuz]'
3. Connect to the guest (from within GDB): 'target remote /dev/pty/X'
4. Start debugging! (enter 'continue' to continue boot).
Cc: David Evensky <evensky@dancer.ca.sandia.gov> Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
show more ...
|
#
d1f3131d |
| 14-Sep-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Don't use i8042 AUX port
We are enabling i8042 even without VNC or SDL so that we could use it's reset method to reboot the guest.
AUX port might cause delays during boot. Disable it if
kvm tools: Don't use i8042 AUX port
We are enabling i8042 even without VNC or SDL so that we could use it's reset method to reboot the guest.
AUX port might cause delays during boot. Disable it if the user didn't ask for VNC or SDL.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
575a9e3f |
| 14-Sep-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Use kernel dhcp for network autoconfiguration
This patch removes the manual/usermode dhcp client configuration and instead uses the DHCP client built within the kernel.
Since this client
kvm tools: Use kernel dhcp for network autoconfiguration
This patch removes the manual/usermode dhcp client configuration and instead uses the DHCP client built within the kernel.
Since this client is tightly integrated with NFS (if NFS config is set), we will add a specific NFS root addr in our DHCP offer to point it to a non existent address so that we won't hang trying to poke it for our root.
Acked-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
72f1ad6d |
| 14-Sep-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Fix 32bit build errors
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
|
#
65962be9 |
| 07-Sep-2011 |
Hagen Paul Pfeifer <hagen@jauu.net> |
kvm tools: remove addr_type - unused but set variable
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
|
#
c8675741 |
| 12-Sep-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Modify 'kvm run' to use virt fs
'kvm run' will now create a 'default' profile and boot into it.
Currently we boot into rw rootfs of the host, which is risky. Instead, we can boot in a 's
kvm tools: Modify 'kvm run' to use virt fs
'kvm run' will now create a 'default' profile and boot into it.
Currently we boot into rw rootfs of the host, which is risky. Instead, we can boot in a 'safe' enviroment with networking.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
82d65b5e |
| 05-Sep-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Teach 'run' to handle guestfs
This patch allows to run previously created guestfs by simply specifying it with the '-d' parameter.
This allows running guestfs which were created before u
kvm tools: Teach 'run' to handle guestfs
This patch allows to run previously created guestfs by simply specifying it with the '-d' parameter.
This allows running guestfs which were created before using:
kvm setup -n [name]
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
ff42603f |
| 05-Sep-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Attach default 'root=' only if required
This patch fixes a case where the 'root=' parameter was passed twice when using virtio-9p root mode.
Signed-off-by: Sasha Levin <levinsasha928@gma
kvm tools: Attach default 'root=' only if required
This patch fixes a case where the 'root=' parameter was passed twice when using virtio-9p root mode.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
95d13a52 |
| 29-Aug-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Add ivshmem device
The patch adds an ivshmem device which can be used to share memory between guests on the same host.
This implementation is lacking inter-guest communication which shou
kvm tools: Add ivshmem device
The patch adds an ivshmem device which can be used to share memory between guests on the same host.
This implementation is lacking inter-guest communication which should be implemented later once information regarding the client-server protocol is gathered, though infrastructure used to add and remove clients already exists in the patch (but isn't used anywhere).
Patch is based on David Evansky's shmem device.
Original-patch-by: David Evensky <evensky@sandia.gov> Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
c797b6c6 |
| 22-Aug-2011 |
Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> |
kvm tools, 9p: Implement 9p2000.L extensions
This patch implement dotl protocol for the server. 9p2000.L enables better interop with Linux client and offers larger set of features.
Acked-by: Sasha
kvm tools, 9p: Implement 9p2000.L extensions
This patch implement dotl protocol for the server. 9p2000.L enables better interop with Linux client and offers larger set of features.
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 ...
|
#
c7838fbd |
| 22-Aug-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Separate virtio-pci layer out of virtio-9p
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
|
#
e6694207 |
| 18-Aug-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Guest kernel compatability
The problem of users running kernel which wasn't built for kvm tools is somewhat common. Usualy the result is a panic during boot and a user whos' stuck and doe
kvm tools: Guest kernel compatability
The problem of users running kernel which wasn't built for kvm tools is somewhat common. Usualy the result is a panic during boot and a user whos' stuck and doesn't know what to do next.
Compatability checks try to solve this issue by giving the user a meaningfull error message which can explain whats going on and how he can fix it.
The idea is to register the device during device init and unregister the device when the device has been 'used'. In case the kernel didn't access the device before the guest is shut down, the host will notify the user that something is wrong.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
cf55d6ae |
| 17-Aug-2011 |
Liming Wang <walimisdev@gmail.com> |
kvm tools: change option type of RNG from increment to boolean
Becasue virtio random generator is a single device, change its option type to boolean.
Signed-off-by: Liming Wang <walimisdev@gmail.co
kvm tools: change option type of RNG from increment to boolean
Becasue virtio random generator is a single device, change its option type to boolean.
Signed-off-by: Liming Wang <walimisdev@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
8f239c84 |
| 11-Aug-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Speed up PS/2 mouse detection
This patch speeds up PS/2 mouse detection by switching to the fastest probing method compatible with kvm tools i8042 emulation.
The result is detection taki
kvm tools: Speed up PS/2 mouse detection
This patch speeds up PS/2 mouse detection by switching to the fastest probing method compatible with kvm tools i8042 emulation.
The result is detection taking < 0.5 sec instead of >5 sec.
Tested-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
ece09f8f |
| 11-Aug-2011 |
Pekka Enberg <penberg@kernel.org> |
kvm tools: Organize includes in builtin-run.c
This patch organizes the includes in builtin-run.c so that KVM tool local headers are included first, then Linux kernel headers, and finally system head
kvm tools: Organize includes in builtin-run.c
This patch organizes the includes in builtin-run.c so that KVM tool local headers are included first, then Linux kernel headers, and finally system headers.
This helps in keeping headers dependencies in check so that they can be included by themselves.
Cc: Asias He <asias.hejun@gmail.com> Cc: Cyrill Gorcunov <gorcunov@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Prasad Joshi <prasadjoshi124@gmail.com> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|