- Jun 01, 2015
-
-
Pekka Enberg authored
We should not include glibc headers from BIOS code which can't rely on glibc at runtime. This patch fixes the following build breakage on 64-bit: CC bios/e820.o In file included from /usr/include/features.h:387:0, from /usr/include/unistd.h:26, from include/kvm/util.h:12, from bios/e820.c:5: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. make: *** [bios/bios.bin.elf] Error 1 when built without the 'glibc-devel.i686' package on Fedora, for example. Cc: Asias He <asias.hejun@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Sasha Levin <levinsasha928@gmail.com> Acked-by:
Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
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>
-
Sasha Levin authored
So far we were printing memory statistics in the terminal of the guest, this was annoying, confusing and inneficient. This patch moves the print to the terminal which ran 'kvm stat' Signed-off-by:
Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
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>
-
Pekka Enberg authored
This pach fixes the following build breakage on Ubuntu Linux, for example, which enables GCC stack protector by default: CC bios/int10.o bios/int10.o: In function `vbe_get_info': /home/penberg/linux-2.6/tools/kvm/bios/int10.c:120: undefined reference to `__stack_chk_fail' Suggested-by:
Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Pekka Enberg authored
This patch implements memcpy16() function that copies memory areas in 16-bit real mode and converts bios/int10.c to use it instead of relying on GCC struct memcpy to do the right thing. Acked-by:
Cyrill Gorcunov <gorcunov@gmail.com> Cc: Asias He <asias.hejun@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Pekka Enberg authored
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>
-
Pekka Enberg authored
This patch removes duplicate defines from builtin-setup.c. 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>
-
Lan Tianyu authored
This patch adds the decompression operation when confirming the qcow or qcow2 image is compressed. This patch also divides the read cluster fucntion into two which are respective for qcow and qcow2 in order to be convenient to support these two kind images. Add some macros for qcow. Signed-off-by:
Lan Tianyu <tianyu.lan@intel.com> [ penberg@kernel.org: make zlib optional ] Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
Recent kernels check for MSR_IA32_MISC_ENABLE_FAST_STRING in the MSR_IA32_MISC_ENABLE MSR before enabling reps/movs memcpy. So far we didn't set it, and got a slower memcpy and a warning: [ 0.000000] Disabled fast string operations This patch enables fast string operations. Signed-off-by:
Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
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>
-
Sasha Levin authored
This patch makes the name as the default parameter, this makes usability easier since this is the only parameter available at the moment anyway. 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>
-
Sasha Levin authored
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>
-
Sasha Levin authored
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>
-
Sasha Levin authored
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>
-
Sasha Levin authored
This prevents multiple messages for the same type of device. 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>
-
Sasha Levin authored
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>
-
Pekka Enberg authored
Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Alessandro Guido authored
Use the right set2 scancode for the "5" key. Signed-off-by:
Alessandro Guido <ag@alessandroguido.name> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Pekka Enberg authored
This patch fixes 'kvm run' rootfs boot failures: Starting '/bin/sh'... Init failed: Bad address Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
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>
-
Pekka Enberg authored
Fix up build instructions so that people can build the tool on fresh installation of Fedora. Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
This patch sets active console to the serial console before running the shell. Doing so fixes two issues: * Fix job control. * Set all env vars. The user visible issues are less warnings (no more of this: sh: cannot set terminal process group (-1): Inappropriate ioctl for device sh: no job control in this shell) A working 'top', and a working ctrl-c. Signed-off-by:
Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Alessandro Guido authored
Add some missing keys to the SDL ui. This needed a bit of rework of keyboard event handling since some of the new codes are multi-byte, so I had to introduce a struct that keeps that information alongside the code itself. Peculiar cases like PAUSE or PRNT SCRN are special cased, however they aren't wired yet since I couldn't test them (I think input grabbing is required to make them work). Acked-by:
Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Alessandro Guido <ag@alessandroguido.name> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Andy Shevchenko authored
Cc: kvm@vger.kernel.org Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Cyrill Gorcunov authored
In case if host machine supports performance-energy bias capability it should not be propagated to KVM hypervisor. Otherwise the kernel tries to do read MSR_IA32_ENERGY_PERF_BIAS register and cause kernel panic (general protection fault). Signed-off-by:
Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
Signed-off-by:
Sasha Levin <levinsasha928@gmail.com>
-
Sasha Levin authored
Since we didn't raise the ISR INTx interrupts were sometimes ignored by the guest. This caused hangs on boot when starting a guest without MSIX support. Signed-off-by:
Sasha Levin <levinsasha928@gmail.com>
-
Sasha Levin authored
Signed-off-by:
Sasha Levin <levinsasha928@gmail.com>
-
Sasha Levin authored
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>
-
Sasha Levin authored
Network autoconfiguration was moved to the kernel, but the setup code still tried to copy the script over to the rootfs. This prevented from /virt/ to be properly created. Signed-off-by:
Sasha Levin <levinsasha928@gmail.com>
-
Sasha Levin authored
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>
-
Sasha Levin authored
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>
-
Sasha Levin authored
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>
-
Sasha Levin authored
Signed-off-by:
Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Hagen Paul Pfeifer authored
Signed-off-by:
Hagen Paul Pfeifer <hagen@jauu.net> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
Signed-off-by:
Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
'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>
-
Sasha Levin authored
Add a script to automatically configure networking in the guest. Signed-off-by:
Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
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>
-