Re: [PATCH] kvm:x86/svm: enable SVM lock if host supports it

2013-04-21 Thread Prasad Joshi
On Thu, Apr 18, 2013 at 1:18 AM, Joerg Roedel j...@8bytes.org wrote: On Wed, Apr 17, 2013 at 11:03:33PM +0530, prasadjoshi.li...@gmail.com wrote: From: Prasad Joshi prasadjoshi.li...@gmail.com SVM lock features allows software from preventing update to EFER.SVME. Enable the SVM lock in guest

Re: [PATCH 2/2] kvm/svm: emulate SVM_KEY MSR

2013-04-21 Thread Prasad Joshi
On Sun, Apr 21, 2013 at 2:49 PM, Gleb Natapov g...@redhat.com wrote: On Sun, Apr 21, 2013 at 02:12:21PM +0530, prasadjoshi.li...@gmail.com wrote: From: Prasad Joshi prasadjoshi.li...@gmail.com Write only SVM_KEY can be used to create a password protected mechanism to clear VM_CR.LOCK

[PATCH] qemu-kvm: Change balloon page size to 1MB

2012-02-20 Thread Prasad Joshi
Signed-off-by: Prasad Joshi prasadjoshi.li...@gmail.com --- hw/virtio-balloon.c |2 +- hw/virtio-balloon.h |6 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/virtio-balloon.c b/hw/virtio-balloon.c index ce9d2c9..765dd97 100644 --- a/hw/virtio-balloon.c +++ b/hw

[PATCH] virtio-balloon: Change balloon page size to 1MB

2012-02-20 Thread Prasad Joshi
Signed-off-by: Prasad Joshi prasadjoshi.li...@gmail.com --- drivers/virtio/virtio_balloon.c | 18 +- include/linux/virtio_balloon.h |4 +++- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c

Re: [ANNOUNCE] Native Linux KVM tool v2

2011-06-15 Thread Prasad Joshi
On Wed, Jun 15, 2011 at 6:10 PM, Pekka Enberg penb...@kernel.org wrote: On Wed, Jun 15, 2011 at 7:30 PM, Avi Kivity a...@redhat.com wrote: On 06/15/2011 06:53 PM, Pekka Enberg wrote: - Fast QCOW2 image read-write support beating Qemu in fio benchmarks. See the   following URL for test result

Re: [ANNOUNCE] Native Linux KVM tool v2

2011-06-15 Thread Prasad Joshi
On Wed, Jun 15, 2011 at 9:23 PM, Sasha Levin levinsasha...@gmail.com wrote: On Wed, 2011-06-15 at 21:13 +0100, Prasad Joshi wrote: On Wed, Jun 15, 2011 at 6:10 PM, Pekka Enberg penb...@kernel.org wrote: On Wed, Jun 15, 2011 at 7:30 PM, Avi Kivity a...@redhat.com wrote: On 06/15/2011 06:53 PM

[PATCH v4] kvm tools: Add QCOW level2 caching support

2011-06-06 Thread Prasad Joshi
, util=93.26% [...] Summary === Read bandwidth increased by 1.2 to 1.8 times Write bandwidth increased by 1.1 to 2.9 times Read latency decreased by small margin of 0.2 Write latency decreased by 0.4 Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/disk

Re: [PATCH v2] kvm tools: Add QCOW level2 caching support

2011-06-02 Thread Prasad Joshi
On Thu, Jun 2, 2011 at 8:28 AM, Ingo Molnar mi...@elte.hu wrote: * Prasad Joshi prasadjoshi...@gmail.com wrote: Summary of performance numbers == There is not much difference with sequential character operations are performed, the code with caching performed

Re: [PATCH v2] kvm tools: Add QCOW level2 caching support

2011-06-02 Thread Prasad Joshi
On Thu, Jun 2, 2011 at 9:36 AM, Prasad Joshi prasadjoshi...@gmail.com wrote: On Thu, Jun 2, 2011 at 8:28 AM, Ingo Molnar mi...@elte.hu wrote: * Prasad Joshi prasadjoshi...@gmail.com wrote: Summary of performance numbers == There is not much difference

[PATCH v3] kvm tools: Add QCOW level2 caching support

2011-06-02 Thread Prasad Joshi
performance raised by 18% to 24% with sequential block output and by 44% for sequentail block input. Which is understandable as the Level2 table will always be cached after a write operation. Random seek operation worked slower with caching code. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com

Re: [PATCH] kvm tools: Add 'kvm pause' command

2011-06-02 Thread Prasad Joshi
On Thu, Jun 2, 2011 at 9:22 PM, Sasha Levin levinsasha...@gmail.com wrote: This patch adds a 'kvm debug' command that's currently an alias for  kill -USR2 `pidof kvm` Which pauses a guest (freezes all VCPU threads). Signed-off-by: Sasha Levin levinsasha...@gmail.com ---  

[PATCH v2] kvm tools: Add QCOW level2 caching support

2011-06-01 Thread Prasad Joshi
numbers drastically improved with sequential creates (62%) and delete operations (30%). Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/disk/qcow.c| 220 ++--- tools/kvm/include/kvm/qcow.h | 17 +++ 2 files changed, 220 insertions(+), 17

Re: RCU red-black tree (was: Re: [PATCH 4/6] kvm tools: Add rwlock wrapper)

2011-05-31 Thread Prasad Joshi
On Tue, May 31, 2011 at 4:25 PM, Ingo Molnar mi...@elte.hu wrote: * Sasha Levin levinsasha...@gmail.com wrote: On Tue, 2011-05-31 at 15:09 +0200, Ingo Molnar wrote: * Sasha Levin levinsasha...@gmail.com wrote: I've started working on converting our MMIO code to use RCU rbtree. Well,

[PATCH v2 3/4] kvm tools: Add a wrapper function to initialize all virtio block devices

2011-05-20 Thread Prasad Joshi
The patch moves the code for initialization of all of the virtio block devices to virtio subsystem. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/include/kvm/kvm.h|1 + tools/kvm/include/kvm/virtio-blk.h |1 + tools/kvm/kvm-run.c|4

[PATCH v2 1/4] kvm tools: Add a wrapper function to open disk images

2011-05-20 Thread Prasad Joshi
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. Suggested-by: Ingo Molnar mi...@elte.hu Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com

[PATCH v2 2/4] kvm tools: Close the disk images after the guest shuts down

2011-05-20 Thread Prasad Joshi
Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/disk/core.c |8 tools/kvm/include/kvm/disk-image.h |1 + tools/kvm/kvm-run.c|1 + 3 files changed, 10 insertions(+), 0 deletions(-) diff --git a/tools/kvm/disk/core.c b/tools/kvm

[PATCH v2 4/4] kvm tools: Release memory allocated during virtio block initialization

2011-05-20 Thread Prasad Joshi
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 prasadjoshi...@gmail.com --- tools/kvm/include/kvm/virtio-blk.h |1 + tools/kvm/kvm-run.c|2 ++ tools/kvm/virtio/blk.c

[PATCH v3 3/4] kvm tools: Add a wrapper function to initialize all virtio block devices

2011-05-20 Thread Prasad Joshi
The patch moves the code for initialization of all of the virtio block devices to virtio subsystem. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/include/kvm/kvm.h|1 + tools/kvm/include/kvm/virtio-blk.h |1 + tools/kvm/kvm-run.c|4

[PATCH v3 1/4] kvm tools: Add a wrapper function to open disk images

2011-05-20 Thread Prasad Joshi
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. Suggested-by: Ingo Molnar mi...@elte.hu Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com

[PATCH v3 4/4] kvm tools: Release memory allocated during virtio block initialization

2011-05-20 Thread Prasad Joshi
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 prasadjoshi...@gmail.com --- tools/kvm/include/kvm/virtio-blk.h |1 + tools/kvm/kvm-run.c|2 ++ tools/kvm/virtio/blk.c

[PATCH v3 2/4] kvm tools: Close the disk images after the guest shuts down

2011-05-20 Thread Prasad Joshi
Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/disk/core.c | 11 +++ tools/kvm/include/kvm/disk-image.h |1 + tools/kvm/kvm-run.c|1 + 3 files changed, 13 insertions(+), 0 deletions(-) diff --git a/tools/kvm/disk/core.c b/tools

[PATCH v1 2/3] kvm tools: Release memoty allocated during virtio block initialization

2011-05-18 Thread Prasad Joshi
Add a new function virtio_blk__fini() which goes through array of block devices and releases memory allocated for block device. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/include/kvm/virtio-blk.h |1 + tools/kvm/kvm-run.c|2 ++ tools/kvm/virtio

[PATCH v1 3/3] kvm tools: Add QCOW level2 caching support

2011-05-18 Thread Prasad Joshi
in building simple LRU structure and RB tree helps in improving the search time during read/write operations. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/include/kvm/qcow.h | 18 tools/kvm/qcow.c | 230 ++ 2 files

[PATCH v1 1/3] kvm tools: Close the disk images after the guest shuts down

2011-05-18 Thread Prasad Joshi
Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/kvm-run.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/tools/kvm/kvm-run.c b/tools/kvm/kvm-run.c index ba8e5ce..ef180e4 100644 --- a/tools/kvm/kvm-run.c +++ b/tools/kvm/kvm-run.c @@ -46,6 +46,7

Re: [PATCH v1 1/3] kvm tools: Close the disk images after the guest shuts down

2011-05-18 Thread Prasad Joshi
On Wed, May 18, 2011 at 11:31 AM, Sasha Levin levinsasha...@gmail.com wrote: On Wed, 2011-05-18 at 11:17 +0100, Prasad Joshi wrote: Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com ---  tools/kvm/kvm-run.c |    7 +++  1 files changed, 7 insertions(+), 0 deletions(-) diff --git

Re: [PATCH v1 3/3] kvm tools: Add QCOW level2 caching support

2011-05-18 Thread Prasad Joshi
On Wed, May 18, 2011 at 11:27 AM, Pekka Enberg penb...@kernel.org wrote: On Wed, May 18, 2011 at 1:17 PM, Prasad Joshi prasadjoshi...@gmail.com wrote: QCOW uses two tables level1 (L1) table and level2 (L2) table. The L1 table points to offset of L2 table. When a QCOW image is probed, the L1

Re: Graphics pass-through

2011-05-09 Thread Prasad Joshi
On Mon, May 9, 2011 at 12:14 PM, Jan Kiszka jan.kis...@siemens.com wrote: On 2011-05-05 17:17, Alex Williamson wrote: And what about the host? When does Linux release the legacy range? Always or only when a specific (!=vga/vesa) framebuffer driver is loaded? Well, that's where it'd be nice if

Re: Graphics pass-through

2011-05-09 Thread Prasad Joshi
On Mon, May 9, 2011 at 4:27 PM, Jan Kiszka jan.kis...@siemens.com wrote: On 2011-05-09 16:55, Prasad Joshi wrote: On Mon, May 9, 2011 at 12:14 PM, Jan Kiszka jan.kis...@siemens.com wrote: On 2011-05-05 17:17, Alex Williamson wrote: And what about the host? When does Linux release the legacy

Re: [PATCH 2/2] kvm tools: Simplify search for root device

2011-05-07 Thread Prasad Joshi
On Sat, May 7, 2011 at 9:41 AM, Pekka Enberg penb...@kernel.org wrote: On Fri, 6 May 2011, Sasha Levin wrote: Use /dev/block to find the block device used for root instead of searching through mounts. Signed-off-by: Sasha Levin levinsasha...@gmail.com Weren't there distro differences in

[PATCH V4] kvm tool: Use the root partition of the host to boot the guest machine

2011-04-19 Thread Prasad Joshi
-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/kvm-run.c | 109 +- 1 files changed, 98 insertions(+), 11 deletions(-) diff --git a/tools/kvm/kvm-run.c b/tools/kvm/kvm-run.c index 17fef20..c3da21f 100644 --- a/tools/kvm/kvm-run.c +++ b

[PATCH v2] kvm tool: Remove the __stringify* defination from the util.h

2011-04-16 Thread Prasad Joshi
Include the Linux kernel header file linux/stringify.h file instead of redefining the __stringify* macros Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/include/kvm/util.h |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/kvm/include/kvm

[PATCH v3] kvm tool: Remove the __stringify*() defination from util.h

2011-04-16 Thread Prasad Joshi
Include the Linux kernel header file linux/stringify.h file instead of redefining the __stringify* macros Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/include/kvm/util.h |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/kvm/include/kvm

Re: [PATCH 4/4] kvm tool: check the cluster boundary in the qcow read code.

2011-04-16 Thread Prasad Joshi
On Sat, Apr 16, 2011 at 10:23 AM, Pekka Enberg penb...@kernel.org wrote: On Fri, Apr 15, 2011 at 5:18 PM, Prasad Joshi prasadjoshi...@gmail.com wrote: Add a new function qcow1_read_cluster() to read a qcow cluster size data at a time. The function qcow1_read_sector() is modified to use

[PATCH 1/4] kvm tool: use correct function names

2011-04-15 Thread Prasad Joshi
The function name sect_to_l1_offset() is changed to get_l1_index() as it returns the l1 table index rather than offset. Also change - sect_to_l2_offset to get_l2_index - sect_to_cluster_offset to get_cluster_offset Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/qcow.c

[PATCH 3/4] kvm tool: deallocate the cached l1_table in qcow1_disk_close() and in error path of qcow1_probe()

2011-04-15 Thread Prasad Joshi
Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/qcow.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tools/kvm/qcow.c b/tools/kvm/qcow.c index 243bfa8..9b9af86 100644 --- a/tools/kvm/qcow.c +++ b/tools/kvm/qcow.c @@ -115,6 +115,7 @@ static void

[PATCH 4/4] kvm tool: check the cluster boundary in the qcow read code.

2011-04-15 Thread Prasad Joshi
Add a new function qcow1_read_cluster() to read a qcow cluster size data at a time. The function qcow1_read_sector() is modified to use the function qcow1_read_cluster(). Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/qcow.c | 123

[PATCH 2/4] kvm tool: avoid byte-order conversion during each read operation

2011-04-15 Thread Prasad Joshi
Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/qcow.c | 17 - 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/tools/kvm/qcow.c b/tools/kvm/qcow.c index 219fd6b..243bfa8 100644 --- a/tools/kvm/qcow.c +++ b/tools/kvm/qcow.c @@ -58,7 +58,7

[PATCH] kvm tool: QCOW version 1 write support.

2011-04-15 Thread Prasad Joshi
The code is based on the following QCOW 1 image format specification: http://people.gnome.org/~markmc/qcow-image-format-version-1.html Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/qcow.c | 148 +- 1 files changed, 147

[PATCH] kvm tool: Remove the __stringify* defination from the util.h

2011-04-15 Thread Prasad Joshi
Include the Linux kernel header file linux/stringify.h file instead of redefining the __stringify* macros Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/include/kvm/util.h |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/kvm/include/kvm

Re: [PATCH v2] kvm tool: add QCOW verions 1 read/write support

2011-04-14 Thread Prasad Joshi
On Thu, Apr 14, 2011 at 9:27 AM, Ingo Molnar mi...@elte.hu wrote: * Kevin Wolf kw...@redhat.com wrote: Am 14.04.2011 10:15, schrieb Pekka Enberg: * Kevin Wolf kw...@redhat.com wrote: Also at least your qcow1.c is lacking the copyright header. Please add this, otherwise you're

[PATCH] kvm tool: check the cluster boundary in the qcow read code.

2011-04-14 Thread Prasad Joshi
Changed the function names from sect_to_l1_offset(), sect_to_l2_offset() to get_l1_index(), get_l2_index() as they return index into their respective table. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/qcow.c | 103 ++ 1

Re: [PATCH] kvm tool: check the cluster boundary in the qcow read code.

2011-04-14 Thread Prasad Joshi
On Thu, Apr 14, 2011 at 8:59 PM, Pekka Enberg penb...@kernel.org wrote: On Thu, 2011-04-14 at 20:23 +0100, Prasad Joshi wrote: Changed the function names from sect_to_l1_offset(), sect_to_l2_offset() to get_l1_index(), get_l2_index() as they return index into their respective table

[PATCH] kvm tool: Avoid using disk_image-priv member in disk_image__new()

2011-04-13 Thread Prasad Joshi
the priv member to mmamped address. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/disk-image.c | 27 +++ tools/kvm/include/kvm/disk-image.h |3 ++- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/tools/kvm/disk-image.c

[PATCH] kvm tool: add a close method for raw_image_ro_mmap_ops

2011-04-13 Thread Prasad Joshi
--- tools/kvm/disk-image.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/kvm/disk-image.c b/tools/kvm/disk-image.c index c666c04..df7dd48 100644 --- a/tools/kvm/disk-image.c +++ b/tools/kvm/disk-image.c @@ -92,6 +92,13 @@ static int

[PATCH] kvm tool: add QCOW verions 1 read/write support

2011-04-13 Thread Prasad Joshi
-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/CREDITS | 46 + tools/kvm/Makefile |2 + tools/kvm/disk-image.c |7 + tools/kvm/include/kvm/qcow.h| 55 ++ tools/kvm/include/linux/byteorder.h |7 + tools/kvm/include

[PATCH v2] kvm tool: add QCOW verions 1 read/write support

2011-04-13 Thread Prasad Joshi
-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/CREDITS | 46 ++ tools/kvm/Makefile |2 + tools/kvm/disk-image.c |7 + tools/kvm/include/kvm/qcow.h| 55 +++ tools/kvm/include/linux/byteorder.h |7 + tools/kvm

[PATCH v2 kvm tool: 1/4] Generating list of common kvm tool commands

2011-04-08 Thread Prasad Joshi
-list.txt and text files in Documentation/ directory to generate the common-cmds.h file in the include directory. The header file is furthur used to display a usage messgae. Almost the entire script is copied from the tools/perf. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm

[PATCH v2 kvm tool: 2/4] Mostly the copied code from perf for argument processing

2011-04-08 Thread Prasad Joshi
- parse-options.[ch] has argument processing code. - types.h: Additional types for argument processing. - strbuf.[ch]: Added a function prefixcmp to compare string prefix Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/include/kvm/parse-options.h | 161 + tools/kvm

[PATCH v2 kvm tool: 3/4] Provides the basic Gitish framework

2011-04-08 Thread Prasad Joshi
the callback function for a given command. - kvm-help.[ch] Implements the kvm help command. The function list_common_cmds_help() is a copy of similar function in tools/perf. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/include/kvm/kvm-cmd.h | 12 tools/kvm/include

[PATCH v2 kvm tool: 4/4] Using the Gitish freamwork to run the virtual machine

2011-04-08 Thread Prasad Joshi
- kvm-run.[ch] Adds a new kvm command called 'run'. The most of the code is copied from main.c. - main.c is modified to use the functionality provided by framework. The old code from main.c is moved to kvm-run.c. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/Makefile

Re: [PATCH v2 kvm tool: 4/4] Using the Gitish freamwork to run the virtual machine

2011-04-08 Thread Prasad Joshi
Apr 2011, Prasad Joshi wrote: - kvm-run.[ch] Adds a new kvm command called 'run'. The most of the code is  copied from main.c. - main.c is modified to use the functionality provided by framework.  The old code from main.c is moved to kvm-run.c. Signed-off-by: Prasad Joshi prasadjoshi

[PATCH v3 3/4] kvm tool: Provides the basic Gitish framework

2011-04-08 Thread Prasad Joshi
the callback function for a given command. - kvm-help.[ch] Implements the kvm help command. The function list_common_cmds_help() is a copy of similar function in tools/perf. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/include/kvm/kvm-cmd.h | 12 tools/kvm/include

[PATCH v3 1/4] kvm tool: Generating list of common kvm tool commands

2011-04-08 Thread Prasad Joshi
-list.txt and text files in Documentation/ directory to generate the common-cmds.h file in the include directory. The header file is furthur used to display a usage messgae. Almost the entire script is copied from the tools/perf. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm

[PATCH v3 2/4] kvm tool: Mostly the copied code from perf for argument processing

2011-04-08 Thread Prasad Joshi
- parse-options.[ch] has argument processing code. - types.h: Additional types for argument processing. - strbuf.[ch]: Added a function prefixcmp to compare string prefix Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/include/kvm/parse-options.h | 161 + tools/kvm

[PATCH v3 4/4] kvm tool: Using the Gitish freamwork to run the virtual machine

2011-04-08 Thread Prasad Joshi
- kvm-run.[ch] Adds a new kvm command called 'run'. The most of the code is copied from main.c. - main.c is modified to use the functionality provided by framework. The old code from main.c is moved to kvm-run.c. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/Makefile

[PATCH 1/4] Generating list of common kvm tool commands

2011-04-07 Thread Prasad Joshi
-list.txt and text files in Documentation/ directory to generate the common-cmds.h file in the include directory. The header file is furthur used to display a usage messgae. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/Documentation/kvm-run.txt | 48

[PATCH 2/4] Mostly the copied code from perf for argument processing

2011-04-07 Thread Prasad Joshi
- parse-options.[ch] has argument processing code. - types.h: Additional types for argument processing. - strbuf.[ch]: Added a function prefixcmp to compare string prefix Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/include/kvm/parse-options.h | 161 ++ tools/kvm

[PATCH 4/4] Using the Gitish freamwork to run the virtual machine

2011-04-07 Thread Prasad Joshi
- kvm-run.[ch] Adds a new kvm command called 'run'. The most of the code is copied from main.c. - main.c is modified to use the functionality provided by framework. The old code from main.c is moved to kvm-run.c. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/Makefile

[PATCH 3/4] Provides the basic Gitish framework

2011-04-07 Thread Prasad Joshi
. - kvm-help.[ch] Implements the kvm help command. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/include/kvm/kvm-cmd.h | 12 tools/kvm/include/kvm/kvm-help.h |6 tools/kvm/kvm-cmd.c | 55 ++ tools/kvm/kvm

Re: [PATCH 3/4] Provides the basic Gitish framework

2011-04-07 Thread Prasad Joshi
On Thu, Apr 7, 2011 at 9:14 PM, Ingo Molnar mi...@elte.hu wrote: * Prasad Joshi prasadjoshi...@gmail.com wrote: - kvm-cmd.h: Adds a new structure cmd_struct to create a table of commands   and callback function. - kvm-cmd.c: implements two main functions for command processing

[PATCH]: Fixes the qemu-kvm compilation failure when configured with disable-kvm

2011-02-26 Thread Prasad Joshi
-kvm$ make CCx86_64-softmmu/kvm-stub.o /home/prasad/KVM/qemu-kvm/kvm-stub.c:140: error: expected identifier or ‘(’ before ‘’ token make[1]: *** [kvm-stub.o] Error 1 make: *** [subdir-x86_64-softmmu] Error 2 A Small fix would be Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com

[RESEND] [PATCH 1/1] qemu-kvm (device-assignment): detecting the pre-fectchable memory region.

2011-02-26 Thread Prasad Joshi
During device assignment the memory pre-fetchable flag was discarded as the IORESOURCE_PREFETCH was defined as 0x1000 when instead it should have been 0x2000. Following small patch fixes the problem, please apply. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- diff --git a/hw

Re: GPU Pass-through need help.

2011-02-09 Thread Prasad Joshi
On Wed, Feb 9, 2011 at 4:33 PM, Konstantin Khlebnikov khlebni...@openvz.org wrote: Prasad Joshi wrote: I was previously seeing a problem with the ROM BIOS, but I could solve it by passing a correct BIOS file in function assigned_initfn. For now I am using hardcoded file name in the code

Fwd: Graphics pass-through

2011-01-25 Thread Prasad Joshi
Hello, This is to announce that, we have been able to pass-through a ATI Radeon RV370 FireGL V3100 to Ubuntu VM. This card was attached to a separate monitor, after passing-through the Keyboard and Mouse everything worked as normal. The changes we made are very less, mostly disabling default

[PATCH 1/1]: Log more information on IO_PAGE_FAULT event.

2011-01-20 Thread Prasad Joshi
Prints more information when IO_PAGE_FAULT event occurs. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- diff --git a/arch/x86/include/asm/amd_iommu_types.h b/arch/x86/include/asm/amd_iommu_types.h index e3509fc..add56b3 100644 --- a/arch/x86/include/asm/amd_iommu_types.h +++ b/arch/x86

IO_PAGE_FAULT while booting.

2011-01-17 Thread Prasad Joshi
Hello, I saw this error logged while booting the kernel prasad@prasad-kvm:~$ dmesg | grep PAGE [ 13.132547] AMD-Vi: Event logged [IO_PAGE_FAULT device=06:00.1 domain=0x address=0xbb402000 flags=0x0050] The kernel I have is cloned copy of the KVM repository. menuentry 'Ubuntu, with

GPU Pass-through need help.

2011-01-06 Thread Prasad Joshi
Hello All, I am trying to pass-through a GPU PCIe ATI Radeon to VM. Here is a log on VM. pra...@prasad-virtual-machine:~$ dmesg | grep -i -e drm -e radeon [2.162294] [drm] Initialized drm 1.1.0 20060810 [2.459594] [drm] radeon defaulting to kernel modesetting. [2.459596] [drm] radeon

Pass-through an audio card to the virtual machine

2011-01-05 Thread Prasad Joshi
Hello, I was able to pass-through an audio card to the VM. I could see the card connected to the VM, but it seems like it is not working in the VM. I tried passing card to Ubuntu 10.04 and Windows 7 as well. Windows7 detected the hardware as 'High Definition Audio Controller' but shows the

RE: Query on IOMMU

2010-12-22 Thread Prasad Joshi
I have few (may be stupid) questions on this From: Chris Wright [chr...@sous-sol.org] That's the issue. The IOMMU has a set of page tables for each DeviceID. For most devices, the DeviceID is the same as the Bus:Dev.Func (the PCI address) of the device. But this does not always work. One

RE: Query on IOMMU

2010-12-22 Thread Prasad Joshi
Bridge. Am I correct? Thanks and Regards, Prasad From: Prasad Joshi Sent: 22 December 2010 13:16 To: Chris Wright Cc: kvm@vger.kernel.org Subject: RE: Query on IOMMU I have few (may be stupid) questions on this From: Chris Wright [chr...@sous-sol.org

RE: Query on IOMMU

2010-12-22 Thread Prasad Joshi
From: Chris Wright [chr...@sous-sol.org] I would like to know the same thing for the PCIe GPU card connected to my machine. If GPU card is also sitting behind the bridge then the hardware may be useless for the project. :( The GPU is also in a PCIe port, here: 00:02.0 PCI bridge: ATI

RE: Query on IOMMU

2010-12-22 Thread Prasad Joshi
From: Chris Wright [chr...@sous-sol.org] 00:02.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (PCI express gpp port B) Bus: primary=00, secondary=06, subordinate=06, sec-latency=0 06:00.0 VGA compatible controller: nVidia Corporation G86 [Quadro NVS 290] As the

RE: Query on IOMMU

2010-12-22 Thread Prasad Joshi
From: Prasad Joshi The GPU is a PCIe device in a PCIe port (which happens to look a lot like a bridge). So, while GPU assignment has some tricky issues, I don't think you'll be stopped by the IOMM Just for fun, I assigned the Nvidia Graphics Card in pass-through mode to the VM

Query on IOMMU

2010-12-21 Thread Prasad Joshi
| grep -i dmar pra...@prasad-kvm:~/KVM/kvm$ Is there any problem with IOMMU? Thanks and Regards, Prasad Joshi (Student ID: 19015523) MRes Systems Engineering -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info

RE: Query on IOMMU

2010-12-21 Thread Prasad Joshi
From: Chris Wright [chr...@sous-sol.org] Sent: 21 December 2010 16:15 To: Prasad Joshi Cc: kvm@vger.kernel.org Subject: Re: Query on IOMMU I have enabled IOMMU in the BIOS, but I am not sure why it is still asking to enabled IOMMU in BIOS. Do I need to worry about this? It's unfortunate

RE: Query on IOMMU

2010-12-21 Thread Prasad Joshi
From: kvm-ow...@vger.kernel.org [kvm-ow...@vger.kernel.org] on behalf of Chris Wright [chr...@sous-sol.org] Sent: 21 December 2010 17:12 To: Prasad Joshi Cc: Chris Wright; kvm@vger.kernel.org Subject: Re: Query on IOMMU * Prasad Joshi (p.g.jo...@student.reading.ac.uk) wrote: From: Chris

RE: Query on IOMMU

2010-12-21 Thread Prasad Joshi
From: kvm-ow...@vger.kernel.org [kvm-ow...@vger.kernel.org] on behalf of Chris Wright [chr...@sous-sol.org] Sent: 21 December 2010 18:33 To: Prasad Joshi Cc: Chris Wright; kvm@vger.kernel.org Subject: Re: Query on IOMMU * Prasad Joshi (p.g.jo...@student.reading.ac.uk) wrote: From: kvm-ow

RE: Query on IOMMU

2010-12-21 Thread Prasad Joshi
From: Chris Wright [chr...@sous-sol.org] Sent: 21 December 2010 19:29 To: Prasad Joshi Cc: Chris Wright; kvm@vger.kernel.org; Tejun Heo Subject: Re: Query on IOMMU * Prasad Joshi (p.g.jo...@student.reading.ac.uk) wrote: Besides when I insert the pci_stub module, it emits a messages

RE: Query on IOMMU

2010-12-21 Thread Prasad Joshi
Is it okay to add a following line in section 4. unbind device from host kernel driver (example PCI device 01:00.0) * If the PCI Stub Driver is compiled as module, then load the module using modprobe pci_stub. When I compiled the kernel I selected it as a kernel module. As the driver

Possiblle misleading information of motherboards supporting VT-d

2010-12-02 Thread Prasad Joshi
to buy the Intel DX38BT board just before placing the order I had a second thought of checking the Intel site. Can someone confirm? Thanks and Regards, Prasad Joshi (Student ID: 19015523) MRes Systems Engineering -- To unsubscribe from this list: send the line unsubscribe kvm in the body

[RFC] GPGPU Support In KVM

2010-11-24 Thread Prasad Joshi
Hello All, I am Prasad Joshi, studying in a UK University. As a part of project in the University, I have decided to add GPGPU support in the KVM using virtio. There are two parts of supporting GPU in VM 1. GPU as a Graphics Device 2. GPU as a Parallel Programming Device (GPGPU

RE: [RFC] GPGPU Support In KVM

2010-11-24 Thread Prasad Joshi
From: andre.weidem...@web.de [andre.weidem...@web.de] Sent: 24 November 2010 19:56 To: Prasad Joshi Cc: kvm@vger.kernel.org Subject: Re: [RFC] GPGPU Support In KVM Hi, On 24.11.2010 15:06, Prasad Joshi wrote: I have been following the KVM mailing list last few months and have learned

Question on virtio frontend backend drivers

2010-11-22 Thread Prasad Joshi
the frontend driver suffice? Thanks and Regards, Prasad Joshi (Student ID: 19015523) MRes Systems Engineering-- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: Unable to start VM using COWed image

2010-11-11 Thread Prasad Joshi
From: Prasad Joshi Sent: 10 November 2010 13:01 To: Stefan Hajnoczi Cc: Keqin Hong; kvm@vger.kernel.org Subject: RE: Unable to start VM using COWed image From: Stefan Hajnoczi [stefa...@gmail.com] Sent: 10 November 2010 12:47 To: Prasad Joshi Cc: Keqin Hong; kvm@vger.kernel.org Subject

Always false condition in rmap_add

2010-11-11 Thread Prasad Joshi
Hello All, I have question on code of rmap_add Here is the code of the function  613 static int rmap_add(struct kvm_vcpu *vcpu, u64 *spte, gfn_t gfn)  614 { 624 rmapp = gfn_to_rmap(vcpu-kvm, gfn, sp-role.level);  625 if (!*rmapp) {  626 rmap_printk(rmap_add: %p %llx 0-1\n,

RE: Unable to start VM using COWed image

2010-11-10 Thread Prasad Joshi
From: Stefan Hajnoczi [stefa...@gmail.com] Sent: 10 November 2010 11:12 To: Prasad Joshi Cc: Keqin Hong; kvm@vger.kernel.org Subject: Re: Unable to start VM using COWed image On Wed, Nov 10, 2010 at 10:08 AM, Prasad Joshi p.g.jo...@student.reading.ac.uk wrote: Where can I get the code

RE: Unable to start VM using COWed image

2010-11-10 Thread Prasad Joshi
Thanks a lot for your reply. From: Keqin Hong [kh...@redhat.com] Sent: 10 November 2010 01:56 To: Prasad Joshi Subject: Re: Unable to start VM using COWed image - Prasad Joshi p.g.jo...@student.reading.ac.uk wrote: Hello, I am trying to run KVM machine from the image created as COW

RE: Unable to start VM using COWed image

2010-11-10 Thread Prasad Joshi
try adding -F base-fmt. Also qcow is obsolete, you'd better use qcow2 e.g. qemu-img create -b Ubuntu.img -F raw -f qcow2 /home/prasad/Virtual/Ubuntu_copy.ovl [r...@prasad images]# pwd /var/lib/libvirt/images [r...@prasad images]# date; qemu-img create -b Ubuntu.img -F raw -f qcow2

RE: Unable to start VM using COWed image

2010-11-10 Thread Prasad Joshi
From: Stefan Hajnoczi [stefa...@gmail.com] Sent: 10 November 2010 12:47 To: Prasad Joshi Cc: Keqin Hong; kvm@vger.kernel.org Subject: Re: Unable to start VM using COWed image On Wed, Nov 10, 2010 at 12:40 PM, Prasad Joshi p.g.jo...@student.reading.ac.uk wrote: From: Stefan Hajnoczi [stefa

Unable to start VM using COWed image

2010-11-09 Thread Prasad Joshi
: Permission denied [pra...@prasad Virtual]$ sudo qemu-kvm ${PWD}/Ubuntu_copy.ovl -m 512 qemu: could not open disk image /home/prasad/Virtual/Ubuntu_copy.ovl: No such file or directory Why is it failing? Thanks and Regards, Prasad Joshi -- To unsubscribe from this list: send the line unsubscribe kvm

Use of anon_inode_getfd in KVM

2010-11-04 Thread Prasad Joshi
the design of KVM. If someone has one, I request to share it. Thanks and Regards, Prasad Joshi (Student ID: 19015523) MRes Systems Engineering -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http

A character typo

2010-11-03 Thread Prasad Joshi
Hello All, I was reading code of launching and resuming the VM code. While reading code I came across a small typo. I am not sure if it is important/necessary to make this change. Anyways here is the patch diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 200533e..990a67a 100644 ---

Re: Page Eviction Algorithm

2010-10-28 Thread Prasad Joshi
On Thu, Oct 28, 2010 at 1:45 AM, Avi Kivity a...@redhat.com wrote: Does this MMU invalidation has to do something with the EPT (Extended Page Table) No and instruction INVEPT? No, (though INVEPT has to be run as part of this operation, via kvm_flush_remote_tlbs). Thanks a lot Avi for

Page Eviction Algorithm

2010-10-26 Thread Prasad Joshi
Hi All, I was just going over TODO list on KVM page. In MMU related TODO I saw only page eviction algorithm currently implemented is FIFO. Is it really the case? If yes I would like to work on it. Can someone let me know the place where the FIFO code is implemented? Thanks and Regards, Prasad

Re: Page Eviction Algorithm

2010-10-26 Thread Prasad Joshi
Thanks a lot for your reply. On Tue, Oct 26, 2010 at 11:31 AM, Avi Kivity a...@redhat.com wrote:  On 10/26/2010 11:19 AM, Prasad Joshi wrote: Hi All, I was just going over TODO list on KVM page. In MMU related TODO I saw only page eviction algorithm currently implemented is FIFO

Re: Page Eviction Algorithm

2010-10-26 Thread Prasad Joshi
On Tue, Oct 26, 2010 at 2:07 PM, Avi Kivity a...@redhat.com wrote:  On 10/26/2010 12:42 PM, Prasad Joshi wrote: Thanks a lot for your reply. On Tue, Oct 26, 2010 at 11:31 AM, Avi Kivitya...@redhat.com  wrote:    On 10/26/2010 11:19 AM, Prasad Joshi wrote:  Hi All,  I was just going

Re: Page Eviction Algorithm

2010-10-26 Thread Prasad Joshi
Can you please suggest me something that would add value to KVM? O(1) write protection (on the TODO page) is interesting and important.  It's difficult, so you may want to start with O(1) invalidation. I am not sure if I can understand what exactly is a MMU invalidation. Is it cache