#
c23d9748 |
| 11-Aug-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Make keyboard termination go through regular termination path
Instead of exiting directly when a user enters 'ctrl x + a', go through the regular termination path by stopping all VCPUs an
kvm tools: Make keyboard termination go through regular termination path
Instead of exiting directly when a user enters 'ctrl x + a', go through the regular termination path by stopping all VCPUs and letting the main thread handle it.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
54a4c4a6 |
| 11-Aug-2011 |
Liming Wang <walimisdev@gmail.com> |
kvm tools: ignore balloon signals by default to avoid balloon crash
If "kvm run" without balloon option, use "kvm balloon" may crash kvm. So ignore balloon signals by default to avoid this.
Signed-
kvm tools: ignore balloon signals by default to avoid balloon crash
If "kvm run" without balloon option, use "kvm balloon" may crash kvm. So ignore balloon signals by default to avoid this.
Signed-off-by: Liming Wang <walimisdev@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
5fd5abef |
| 10-Aug-2011 |
Pekka Enberg <penberg@kernel.org> |
Revert "kvm tools: Enable kernel DHCP autoconf by default"
This reverts commit f0aec23a91368e916a53e6072f2173bb481b1544.
Asias He writes:
'ip=dhcp' makes kernel try to use nfs as root fs which r
Revert "kvm tools: Enable kernel DHCP autoconf by default"
This reverts commit f0aec23a91368e916a53e6072f2173bb481b1544.
Asias He writes:
'ip=dhcp' makes kernel try to use nfs as root fs which results in a long time 'wait and fail' and finally fallback to 9p as root fs.
[ 1.688000] Sending DHCP requests ., OK [ 1.695000] IP-Config: Got DHCP answer from 192.168.33.1, my address is 192.168.33.15 [ 1.699000] IP-Config: Complete: [ 1.700000] device=eth0, addr=192.168.33.15, mask=255.255.255.0, gw=192.168.33.1, [ 1.703000] host=192.168.33.15, domain=stu.buaa.edu.cn, nis-domain=(none), [ 1.706000] bootserver=192.168.33.1, rootserver=192.168.33.1, rootpath= [ 36.769000] VFS: Unable to mount root fs via NFS, trying floppy. [ 36.771000] VFS: Mounted root (9p filesystem) on device 0:14.
show more ...
|
#
fefc3b58 |
| 09-Aug-2011 |
Pekka Enberg <penberg@kernel.org> |
kvm tools: Enable kernel DHCP autoconf by default
As we boot to '/bin/sh' by default, enable kernel DHCP autoconfiguration too. The guest kernel needs to be configured with the following configurati
kvm tools: Enable kernel DHCP autoconf by default
As we boot to '/bin/sh' by default, enable kernel DHCP autoconfiguration too. The guest kernel needs to be configured with the following configuration options:
CONFIG_IP_PNP=y CONFIG_IP_PNP_DHCP=y
Cc: Asias He <asias.hejun@gmail.com> Cc: Avi Kivity <avi@redhat.com> Cc: Cyrill Gorcunov <gorcunov@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Prasad Joshi <prasadjoshi124@gmail.com> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
6df1471e |
| 09-Aug-2011 |
Pekka Enberg <penberg@kernel.org> |
kvm tools: Boot to host /bin/sh via 9p by default
This patch updates 'kvm run' to boot to host filesystem via 9p '/bin/sh' by default:
$ ./kvm run # kvm run -k ../../arch/x86/boot/bzImage -m
kvm tools: Boot to host /bin/sh via 9p by default
This patch updates 'kvm run' to boot to host filesystem via 9p '/bin/sh' by default:
$ ./kvm run # kvm run -k ../../arch/x86/boot/bzImage -m 320 -c 2 --name guest-3462 [ 0.000000] Linux version 3.1.0-rc1+ (penberg@tiger) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #7 SMP PREEMPT Tue Aug 9 16:39:20 EEST 2011 [ 0.000000] Command line: notsc noapic noacpi pci=conf1 reboot=k panic=1 console=ttyS0 earlyprintk=serial init=/bin/sh root=/dev/vda rw root=/dev/root rootflags=rw,trans=virtio,version=9p2000.u rootfstype=9p
[snip]
[ 1.803261] VFS: Mounted root (9p filesystem) on device 0:13. [ 1.805153] devtmpfs: mounted [ 1.808353] Freeing unused kernel memory: 924k freed [ 1.810592] Write protecting the kernel read-only data: 12288k [ 1.816268] Freeing unused kernel memory: 632k freed [ 1.826030] Freeing unused kernel memory: 1448k freed sh: cannot set terminal process group (-1): Inappropriate ioctl for device sh: no job control in this shell sh-4.1#
Cc: Linus Torvalds <torvalds@linux-foundation.org> 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 ...
|
#
cadb9ab7 |
| 08-Aug-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Tune --disk option usage information
This patch makes --disk option usage information include rootfs directory, since --disk supports both images and rootfs dir.
Signed-off-by: Asias He
kvm tools: Tune --disk option usage information
This patch makes --disk option usage information include rootfs directory, since --disk supports both images and rootfs dir.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
8b7565e8 |
| 08-Aug-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Sort options of kvm run command
This patch sort options of kvm run command to make it look tidier and cleaner.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg
kvm tools: Sort options of kvm run command
This patch sort options of kvm run command to make it look tidier and cleaner.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
828f4ed3 |
| 08-Aug-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Make --virtio-9p option shorter
This patch changes --virtio-9p to --9p because:
1. It's shorter 2. No need to add virtio prior to 9p since we use virtio by default
Signed-off-by: Asias
kvm tools: Make --virtio-9p option shorter
This patch changes --virtio-9p to --9p because:
1. It's shorter 2. No need to add virtio prior to 9p since we use virtio by default
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
5929637b |
| 08-Aug-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Make --kvm-dev option shorter
This patch changes --kvm-dev to --dev.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
|
#
02317b74 |
| 07-Aug-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Split 'kvm pause' and add 'kvm resume'
This patch seperates 'kvm pause' into 'kvm pause' and 'kvm resume', 'kvm pause' no longer acts as a switch between running and paused state but inst
kvm tools: Split 'kvm pause' and add 'kvm resume'
This patch seperates 'kvm pause' into 'kvm pause' and 'kvm resume', 'kvm pause' no longer acts as a switch between running and paused state but instead just switches the instance into paused and reume is handled by the new 'kvm resume'.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
daf4cb5a |
| 05-Aug-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Add 'kvm stop'
This command stops a running instance.
Syntax: kvm stop [instance name]
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.o
kvm tools: Add 'kvm stop'
This command stops a running instance.
Syntax: kvm stop [instance name]
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
59aa2d30 |
| 05-Aug-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Use '-d' to boot a directory as a rootfs
Pointing to a directory when specifying an image ('-d') will attempt to boot the directory as if it was a root device using virtio-9p.
Tested-by:
kvm tools: Use '-d' to boot a directory as a rootfs
Pointing to a directory when specifying an image ('-d') will attempt to boot the directory as if it was a root device using virtio-9p.
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 ...
|
#
5f0a22b7 |
| 28-Jul-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Use GSI routing
Map GSIs manually when starting the guest. This will allow us mapping new GSIs for MSIX in the future.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
kvm tools: Use GSI routing
Map GSIs manually when starting the guest. This will allow us mapping new GSIs for MSIX in the future.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
54f6802d |
| 28-Jul-2011 |
Pekka Enberg <penberg@kernel.org> |
kvm tools, 9p: Fix init error handling
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
|
#
7c88c87e |
| 24-Jul-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Set hardcoded MAC to local administered
This sets bit one in the first octet to 1, which means that the hardcoded MAC we use is locally administered and wasn't assigned to us.
Acked-by:
kvm tools: Set hardcoded MAC to local administered
This sets bit one in the first octet to 1, which means that the hardcoded MAC we use is locally administered and wasn't assigned to us.
Acked-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
8259b8cc |
| 20-Jul-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Update max VCPU limit
Use the newly introduced KVM_CAP_MAX_VCPUS to determine max VCPU count the kernel side supports.
Using more VCPUs than the recommended limit will issue a warning, u
kvm tools: Update max VCPU limit
Use the newly introduced KVM_CAP_MAX_VCPUS to determine max VCPU count the kernel side supports.
Using more VCPUs than the recommended limit will issue a warning, using more than the absolute maximum will limit it down to the absolute maximum.
Note this patch contains a hack to define KVM_CAP_MAX_VCPUS and should be removed when the kernel patch is merged with mainline.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
e80ddf6a |
| 17-Jul-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Rename --host-ip-addr to --host-ip
This patch makes the network options more consistent.
We are having:
--host-ip --host-mac --guest-ip --guest-mac
now.
Signed-off-by: Asi
kvm tools: Rename --host-ip-addr to --host-ip
This patch makes the network options more consistent.
We are having:
--host-ip --host-mac --guest-ip --guest-mac
now.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
d7098b9b |
| 17-Jul-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Introduce --host-mac option
The --host-mac option sets up MAC address of host.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
|
#
bb8ffd2f |
| 17-Jul-2011 |
Asias He <asias.hejun@gmail.com> |
kvm tools: Introduce --guest-ip option
The --guest-ip option tells which IP address to give guest through DHCP.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@
kvm tools: Introduce --guest-ip option
The --guest-ip option tells which IP address to give guest through DHCP.
Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
001690a4 |
| 09-Jul-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Rename debug options under 'kvm run'
Rename debug options to make them consistent with each other.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penbe
kvm tools: Rename debug options under 'kvm run'
Rename debug options to make them consistent with each other.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
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 ...
|
#
6d6a4d41 |
| 07-Jul-2011 |
Pekka Enberg <penberg@kernel.org> |
kvm tools: Fix guest single-stepping setup
"K. Watts" writes:
When the singlestep is enabled the ioctl to sent out when the kvm_cpu is initialized (kvm-cpu.c in the for loop that gets each vcpu
kvm tools: Fix guest single-stepping setup
"K. Watts" writes:
When the singlestep is enabled the ioctl to sent out when the kvm_cpu is initialized (kvm-cpu.c in the for loop that gets each vcpu built). When the ioct goes out the CPU is sitting at the initialization vector of 0xf000:0xfff0 on CPU #0 and 0x000000 on the other SMP CPUs. The new host kernel code that handles setting the TF was changed in 2.6.32 and again at 2.6.38. 2.6.32 seems just flat broken, but 2.6.38 checks that the linear address of the RIP matches what it was when the KVM_GUESTDBG_SINGLESTEP flag was set. Because the kvm-tool doesn't start the CPU at the initialization vector (0xfff0) (0x7c00 for the MBR and where ever you guys map the linux kernel to) they don't match and the host kernel won't set the trap flag.
Basically the debug and singlestep ioclts need to happen after the CPU has been initialized. I moved kvm_cpu__enable_singlestep to happen in kvm_cpu__reset_vcpu after the registers are set (EIP points to boot address) and the TRAP flags get set and all is good with the world.
Singlestepping is disabled when the guest issues a CLI because the Linux host doesn't support features in new Intel and AMD CPUs. We can sort of "shadow" the interrupt mask and still get the CPU to trap out at ever instruction even when the guest has disabled interrupts on the CPU. I have to get the bios disk handler working completely first, but that may be my next task so that we can trace all the CPU instructions. My current hack is to just re-enable the trap flag every time a VMEXIT occurs. I get enough instructions to get me by.
This patch fixes the problem by moving the kvm_cpu__enable_singlestep() into kvm_cpu__start().
Suggested-by: K. Watts <traetox@gmail.com> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
2d96f6b6 |
| 03-Jul-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Give guest instances default name
Name instances which aren't specifically named by the user (using the --name flag) with the following pattern: 'guest-<pid>'
Suggested-by: Pekka Enberg
kvm tools: Give guest instances default name
Name instances which aren't specifically named by the user (using the --name flag) with the following pattern: 'guest-<pid>'
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 ...
|
#
82d2f21e |
| 02-Jul-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Add virtio-balloon device
From the virtio spec:
The virtio memory balloon device is a primitive device for managing guest memory: the device asks for a certain amount of memory, and the
kvm tools: Add virtio-balloon device
From the virtio spec:
The virtio memory balloon device is a primitive device for managing guest memory: the device asks for a certain amount of memory, and the guest supplies it (or withdraws it, if the device has more than it asks for). This allows the guest to adapt to changes in allowance of underlying physical memory.
To activate the virtio-balloon device run kvm tools with the '--balloon' command line parameter.
Current implementation listens for two signals:
- SIGKVMADDMEM: Adds 1M to the balloon driver (inflate). This will decrease available memory within the guest. - SIGKVMDELMEM: Remove 1M from the balloon driver (deflate). This will increase available memory within the guest.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|
#
5358b0e6 |
| 02-Jul-2011 |
Sasha Levin <levinsasha928@gmail.com> |
kvm tools: Allow giving instance names
This will allow tracking instance names and sending commands to specific instances if multiple instances are running.
Signed-off-by: Sasha Levin <levinsasha92
kvm tools: Allow giving instance names
This will allow tracking instance names and sending commands to specific instances if multiple instances are running.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
show more ...
|