[Qemu-devel] [PATCH v6 2/6] BitmapLog: bitmap dump code

2014-09-13 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- No functional change, except: - naming convention i.e. QemuProcess has been changed to QemuDirtyBitmapUser. - rectified mistakes in documentation in qapi-schema.json. - removed acronyms hmp-commands.hx | 16 ++ hmp.c

[Qemu-devel] [PATCH v6 4/6] BitmapLog: cancel mechanism for an already running dump bitmap process

2014-09-13 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- No functional change, except acronyms have been removed. Removed acronyms, no functional change. hmp-commands.hx | 14 ++ hmp.c| 5 + hmp.h| 1 + qapi-schema.json | 9 + qmp

[Qemu-devel] [PATCH v6 0/6] Obtain dirty bitmap via VM logging

2014-09-13 Thread Sanidhya Kashyap
-- v2: * Added two new run states to avoid simultaneous execution of both migration and bitmap dump process. * Removed FILE pointer usage. * Dumping the data only in machine-readable format. * Tried to rectify mistakes of the previous version. Sanidhya Kashyap (6): generic function between

[Qemu-devel] [PATCH v6 5/6] BitmapLog: set the period of the dump bitmap process

2014-09-13 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- Removed acronyms, no functional change. hmp-commands.hx | 15 +++ hmp.c| 12 hmp.h| 1 + qapi-schema.json | 12 qmp-commands.hx | 24 savevm.c

[Qemu-devel] [PATCH v6 3/6] BitmapLog: get the information about the parameters

2014-09-13 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- Removed acronyms, no functional change. hmp-commands.hx | 2 ++ hmp.c| 21 + hmp.h| 1 + monitor.c| 7 +++ qapi-schema.json | 28 qmp-commands.hx

[Qemu-devel] [PATCH v6 6/6] BitmapLog: python script for extracting bitmap from a binary file

2014-09-13 Thread Sanidhya Kashyap
2 matrix dimension like 512 X 512 or 1024 X 512 etc for the dumping of the bitmap. But, I am still supporting the default square root based method of dimension selection. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- scripts/extract-bitmap.py | 213

[Qemu-devel] [PATCH v6 1/6] generic function between migration and bitmap dump

2014-09-13 Thread Sanidhya Kashyap
Now, the counter variable is available to all the functions that will call qemu_bitmap_sync_range. I have tried to make the function along with the variables as generic as possible. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- arch_init.c | 19

[Qemu-devel] [RFC PATCH v3 1/6] QEMUSizedBuffer/QEMUFile

2014-08-09 Thread Sanidhya Kashyap
that can be written to or read from. Signed-off-by: Stefan Berger stef...@linux.vnet.ibm.com Signed-off-by: Joel Schopp jsch...@linux.vnet.ibm.com Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- include/migration/qemu-file.h | 27 +++ qemu-file.c | 411

[Qemu-devel] [RFC PATCH v3 2/6] VMState test: get information about the registered devices

2014-08-09 Thread Sanidhya Kashyap
. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 2 ++ hmp.c| 23 +++ hmp.h| 1 + monitor.c| 7 +++ qapi-schema.json | 26 ++ qmp-commands.hx | 43

[Qemu-devel] [RFC PATCH v3 5/6] VMState test: update period of vmstate testing process

2014-08-09 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 15 +++ hmp.c| 14 ++ hmp.h| 1 + qapi-schema.json | 12 qmp-commands.hx | 21 + savevm.c | 13 + 6 files changed

[Qemu-devel] [RFC PATCH v3 0/6] VMState testing

2014-08-09 Thread Sanidhya Kashyap
bad at naming convention, thanks to community, specially Eric, I try to improve it with every version. * On Eric's advice, I have separated all of the qmp and hmp interface patches. * Changed the DPRINTF statements as required. Dr. David Alan Gilbert (1): QEMUSizedBuffer/QEMUFile Sanidhya

[Qemu-devel] [RFC PATCH v3 4/6] VMState test: querying the vmstate testing process

2014-08-09 Thread Sanidhya Kashyap
the information about the running vmstate testing process. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 4 +++- hmp.c| 31 +++ hmp.h| 1 + monitor.c| 7 +++ qapi-schema.json | 37

[Qemu-devel] [RFC PATCH v3 3/6] VMstate test: basic VMState testing mechanism

2014-08-09 Thread Sanidhya Kashyap
the case pointed out by Juan does not exist. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 16 hmp.c| 17 hmp.h| 1 + qapi-schema.json | 22 ++ qmp-commands.hx | 33 savevm.c | 233

[Qemu-devel] [RFC PATCH v3 6/6] VMState test: cancel mechanism for an already running vmstate testing process

2014-08-09 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 14 ++ hmp.c| 6 ++ hmp.h| 1 + qapi-schema.json | 9 + qmp-commands.hx | 20 savevm.c | 16 ++-- 6 files changed, 64

[Qemu-devel] [PATCH v5 0/6] Obtain dirty bitmap via VM logging

2014-07-31 Thread Sanidhya Kashyap
in machine-readable format. * Tried to rectify mistakes of the previous version. Sanidhya Kashyap (6): generic function between migration and bitmap dump BitmapLog: bitmap dump code BitmapLog: get the information about the parameters BitmapLog: cancel mechanism for an already running dump

[Qemu-devel] [PATCH v5 1/6] generic function between migration and bitmap dump

2014-07-31 Thread Sanidhya Kashyap
I have modified the functions to be more generic i.e. I have used the counter variable which stores the required value. If the value of counter is 0, it means bitmap dump process whereas the value of 1 means migration. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- arch_init.c

[Qemu-devel] [PATCH v5 2/6] BitmapLog: bitmap dump code

2014-07-31 Thread Sanidhya Kashyap
is hot plugged or hot unplugged. I have modified the variables name as: current-iteration: for the current iteration under process iterations: total iterations that will be done which is constant period: the delay in each iteration. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp

[Qemu-devel] [PATCH v5 3/6] BitmapLog: get the information about the parameters

2014-07-31 Thread Sanidhya Kashyap
No functional change except the variable name. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 2 ++ hmp.c| 19 +++ hmp.h| 1 + monitor.c| 7 +++ qapi-schema.json | 28 qmp

[Qemu-devel] [PATCH v5 4/6] BitmapLog: cancel mechanism for an already running dump bitmap process

2014-07-31 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 14 ++ hmp.c| 5 + hmp.h| 1 + qapi-schema.json | 9 + qmp-commands.hx | 20 savevm.c | 14 ++ 6 files changed, 63

[Qemu-devel] [PATCH v5 6/6] BitmapLog: python script for extracting bitmap from a binary file

2014-07-31 Thread Sanidhya Kashyap
-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- scripts/extract-bitmap.py | 144 ++ 1 file changed, 144 insertions(+) create mode 100755 scripts/extract-bitmap.py diff --git a/scripts/extract-bitmap.py b/scripts/extract-bitmap.py new file mode 100755

[Qemu-devel] [PATCH v5 5/6] BitmapLog: set the period of the dump bitmap process

2014-07-31 Thread Sanidhya Kashyap
No functional change except the variable name -- frequency has been modified to period. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 15 +++ hmp.c| 12 hmp.h| 1 + qapi-schema.json | 12 qmp

Re: [Qemu-devel] [PATCH RFC v2 03/12] VMState test: query command to extract the qdevified device names

2014-07-29 Thread Sanidhya Kashyap
] Once here, can we change this to also include the device version? i.e. something like: devices: [ [ device: [ name: kvm-tpr-opt, version, 15]]], ...] Or somesuch? That is possible. Do you want any other information to be printed? -- - Sanidhya Kashyap

Re: [Qemu-devel] [PATCH RFC v2 05/12] VMstate test: basic VMState testing mechanism

2014-07-29 Thread Sanidhya Kashyap
the qemu_buf_set_ro and qemu_buf_set_rw, I guess, I'll have to rewind the pointer, for which I have to get some idea before doing it, or extend the QEMUFile code for memory buffer. -- - Sanidhya Kashyap

Re: [Qemu-devel] [PATCH RFC v2 09/12] VMState test: update period of vmstate testing process

2014-07-29 Thread Sanidhya Kashyap
this impact the default of the next vmstate test to Yes start, in the case where that command doesn't supply a value for period but relies on the default? No, it does not. - -- - - Sanidhya Kashyap -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http

Re: [Qemu-devel] [PATCH RFC v2 12/12] VMState test: hmp interface for cancel mechanism

2014-07-29 Thread Sanidhya Kashyap
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/29/2014 10:22 PM, Eric Blake wrote: On 07/25/2014 09:39 AM, Sanidhya Kashyap wrote: Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 14 ++ hmp.c | 6 ++ hmp.h | 1 + 3

[Qemu-devel] [PATCH RFC v2 00/12] VMState testing

2014-07-25 Thread Sanidhya Kashyap
): QEMUSizedBuffer/QEMUFile Sanidhya Kashyap (11): reset handler for qdevified devices VMState test: query command to extract the qdevified device names VMState test: hmp interface for showing qdevified devices VMstate test: basic VMState testing mechanism VMState test: hmp interface

[Qemu-devel] [PATCH RFC v2 01/12] QEMUSizedBuffer/QEMUFile

2014-07-25 Thread Sanidhya Kashyap
From: Dr. David Alan Gilbert dgilb...@redhat.com Stefan Berger's to create a QEMUFile that goes to a memory buffer; from: http://lists.gnu.org/archive/html/qemu-devel/2013-03/msg05036.html Using the QEMUFile interface, this patch adds support functions for operating on in-memory sized buffers

[Qemu-devel] [PATCH RFC v2 03/12] VMState test: query command to extract the qdevified device names

2014-07-25 Thread Sanidhya Kashyap
I have provided a qmp interface for getting the list of qdevified devices that have been registered with SaveVMHandlers. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- qapi-schema.json | 22 ++ qmp-commands.hx | 25 + savevm.c

[Qemu-devel] [PATCH RFC v2 05/12] VMstate test: basic VMState testing mechanism

2014-07-25 Thread Sanidhya Kashyap
the documentation. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- qapi-schema.json | 26 ++ qmp-commands.hx | 37 savevm.c | 251 +++ 3 files changed, 314 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json

[Qemu-devel] [PATCH RFC v2 04/12] VMState test: hmp interface for showing qdevified devices

2014-07-25 Thread Sanidhya Kashyap
This patch provides the hmp interface for qdevified devices list. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 2 ++ hmp.c | 21 + hmp.h | 1 + monitor.c | 7 +++ 4 files changed, 31 insertions(+) diff --git

[Qemu-devel] [PATCH RFC v2 02/12] reset handler for qdevified devices

2014-07-25 Thread Sanidhya Kashyap
be grateful if anyone can give some pointers on this. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- savevm.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/savevm.c b/savevm.c index e19ae0a..0255fa0 100644 --- a/savevm.c +++ b/savevm.c @@ -503,12

[Qemu-devel] [PATCH RFC v2 06/12] VMState test: hmp interface for vmstate testing

2014-07-25 Thread Sanidhya Kashyap
I have added the hmp interface for vmstate testing. Currently, the patch does not support the qdev list, since I could not figure out how to the pass the VMStatesQdevDevices struct which can be parsed and used. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 15

[Qemu-devel] [PATCH RFC v2 10/12] VMState test: hmp interface for period update

2014-07-25 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 15 +++ hmp.c | 14 ++ hmp.h | 1 + 3 files changed, 30 insertions(+) diff --git a/hmp-commands.hx b/hmp-commands.hx index c1dc6a2..6d15184 100644 --- a/hmp-commands.hx

[Qemu-devel] [PATCH RFC v2 08/12] VMState test: hmp interface for querying the vmstate testing process

2014-07-25 Thread Sanidhya Kashyap
Added a hmp interface for providing the information about the testing process. I have used the underscore as a separater on Eric's advice. But, I have found some of the commands having hyphen. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 2 ++ hmp.c

[Qemu-devel] [PATCH RFC v2 07/12] VMState test: qmp interface for querying the vmstate testing process

2014-07-25 Thread Sanidhya Kashyap
This patch provides the information about an already executing testing process. I have modified the qmp command to query-test-vmstates from test-vmstates-get-info. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- qapi-schema.json | 34 ++ qmp

[Qemu-devel] [PATCH RFC v2 11/12] VMState test: cancel mechanism for an already running vmstate testing process

2014-07-25 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- qapi-schema.json | 9 + qmp-commands.hx | 19 +++ savevm.c | 16 ++-- 3 files changed, 42 insertions(+), 2 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index 13e922e

[Qemu-devel] [PATCH RFC v2 12/12] VMState test: hmp interface for cancel mechanism

2014-07-25 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 14 ++ hmp.c | 6 ++ hmp.h | 1 + 3 files changed, 21 insertions(+) diff --git a/hmp-commands.hx b/hmp-commands.hx index 6d15184..fe224fc 100644 --- a/hmp-commands.hx +++ b/hmp

[Qemu-devel] [PATCH RFC v2 09/12] VMState test: update period of vmstate testing process

2014-07-25 Thread Sanidhya Kashyap
No particular change, except variable name. Since I am not modifying other variables, so I have not made the command generic. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- qapi-schema.json | 12 qmp-commands.hx | 23 +++ savevm.c | 13

Re: [Qemu-devel] [PATCH v4 0/8] Obtain dirty bitmap via VM logging

2014-07-18 Thread Sanidhya Kashyap
very basic approach that I have thought is about using a global variable but don't know whether that is a good option or not. Any other alternative is welcomed. - Sanidhya Kashyap

Re: [Qemu-devel] [PATCH v4 7/8] BitmapLog: get the information about the parameters

2014-07-18 Thread Sanidhya Kashyap
and be done with it (the user can go look up the documentation of that struct). Will do that. - -- - - Sanidhya Kashyap -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTyVwyAAoJEFt9RLmoahlnS1QH/36mLxnS3sblvYI6v7fJxAF0

Re: [Qemu-devel] [PATCH v4 5/8] BitmapLog: cancel mechanism for an already running dump bitmap process

2014-07-18 Thread Sanidhya Kashyap
commands still use _ in their names; it's only QMP where we prefer dash. I didn't notice. Will change it. - - Sanidhya Kashyap -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTyV6sAAoJEFt9RLmoahlnPM8H

Re: [Qemu-devel] [PATCH v4 2/8] RunState: added two new flags for bitmap dump and migration process

2014-07-18 Thread Sanidhya Kashyap
libvirt. :-/ - -- - - Sanidhya Kashyap -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTyWESAAoJEFt9RLmoahlnesAIAJi2ZbPkZTvllPl0/n5oQmRm hqegnl4ggsv8R9lpElcEtJKiwI0JpqwNzmNGp/nUmHqlq9cFgsC58AtdbRQGjDmx

Re: [Qemu-devel] [PATCH v4 3/8] BitmapLog: bitmap dump code via QAPI framework with runstates

2014-07-18 Thread Sanidhya Kashyap
this point in the documentation as well as in the code. -- - Sanidhya Kashyap

[Qemu-devel] [PATCH v4 5/8] BitmapLog: cancel mechanism for an already running dump bitmap process

2014-07-17 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 14 ++ hmp.c| 5 + hmp.h| 1 + qapi-schema.json | 8 qmp-commands.hx | 21 + savevm.c | 19 +++ 6 files changed, 68

[Qemu-devel] [PATCH v4 6/8] BitmapLog: set the frequency of the dump bitmap process

2014-07-17 Thread Sanidhya Kashyap
Rectified the example mistake in qmp-commands.hx. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 15 +++ hmp.c| 12 hmp.h| 1 + qapi-schema.json | 13 + qmp-commands.hx | 24

[Qemu-devel] [PATCH v4 8/8] BitmapLog: python script for extracting bitmap from a binary file

2014-07-17 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- scripts/extract-bitmap.py | 97 +++ 1 file changed, 97 insertions(+) create mode 100755 scripts/extract-bitmap.py diff --git a/scripts/extract-bitmap.py b/scripts/extract-bitmap.py new file

[Qemu-devel] [PATCH v4 7/8] BitmapLog: get the information about the parameters

2014-07-17 Thread Sanidhya Kashyap
to modify the other values except frequency, so that is why I have not added the generic set-tuning interface. If required, I will add it. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- qapi-schema.json | 31 +++ qmp-commands.hx | 24

Re: [Qemu-devel] [PATCH 00/46] Postcopy implementation

2014-07-10 Thread Sanidhya Kashyap
The single precopy lazy pass would consist of clearing the dirty bitmap, starting precopy, then if any page is found dirty by the time precopy tries to send it, we skip it. We only send those pages in precopy that haven't been modified yet by the time we reach them in precopy. Pages

[Qemu-devel] [RFC PATCH v1 0/5] VMState testing

2014-07-07 Thread Sanidhya Kashyap
iteration. With these patches, I haven't found any bug in the device states. I wish I am on the right track. Dr. David Alan Gilbert (1): QEMUSizedBuffer/QEMUFile Sanidhya Kashyap (4): VMState test: basic vmstate testing mechanism VMState test: hmp interface for vmstate testing VMState test

[Qemu-devel] [RFC PATCH v1 1/5] QEMUSizedBuffer/QEMUFile

2014-07-07 Thread Sanidhya Kashyap
From: Dr. David Alan Gilbert dgilb...@redhat.com Using the patch of Stefan Berger for memory buffer based QEMUFile. http://lists.gnu.org/archive/html/qemu-devel/2013-03/msg05036.html In the words of David: Using the QEMUFile interface, this patch adds support functions for operating on

[Qemu-devel] [RFC PATCH v1 3/5] VMState test: hmp interface for vmstate testing

2014-07-07 Thread Sanidhya Kashyap
Added hmp interface. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 15 +++ hmp.c | 14 ++ hmp.h | 1 + 3 files changed, 30 insertions(+) diff --git a/hmp-commands.hx b/hmp-commands.hx index d0943b1..c492f3f 100644

[Qemu-devel] [RFC PATCH v1 2/5] VMState test: basic vmstate testing mechanism

2014-07-07 Thread Sanidhya Kashyap
the qdevified device tree to reset the functions. As of now, I am providing DPRINTF to know about the amount of time spend in saving and loading the data from the buffer. If there is any other way that should be used to print the stats, then please do let me know. Signed-off-by: Sanidhya Kashyap sanidhya.ii

[Qemu-devel] [RFC PATCH v1 4/5] VMState test: set the frequency of the vmstate testing process

2014-07-07 Thread Sanidhya Kashyap
This patch introduces the mechanism to update the sleep interval - sinterval. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 15 +++ hmp.c| 14 ++ hmp.h| 1 + qapi-schema.json | 10 ++ qmp-commands.hx | 22

[Qemu-devel] [RFC PATCH v1 5/5] VMState test: cancel mechanism for an already running vmstate testing process

2014-07-07 Thread Sanidhya Kashyap
This patch helps in cancelling an already executing vmstate testing process. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 14 ++ hmp.c| 6 ++ hmp.h| 1 + qapi-schema.json | 9 + qmp-commands.hx | 20

[Qemu-devel] [PATCH v3 1/7] enable sharing of the function between migration and bitmap dump

2014-06-12 Thread Sanidhya Kashyap
Added prefix qemu_ to the function as pointed out by Juan. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- arch_init.c | 19 +++ include/exec/ram_addr.h | 4 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/arch_init.c b/arch_init.c

[Qemu-devel] [PATCH v3 3/7] bitmap dump code via QAPI framework with runstates

2014-06-12 Thread Sanidhya Kashyap
Reformatted the code and added the functionality of dumping the blocks' info which can be read by the user when required. I have also made the block name length global. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- include/exec/cpu-all.h | 3 +- migration.c| 7

[Qemu-devel] [PATCH v3 2/7] RunState: added two new flags for bitmap dump and migration process

2014-06-12 Thread Sanidhya Kashyap
Changed those files that were directly using the RUN_STATE_RUNNING flag. Now, they have been replaced by the runstate_is_running() function. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hw/usb/hcd-ehci.c | 2 +- hw/usb/redirect.c | 6 +++--- qapi-schema.json | 7 ++- vl.c

[Qemu-devel] [PATCH v3 0/7] Obtain dirty bitmap via VM logging

2014-06-12 Thread Sanidhya Kashyap
usage. * Dumping the data only in machine-readable format. * Tried to rectify mistakes of the previous version. Sanidhya Kashyap (7): enable sharing of the function between migration and bitmap dump RunState: added two new flags for bitmap dump and migration process bitmap dump code via QAPI

[Qemu-devel] [PATCH v3 4/7] hmp interface for dirty bitmap dump

2014-06-12 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 16 hmp.c | 16 hmp.h | 1 + 3 files changed, 33 insertions(+) diff --git a/hmp-commands.hx b/hmp-commands.hx index 5f1a677..cccd53e 100644 --- a/hmp-commands.hx

[Qemu-devel] [PATCH v3 7/7] python script for extracting bitmap from a binary file

2014-06-12 Thread Sanidhya Kashyap
as a marker identifying as the end of that bitmap. If the 'M' is missing while reading the file, then dump is incomplete. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- scripts/extract-bitmap.py | 97 +++ 1 file changed, 97 insertions(+) create

[Qemu-devel] [PATCH v3 5/7] cancel mechanism for an already running dump bitmap process

2014-06-12 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 14 ++ hmp.c| 5 + hmp.h| 1 + qapi-schema.json | 8 qmp-commands.hx | 20 savevm.c | 19 +++ 6 files changed, 67

[Qemu-devel] [PATCH v3 6/7] set the frequency of the dump bitmap process

2014-06-12 Thread Sanidhya Kashyap
No, particular change except the function name changed - value_in_range(). Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 15 +++ hmp.c| 12 hmp.h| 1 + qapi-schema.json | 11 +++ qmp-commands.hx | 24

Re: [Qemu-devel] [PATCH v3 2/7] RunState: added two new flags for bitmap dump and migration process

2014-06-12 Thread Sanidhya Kashyap
int runstate_is_running(void) { -return runstate_check(RUN_STATE_RUNNING); +return (runstate_check(RUN_STATE_RUNNING) || +runstate_check(RUN_STATE_MIGRATE) || +runstate_check(RUN_STATE_DUMP_BITMAP)); } Forgot to apply the checkpatch script. The return

[Qemu-devel] [PATCH v3 3/7][RESEND PATCH] bitmap dump code via QAPI framework with runstates

2014-06-12 Thread Sanidhya Kashyap
Reformatted the code and added the functionality of dumping the blocks' info which can be read by the user when required. I have also made the block name length global. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- include/exec/cpu-all.h | 3 +- migration.c| 7

[Qemu-devel] [PATCH v2 0/8] Obtain dirty bitmap via VM logging

2014-06-04 Thread Sanidhya Kashyap
of both migration and bitmap dump process. * Removed FILE pointer usage. * Dumping the data only in machine-readable format. * Tried to rectify mistakes of the previous version. Sanidhya Kashyap (8): enable sharing of the function between migration and bitmap dump bitmap dump code via QAPI

[Qemu-devel] [PATCH v2 2/8] bitmap dump code via QAPI framework

2014-06-04 Thread Sanidhya Kashyap
with qemu_open / qemu_close. 4) Removed text format, output only in machine-readable format. 5) Defined constants. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- qapi-schema.json | 17 qmp-commands.hx | 33 savevm.c | 246

[Qemu-devel] [PATCH v2 8/8] python script for extracting bitmap from a binary file

2014-06-04 Thread Sanidhya Kashyap
No particular functional change. This file does not need to be included in the Makefile as it will be only useful once the user has generated the bitmap file via bitmap dump process. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- scripts/extract-bitmap.py | 64

[Qemu-devel] [PATCH v2 3/8] RunState: added two new flags for bitmap dump and migration process

2014-06-04 Thread Sanidhya Kashyap
have tried to cover what I thought is necessary). Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- qapi-schema.json | 7 ++- vl.c | 29 - 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json

[Qemu-devel] [PATCH v2 4/8] bitmap dump process with runstates

2014-06-04 Thread Sanidhya Kashyap
interface as the current_run_state variable is not updated. Any thoughts on that? Do I need to make the changes there as well or is there any simple way to do it? Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- migration.c | 7 +++ savevm.c| 26 +++--- 2

[Qemu-devel] [PATCH v2 7/8] set the frequency of the dump bitmap process

2014-06-04 Thread Sanidhya Kashyap
No particular functional change. Corrected some mistakes. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 15 +++ hmp.c| 12 hmp.h| 1 + qapi-schema.json | 10 ++ qmp-commands.hx | 23

[Qemu-devel] [PATCH v2 1/8] enable sharing of the function between migration and bitmap dump

2014-06-04 Thread Sanidhya Kashyap
As advised by Eric, I have enabled sharing of the function between of the function that syncs the dirty bitmap obtained via kvm ioctl. I have tried to make the least changes to the functions by concentrating only on the function definitions. Signed-off-by: Sanidhya Kashyap sanidhya.ii

[Qemu-devel] [PATCH v2 6/8] cancel mechanism for an already running dump bitmap process

2014-06-04 Thread Sanidhya Kashyap
No particular functional changes. Rectified some previous mistakes. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 14 ++ hmp.c| 5 + hmp.h| 1 + qapi-schema.json | 8 qmp-commands.hx | 20

[Qemu-devel] [PATCH v2 5/8] hmp interface for dirty bitmap dump

2014-06-04 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 16 hmp.c | 16 hmp.h | 1 + 3 files changed, 33 insertions(+) diff --git a/hmp-commands.hx b/hmp-commands.hx index 2e462c0..1665587 100644 --- a/hmp-commands.hx

Re: [Qemu-devel] [PATCH v2 1/8] enable sharing of the function between migration and bitmap dump

2014-06-04 Thread Sanidhya Kashyap
Exporting a function without a prefix could be dangerous. Later, Juan. Any particular solution, as the function is being used at two places. -- Sanidhya Kashyap

Re: [Qemu-devel] [PATCH v2 1/8] enable sharing of the function between migration and bitmap dump

2014-06-04 Thread Sanidhya Kashyap
bitmap_* prefix is taken for generic bitmap operations. qemu_bitmap_range_sync() migration_bitmap_range_sync() Use a prefix that is known to be used only on qemu. I can undrestand why you don't want migration, so qemu_ prefix should do the trick? Later, Juan. Got it! -- Sanidhya

[Qemu-devel] [PATCH 0/8] Obtain dirty bitmap via VM logging

2014-05-26 Thread Sanidhya Kashyap
of both migration and bitmap dump process. * Removed FILE pointer usage. * Dumping the data only in machine-readable format. * Tried to rectified mistakes of the previous version. Sanidhya Kashyap (8): enable sharing of the function between migration and bitmap dump bitmap dump code via QAPI

[Qemu-devel] [PATCH 1/8] enable sharing of the function between migration and bitmap dump

2014-05-26 Thread Sanidhya Kashyap
As advised by Eric, I have enabled sharing of the function between of the function that syncs the dirty bitmap obtained via kvm ioctl. I have tried to make the least changes to the functions by concentrating only on the function definitions. Signed-off-by: Sanidhya Kashyap sanidhya.ii

[Qemu-devel] [PATCH 8/8] python script for extracting bitmap from a binary file

2014-05-26 Thread Sanidhya Kashyap
No particular functional change. This file does not need to be included in the Makefile as it will be only useful once the user has generated the bitmap file via bitmap dump process. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- scripts/extract-bitmap.py | 64

[Qemu-devel] [PATCH 4/8] bitmap dump process with runstates

2014-05-26 Thread Sanidhya Kashyap
interface as the current_run_state variable is not updated. Any thoughts on that? Do I need to make the changes there as well or is there any simple way to do it? Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- migration.c | 7 +++ savevm.c| 26 +++--- 2

[Qemu-devel] [PATCH 5/8] hmp interface for dirty bitmap dump

2014-05-26 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 16 hmp.c | 16 hmp.h | 1 + 3 files changed, 33 insertions(+) diff --git a/hmp-commands.hx b/hmp-commands.hx index 2e462c0..1665587 100644 --- a/hmp-commands.hx

[Qemu-devel] [PATCH 6/8] cancel mechanism for an already running dump bitmap process

2014-05-26 Thread Sanidhya Kashyap
No particular functional changes. Rectified some previous mistakes. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 14 ++ hmp.c| 5 + hmp.h| 1 + qapi-schema.json | 8 qmp-commands.hx | 20

[Qemu-devel] [PATCH 7/8] set the frequency of the dump bitmap process

2014-05-26 Thread Sanidhya Kashyap
No particular functional change. Corrected some mistakes. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 15 +++ hmp.c| 12 hmp.h| 1 + qapi-schema.json | 10 ++ qmp-commands.hx | 23

[Qemu-devel] [PATCH 3/8] RunState: added two new flags for bitmap dump and migration process

2014-05-26 Thread Sanidhya Kashyap
have tried to cover what I thought is necessary). Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- qapi-schema.json | 7 ++- vl.c | 29 - 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json

[Qemu-devel] [PATCH 2/8] bitmap dump code via QAPI framework

2014-05-26 Thread Sanidhya Kashyap
with qemu_open / qemu_close. 4) Removed text format, output only in machine-readable format. 5) Defined constants. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- qapi-schema.json | 17 qmp-commands.hx | 33 savevm.c | 246

Re: [Qemu-devel] [PATCH 0/6] Obtain dirty bitmap via VM logging

2014-05-22 Thread Sanidhya Kashyap
On Wed, May 21, 2014 at 12:15 PM, ChenLiang chenlian...@huawei.com wrote: On 2014/5/21 12:56, Sanidhya Kashyap wrote: On Wed, May 21, 2014 at 9:43 AM, ChenLiang chenlian...@huawei.com wrote: Hi, Nice job. We should avoid running migration_thread and bitmap_logging_thread simultaneously

Re: [Qemu-devel] [PATCH 0/6] Obtain dirty bitmap via VM logging

2014-05-22 Thread Sanidhya Kashyap
. BTW, it is not your patches problem. Then, I'll go ahead and implement this part using two flags in my second version of the patches. cc: Juan Best regards ChenLiang -- Sanidhya Kashyap

Re: [Qemu-devel] [PATCH 0/6] Obtain dirty bitmap via VM logging

2014-05-21 Thread Sanidhya Kashyap
directly use the DIRTY_MEMORY_MIGRATION flag. What is your suggestion? -- Sanidhya Kashyap

[Qemu-devel] [PATCH 0/6] Obtain dirty bitmap via VM logging

2014-05-20 Thread Sanidhya Kashyap
or even can cancel the ongoing logging process. Thus, there are 3 hmp and qmp commands interface provided to perform the task. Sanidhya Kashyap (6): split dirty bitmap into four for dumping the bitmaps bitmap dump code via QAPI framework hmp interface for dirty bitmap dump cancel mechanism

[Qemu-devel] [PATCH 4/6] cancel mechanism for an already running dump bitmap process

2014-05-20 Thread Sanidhya Kashyap
This patch introduces both hmp and qmp (log-dirty-bitmap-cancel) interface to cancel an already executing dump process. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 14 ++ hmp.c| 5 + hmp.h| 1 + qapi-schema.json | 5

[Qemu-devel] [PATCH 1/6] split dirty bitmap into four for dumping the bitmaps

2014-05-20 Thread Sanidhya Kashyap
Added another flag - DIRTY_MEMORY_LOG_BITMAP for the purpose of logging the dirty bitmap. The dumping bitmap process will utilize this flag for dumping the data in the file. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- exec.c | 4 include/exec/memory.h

[Qemu-devel] [PATCH 2/6] bitmap dump code via QAPI framework

2014-05-20 Thread Sanidhya Kashyap
value is false. That is the data is save in human readable format. The first line is the total number of pages followed by size of the bitmap and then the hex dump of the bitmap array. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- include/qapi/qmp/qerror.h | 3 + qapi-schema.json

[Qemu-devel] [PATCH 5/6] set the frequency of the dump bitmap process

2014-05-20 Thread Sanidhya Kashyap
This patch introduces both qmp and hmp (log-dirty-bitmap-set-frequency) interface to update the value of the frequency. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 15 +++ hmp.c| 12 hmp.h| 1 + qapi

[Qemu-devel] [PATCH 6/6] python script for extracting bitmap from a binary file

2014-05-20 Thread Sanidhya Kashyap
This script extracts the bitmap only from a binary file. It takes only a single input as file. This will be useful to users for exploring the writable working set for the VM. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- scripts/extract-bitmap.py | 68

[Qemu-devel] [PATCH 3/6] hmp interface for dirty bitmap dump

2014-05-20 Thread Sanidhya Kashyap
Added the log-dirty-bitmap or ldb hmp interface. Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- hmp-commands.hx | 17 + hmp.c | 19 +++ hmp.h | 1 + 3 files changed, 37 insertions(+) diff --git a/hmp-commands.hx b/hmp

Re: [Qemu-devel] [PATCH 2/6] bitmap dump code via QAPI framework

2014-05-20 Thread Sanidhya Kashyap
+#define QERR_LOG_DIRTY_BITMAP_ACTIVE \ +ERROR_CLASS_GENERIC_ERROR, Dirty bitmap dump already in progress + Please don't add new ERROR_CLASS macros. Instead, just use error_setg() and directly output the error message at the call site that produces the error. will keep in mind in my

Re: [Qemu-devel] [PATCH 6/6] python script for extracting bitmap from a binary file

2014-05-20 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap sanidhya.ii...@gmail.com --- scripts/extract-bitmap.py | 68 +++ 1 file changed, 68 insertions(+) create mode 100755 scripts/extract-bitmap.py Does this file need to be mentioned in any Makefile to ensure

Re: [Qemu-devel] [PATCH 0/6] Obtain dirty bitmap via VM logging

2014-05-20 Thread Sanidhya Kashyap
On Wed, May 21, 2014 at 9:43 AM, ChenLiang chenlian...@huawei.com wrote: Hi, Nice job. We should avoid running migration_thread and bitmap_logging_thread simultaneously. Any particular suggestion to avoid running simultaneous execution of the threads? -- Sanidhya

Re: [Qemu-devel] Qemu live migration code

2014-03-25 Thread Sanidhya Kashyap
phase. 2014-03-24 13:46 GMT-04:00 Sanidhya Kashyap sanidhya.ii...@gmail.com: savevm.c will tell you about the stop time. arch_init.c (ram_save_block) will tell about the number of pages transferred. On Mon, Mar 24, 2014 at 10:51 PM, Bechir Bani bechir.b...@gmail.comwrote: I have a task

Re: [Qemu-devel] Qemu live migration code

2014-03-24 Thread Sanidhya Kashyap
savevm.c will tell you about the stop time. arch_init.c (ram_save_block) will tell about the number of pages transferred. On Mon, Mar 24, 2014 at 10:51 PM, Bechir Bani bechir.b...@gmail.com wrote: I have a task to add trace points in the source code of Qemu. The goal is to know the number of