- Jun 01, 2015
-
-
Pekka Enberg authored
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>
-
Pekka Enberg authored
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>
-
Aneesh Kumar K.V authored
Signed-off-by:
Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Liming Wang authored
kvm "--help" and "--version" are not implemented, so remove them to avoid ambiguous. Signed-off-by:
Liming Wang <walimisdev@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
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>
-
Asias He authored
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>
-
Asias He authored
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>
-
Asias He authored
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>
-
Asias He authored
This patch changes --kvm-dev to --dev. Signed-off-by:
Asias He <asias.hejun@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
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>
-
Asias He authored
This patch changes the option from: kvm balloon [command] [instance name] [amount] to: kvm balloon [inflate/deflate] [size in MiB] [instance name] Acked-by:
Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Asias He <asias.hejun@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Cyrill Gorcunov authored
Since we rely on in-kernel kvm-apic implementation it's fine to set apic version as xAPIC which allows kernel to run in bigsmp mode. Without it the kernel will not support more than 8 cpus, complaining as | [ 0.362000] Initializing CPU#8 | [ 0.363000] ------------[ cut here ]------------ | [ 0.363000] WARNING: at arch/x86/kernel/apic/apic.c:1238 setup_local_APIC+0xeb/0x2e1() | [ 0.364000] Modules linked in: | [ 0.364000] Pid: 0, comm: kworker/0:1 Not tainted 3.0.0+ #70 | [ 0.364000] Call Trace: | [ 0.364000] [<c1060c7e>] warn_slowpath_common+0x63/0x78 | [ 0.365000] [<c16612a8>] ? setup_local_APIC+0xeb/0x2e1 | [ 0.365000] [<c1060ca2>] warn_slowpath_null+0xf/0x13 | [ 0.365000] [<c16612a8>] setup_local_APIC+0xeb/0x2e1 | [ 0.366000] [<c165c684>] ? fpu_init+0x6b/0x88 | [ 0.366000] [<c1047fd7>] ? default_get_apic_id+0x17/0x32 | [ 0.366000] [<c16607d3>] start_secondary+0xab/0x18e | [ 0.367000] ---[ end trace 4eaa2a86a8e2da22 ]--- Note the kernel needs "apic=bigsmp" parameter passed to enable physical destination mode. Reported-by:
Asias He <asias.hejun@gmail.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
This patch adds a missing check of mask during probing of PCI BARs. The missing check manifested in wrong address values for the BARs after the initial probe. Reported-by:
David Evensky <evensky@dancer.ca.sandia.gov> 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>
-
Sasha Levin authored
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>
-
Sasha Levin authored
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>
-
Sasha Levin authored
This patch adds support for the UNIX extensions to 9p2000. Supporting thses extensions allow us to transperantly mount UNIX directories without missing features such as symlinks. Reviewed-by:
Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by:
Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Pekka Enberg authored
This patch adds support for writing to zero refcount clusters. Refcount blocks are cached in like L2 tables and flushed upon VIRTIO_BLK_T_FLUSH and when evicted from the LRU cache. With this patch applied, 'qemu-img check' no longer complains about referenced clusters with zero reference count after dd if=/dev/zero of=/mnt/tmp where '/mnt' is freshly generated QCOW2 image. Cc: Asias He <asias.hejun@gmail.com> Cc: Cyrill Gorcunov <gorcunov@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Kevin Wolf <kwolf@redhat.com> Cc: Prasad Joshi <prasadjoshi124@gmail.com> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
This patch implements basic MSI-X support for virtio-rng. The device uses the virtio preferred method of working with MSI-X by creating one vector for configuration and one vector for each vq in the device. Signed-off-by:
Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
This makes MMIO callback similar to it's PIO counterpart by passing a void* value provided in the registration to the callback function. This allows to keep context within the MMIO callback function. Signed-off-by:
Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
PCI BAR probing is done in four steps: 1. Read address (and flags). 2. Mask BAR. 3. Read BAR again - Now the expected result is the size of the BAR. 4. Mask BAR with address. So far, we have only took care of the first step. This means that the kernel was using address as the size, causing a PCI allocation blunder. This patch fixes the issue by passing a proper size after masking. Signed-off-by:
Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
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>
-
Pekka Enberg authored
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>
-
Cyrill Gorcunov authored
Ingo reported a build breakage caused by absence of 'notrace' definition. Fix it by adding compiler.h into own headers set. Reported-by:
Ingo Molnar <mingo@elte.hu> Tested-by:
Ingo Molnar <mingo@elte.hu> Signed-off-by:
Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Pekka Enberg authored
The QCOW write support isn't stable enough for wide-spread use so force read-only mode for QCOW images. Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Pekka Enberg authored
In preparation for refcount block caching, rename L2 table lookup functions to use less generic names. Cc: Prasad Joshi <prasadjoshi124@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Pekka Enberg authored
In preparation for refcount block cache, move L2 cache data structures to 'struct qcow_l1_table'. Cc: Prasad Joshi <prasadjoshi124@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Pekka Enberg authored
The include/kvm/qcow.h has mixed tabs and spaces. Fix that up. Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Pekka Enberg authored
This patch unifies qcow_read_cluster() and qcow_write_cluster() L1 and L2 table variable names to make the code more readable. Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Pekka Enberg authored
This patch renames the ambiguous 'struct qcow_table' to 'struct qcow_l1_table' in preparation for introducing 'struct qcow_refcount_table'. Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
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>
-
Sasha Levin authored
Signed-off-by:
Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Pekka Enberg authored
We don't handle refcount table properly so make sure we only write to clusters that have the "copied" flag set. Cc: Kevin Wolf <kwolf@redhat.com> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Sasha Levin authored
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>
-
Aneesh Kumar K.V authored
don't do a copy of the kernel header Signed-off-by:
Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Asias He authored
This makes GCC catch warn_unused_result explicitly. Signed-off-by:
Asias He <asias.hejun@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Asias He authored
- Drop static initialization - Use {host,guet}_{ip,mac} to initialize Signed-off-by:
Asias He <asias.hejun@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Asias He authored
- Drop static initialization - Move the initializtion out of tap init Signed-off-by:
Asias He <asias.hejun@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
-
Asias He authored
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>
-
Asias He authored
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>
-