[Qemu-devel] [question] how to check if savevm is completed?

2014-07-17 Thread Zhang Haoyu
Hi, all I run savevm by qemu-monitor, but how to check if savevm is completed? I haven't find the query interface. Thanks, Zhang Haoyu

Re: [Qemu-devel] [PATCH] Tap: fix vcpu long time io blocking on tap

2014-07-17 Thread Wangkai (Kevin,C)
> -Original Message- > From: Jason Wang [mailto:jasow...@redhat.com] > Sent: Thursday, July 17, 2014 1:37 PM > To: Wangkai (Kevin,C); Stefan Hajnoczi > Cc: Lee yang; qemu-devel@nongnu.org; Stefan Hajnoczi; > aligu...@amazon.com; Michael S. Tsirkin > Subject: Re: [Qemu-devel] [PATCH] Tap:

[Qemu-devel] [Bug 1307473] Re: guest hang due to missing clock interrupt

2014-07-17 Thread Jan Müller
dup of #1332409? seems to be a 3.13 only bug. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1307473 Title: guest hang due to missing clock interrupt Status in QEMU: New Status in “linux” packag

[Qemu-devel] [PATCH for-2.1] qcow2: Fix error path for unknown incompatible features

2014-07-17 Thread Kevin Wolf
qcow2's report_unsupported_feature() had two bugs: A 32 bit truncation would prevent feature table entries for bits 32-63 from being used, and it could assign errp multiple times if there was more than one unknown feature, resulting in an error_set() assertion failure. Fix the truncation, make sur

Re: [Qemu-devel] [Intel-gfx] ResettRe: [Xen-devel] [v5][PATCH 0/5] xen: add Intel IGD passthrough support

2014-07-17 Thread Chen, Tiejun
On 2014/7/16 22:20, Konrad Rzeszutek Wilk wrote: On Thu, Jul 03, 2014 at 11:27:40PM +0300, Michael S. Tsirkin wrote: On Thu, Jul 03, 2014 at 12:09:28PM -0700, Jesse Barnes wrote: On Thu, 3 Jul 2014 14:26:12 -0400 Konrad Rzeszutek Wilk wrote: On Thu, Jul 03, 2014 at 10:32:12AM +0300, Michae

[Qemu-devel] status for rc3/release

2014-07-17 Thread Peter Maydell
So we just released rc2. The proposed schedule has rc3 next Tuesday, with final release the Tuesday after. My thought is that we should aim for rc3 to add only a fairly small number of focussed and "safe" bugfixes, with the intention of making the final release be the same as rc3 if no showstopper

Re: [Qemu-devel] latest rc: virtio-blk hangs forever after migration

2014-07-17 Thread Marcin Gibuła
I'm using both of them applied on top of 2.0 in production and have no problems with them. I'm using NFS exclusively with cache=none. So, I shall test vm-migration and drive-migration with 2.1.0-rc2 with no extra patches applied or reverted, on VM that is running fio, am I correct? Yes, exactl

Re: [Qemu-devel] [PULL for-2.1] virtio-serial: bugfix for virtconsole port unplug

2014-07-17 Thread Peter Maydell
On 16 July 2014 10:09, Amit Shah wrote: > Hi, > > This is a small bugfix to prevent port unplug causing port 0 getting > unreserved for virtconsole use. > > Patch has been on-list for a few days and has been reviewed. > > Please pull. > > > The following changes since commit 5a7348045091a2bc15d85b

Re: [Qemu-devel] latest rc: virtio-blk hangs forever after migration

2014-07-17 Thread Marcin Gibuła
I've reproduced your IO hang with 2.0 and both 9b1786829aefb83f37a8f3135e3ea91c56001b56 and a096b3a6732f846ec57dc28b47ee9435aa0609bf applied. Reverting 9b1786829aefb83f37a8f3135e3ea91c56001b56 indeed fixes the problem (but reintroduces block-migration hang). It's seems like qemu bug rather than g

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

2014-07-17 Thread Sanidhya Kashyap
Hi, The following patches introduce the support of the dirty bitmap logging and dumping to a specified file. This patch addresses the previous issues raised by David and Juan. Since, I have not received any comments on the runstates, I'll keep them in the patch series. v3 --> v4 * Added new qmp i

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

2014-07-17 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 --- hw/usb/hcd-ehci.c | 2 +- hw/usb/redirect.c | 6 +++--- qapi-schema.json | 7 ++- vl.c | 29 ++

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

2014-07-17 Thread Sanidhya Kashyap
Added prefix qemu_ to the function as pointed out by Juan. Signed-off-by: Sanidhya Kashyap --- 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 index 8ddaf35..9ac4602 100

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

2014-07-17 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. Some minor modification to the structure which is now storing all the information. Signed-off-by: Sanidhya Kashyap --- include/

[Qemu-devel] [PATCH v4 4/8] BitmapLog: hmp interface for dirty bitmap dump

2014-07-17 Thread Sanidhya Kashyap
Signed-off-by: Sanidhya Kashyap --- 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 d0943b1..575df78 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@

[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 --- 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 insertions(+) diff --git a/h

[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 --- hmp-commands.hx | 15 +++ hmp.c| 12 hmp.h| 1 + qapi-schema.json | 13 + qmp-commands.hx | 24 savevm.c | 14 +++

[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 --- 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 mode 100755 index 000

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

2014-07-17 Thread Sanidhya Kashyap
Added the qmp interface to know about the information of the bitmap dump process. When the command is executed, one can know about the current epoch value in which the process is in, the total iterations value and the current frequency value. Currently, I do not think that that one needs to modify

[Qemu-devel] [PATCH] block/quorum: implement .bdrv_co_get_block_status

2014-07-17 Thread Liu Yuan
- allow drive-mirror to create sprase mirror on images like qcow2 - allow qemu-img map to work as expected on quorum driver Cc: Benoit Canet Cc: Kevin Wolf Cc: Stefan Hajnoczi Signed-off-by: Liu Yuan --- block/quorum.c | 16 1 file changed, 16 insertions(+) diff --git a/bloc

Re: [Qemu-devel] latest rc: virtio-blk hangs forever after migration

2014-07-17 Thread Marcin Gibuła
Yes, exactly. ISCSI-based setup can take some minutes to deploy, given prepared image, and I have one hundred percent hit rate for the original issue with it. I've reproduced your IO hang with 2.0 and both 9b1786829aefb83f37a8f3135e3ea91c56001b56 and a096b3a6732f846ec57dc28b47ee9435aa0609bf appl

Re: [Qemu-devel] latest rc: virtio-blk hangs forever after migration

2014-07-17 Thread Andrey Korolyov
On Thu, Jul 17, 2014 at 3:54 PM, Marcin Gibuła wrote: >>> Yes, exactly. ISCSI-based setup can take some minutes to deploy, given >>> prepared image, and I have one hundred percent hit rate for the >>> original issue with it. >> >> >> I've reproduced your IO hang with 2.0 and both >> 9b1786829aefb8

Re: [Qemu-devel] status for rc3/release

2014-07-17 Thread Paolo Bonzini
Il 17/07/2014 11:45, Peter Maydell ha scritto: > So we just released rc2. The proposed schedule has > rc3 next Tuesday, with final release the Tuesday after. > > My thought is that we should aim for rc3 to add only > a fairly small number of focussed and "safe" bugfixes, > with the intention of ma

Re: [Qemu-devel] [PULL for-2.1] migration: detect section renames in vmstate static checker script

2014-07-17 Thread Peter Maydell
On 16 July 2014 10:11, Amit Shah wrote: > Hi, > > A minor enhancement to the static checker script that detects section > renames. One such rename was added recently (ICH9-LPC -> ICH9 LPC). > > This doesn't affect the qemu code, and enhances a test program, so I > recommend we pull it for 2.1. P

Re: [Qemu-devel] [PULL for-2.1] virtio-rng: Fix abort on invalid input

2014-07-17 Thread Peter Maydell
On 16 July 2014 10:13, Amit Shah wrote: > Hi, > > This patch returns an error instead of aborting, which is desirable > not just for cmdline invocation, but prevents an abort in case of > device hotplug. > > Patch is small, and reviewed on-list. > > Please pull, > > The following changes since com

Re: [Qemu-devel] [PATCH] Tap: fix vcpu long time io blocking on tap

2014-07-17 Thread Stefan Hajnoczi
On Fri, Jul 11, 2014 at 01:05:30AM +, Wangkai (Kevin,C) wrote: > When used a tap as net driver for vm, if too many packets was delivered to > the > guest os via tap interface, the guest os will be blocked on io events for a > long > time, while tap driver was busying process packets. Please

[Qemu-devel] [PATCH for-2.1] scsi: fix scsi disk symbol confusion in guest os

2014-07-17 Thread arei.gonglei
From: Gonglei Assuming that we hotplug three virtio-scsi disk as follow steps: 1. start vm with virtio-scsi as system disk (guest os: suse11 sp3 ). 2. hotplug disk 1 (as lun2) -drive file=/Images/TestImg/kvm-disk-scsi_001,if=none,id=drive-scsi0-0-0-2,format=raw, \ cache=none,aio=native -devic

Re: [Qemu-devel] [PATCH for-2.1? 2/2] thread-pool: avoid deadlock in nested aio_poll() calls

2014-07-17 Thread Stefan Hajnoczi
On Tue, Jul 15, 2014 at 05:21:21PM +0200, Paolo Bonzini wrote: > Il 15/07/2014 16:37, Stefan Hajnoczi ha scritto: > >>> This is of course missing here: > >>> > >>> break; > >Let's keep goto restart so we don't use the BH for each completion > >callback. We just need the BH scheduled once

[Qemu-devel] [Bug 1307473] Re: guest hang due to missing clock interrupt

2014-07-17 Thread Paolo Bonzini
** No longer affects: qemu -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1307473 Title: guest hang due to missing clock interrupt Status in “linux” package in Ubuntu: Confirmed Status in “qemu”

Re: [Qemu-devel] status for rc3/release

2014-07-17 Thread Frederic Konrad
On 17/07/2014 11:45, Peter Maydell wrote: So we just released rc2. The proposed schedule has rc3 next Tuesday, with final release the Tuesday after. My thought is that we should aim for rc3 to add only a fairly small number of focussed and "safe" bugfixes, with the intention of making the final

Re: [Qemu-devel] [PATCH for-2.1] qcow2: Fix error path for unknown incompatible features

2014-07-17 Thread Eric Blake
On 07/17/2014 03:41 AM, Kevin Wolf wrote: > qcow2's report_unsupported_feature() had two bugs: A 32 bit truncation > would prevent feature table entries for bits 32-63 from being used, and > it could assign errp multiple times if there was more than one unknown > feature, resulting in an error_set(

Re: [Qemu-devel] [PATCH RESEND] ui/gtk: Restore keyboard focus after Page change

2014-07-17 Thread Stefan Hajnoczi
On Tue, Jul 08, 2014 at 02:28:57PM -0400, John Snow wrote: > (Resending for correct email addresses via MAINTAINERS ...) > > In the GTK UI, after changing focus to the qemu monitor Notebook Page, > when restoring focus to the virtual machine page, the keyboard focus is lost > to a hidden GTK widge

Re: [Qemu-devel] latest rc: virtio-blk hangs forever after migration

2014-07-17 Thread Marcin Gibuła
2.1-rc2 behaves exactly the same. Interestingly enough, reseting guest system causes I/O to work again. So it's not qemu that hangs on IO, rather it fails to notify guest about completed operations that were issued during migration. And its somehow caused by calling cpu_synchronize_all_states()

Re: [Qemu-devel] [PATCH 01/28] blkdebug: report errors on flush too

2014-07-17 Thread Stefan Hajnoczi
On Mon, Jul 07, 2014 at 02:17:42PM -0400, John Snow wrote: > From: Paolo Bonzini > > Signed-off-by: Paolo Bonzini > Signed-off-by: John Snow > --- > block/blkdebug.c | 20 > 1 file changed, 20 insertions(+) Assuming this doesn't break existing qemu-iotests that use blkdeb

Re: [Qemu-devel] [PATCH 02/28] libqtest: add QTEST_LOG for debugging qtest testcases

2014-07-17 Thread Stefan Hajnoczi
On Mon, Jul 07, 2014 at 02:17:43PM -0400, John Snow wrote: > QDict *qtest_qmp_receive(QTestState *s) > { > QMPResponseParser qmp; > +bool log = getenv("QTEST_LOG") != NULL; > > qmp.response = NULL; > json_message_parser_init(&qmp.parser, qmp_response); > @@ -375,6 +377,9 @@ Q

[Qemu-devel] [Bug 1335444] Re: qemu loses serial console data on EAGAIN

2014-07-17 Thread Kirill Batuzov
v2.1.0-rc2 has both patches. ** Changed in: qemu Status: New => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1335444 Title: qemu loses serial console data on EAGAIN Status i

[Qemu-devel] [RFC PATCH v2 03/49] pcspk: adding vmstate for save/restore

2014-07-17 Thread Pavel Dovgalyuk
VMState added by this patch preserves correct loading of the PC speaker device state. Signed-off-by: Pavel Dovgalyuk --- hw/audio/pcspk.c | 19 +-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/hw/audio/pcspk.c b/hw/audio/pcspk.c index 1d81bbe..2afcffb 100644

[Qemu-devel] [RFC PATCH v2 04/49] fdc: adding vmstate for save/restore

2014-07-17 Thread Pavel Dovgalyuk
VMState added by this patch preserves correct loading of the FDC device state. Signed-off-by: Pavel Dovgalyuk --- hw/block/fdc.c | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/hw/block/fdc.c b/hw/block/fdc.c index 490d127..132310a 100644 --- a/hw/block/fdc.c +

[Qemu-devel] [RFC PATCH v2 01/49] acpi: accurate overflow check

2014-07-17 Thread Pavel Dovgalyuk
Compare clock in ns, because acpi_pm_tmr_update uses rounded to ns value instead of ticks. Signed-off-by: Pavel Dovgalyuk --- hw/acpi/core.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/acpi/core.c b/hw/acpi/core.c index a7368fb..f7272b4 100644 --- a/hw/acpi/

[Qemu-devel] [RFC PATCH v2 00/49] Series short description

2014-07-17 Thread Pavel Dovgalyuk
This set of patches is related to the reverse execution and deterministic replay of qemu execution Our implementation of deterministic replay can be used for deterministic and reverse debugging of guest code through gdb remote interface. Execution recording writes non-deterministic events log,

[Qemu-devel] [RFC PATCH v2 09/49] pckbd: adding new fields to vmstate

2014-07-17 Thread Pavel Dovgalyuk
This patch adds outport to VMState to allow correct saving and restoring the state of PC keyboard controller. Signed-off-by: Pavel Dovgalyuk --- hw/input/pckbd.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c index ca1cffc..19f6658

[Qemu-devel] [RFC PATCH v2 06/49] serial: fixing vmstate for save/restore

2014-07-17 Thread Pavel Dovgalyuk
Some fields were added to VMState by this patch to preserve correct loading of the serial port controller state. Updating FCR value while loading was also modified to disable generating an interrupt by loadvm. Signed-off-by: Pavel Dovgalyuk --- hw/char/serial.c | 115 +++

[Qemu-devel] [RFC PATCH v2 07/49] kvmapic: fixing loading vmstate

2014-07-17 Thread Pavel Dovgalyuk
vapic state should not be synchronized with APIC while loading, because APIC state could be not loaded yet at that moment. We just save vapic_paddr in APIC VMState instead of synchronization. Signed-off-by: Pavel Dovgalyuk --- hw/i386/kvmvapic.c| 22 +- hw/intc/apic_com

[Qemu-devel] [RFC PATCH v2 02/49] integratorcp: adding vmstate for save/restore

2014-07-17 Thread Pavel Dovgalyuk
VMState added by this patch preserves correct loading of the integratorcp device state. Signed-off-by: Pavel Dovgalyuk --- hw/arm/integratorcp.c | 38 +- 1 files changed, 37 insertions(+), 1 deletions(-) diff --git a/hw/arm/integratorcp.c b/hw/arm/integrato

[Qemu-devel] [RFC PATCH v2 45/49] replay: USB passthrough

2014-07-17 Thread Pavel Dovgalyuk
It writes all external data, returned by libusb, to the log. This data is read in replay mode instead of calling libusb functions. Command line option for connecting USB device to simulator should be specified in both record and replay modes. In replay mode only log file is read and USB device coul

[Qemu-devel] [RFC PATCH v2 42/49] replay: network packets record/replay

2014-07-17 Thread Pavel Dovgalyuk
This patch implements passing network packets to replay module in record mode. New virtual network adapter is implemented to replay the packets when they are read from the log file. Signed-off-by: Pavel Dovgalyuk --- net/Makefile.objs|1 net/clients.h|3 + net/dump.c

[Qemu-devel] [RFC PATCH v2 05/49] parallel: adding vmstate for save/restore

2014-07-17 Thread Pavel Dovgalyuk
VMState added by this patch preserves correct loading of the parallel port controller state. Signed-off-by: Pavel Dovgalyuk --- hw/char/parallel.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/hw/char/parallel.c b/hw/char/parallel.c index 7ac90a5.

[Qemu-devel] [RFC PATCH v2 44/49] replay: serial port

2014-07-17 Thread Pavel Dovgalyuk
This patch implements record and replay of serial ports. In record mode serial port can be connected to the source of the data: -serial tcp:127.0.0.1:23,nowait,server In replay mode it should not be connected to any data source, but should be initialized with null: -serial null Signed-off-by: Pave

[Qemu-devel] [RFC PATCH v2 15/49] softmmu: fixing usage of cpu_st/ld* from helpers

2014-07-17 Thread Pavel Dovgalyuk
MMU helper functions are called from generated code and other helper functions. In both cases they try to get function's return address for using it while restoring virtual CPU state. When MMU helper is called from some other helper function (like helper_maskmov_xmm) through cpu_st* function, the

[Qemu-devel] [RFC PATCH v2 46/49] replay: replay_info command

2014-07-17 Thread Pavel Dovgalyuk
This patch adds support for replay_info monitor command. This command returns the information about replay execution (replay mode and current step). Signed-off-by: Pavel Dovgalyuk --- hmp-commands.hx | 13 + monitor.c| 17 + qapi-schema.json |

[Qemu-devel] [RFC PATCH v2 48/49] replay: replay_seek_step command

2014-07-17 Thread Pavel Dovgalyuk
This patch adds support for replay_seek_step monitor command. This command loads one of the snapshots and replays the execution until the specified step is met. Signed-off-by: Pavel Dovgalyuk --- hmp-commands.hx | 14 ++ monitor.c| 17 + q

[Qemu-devel] [RFC PATCH v2 08/49] hpet: fixing saving and loading process

2014-07-17 Thread Pavel Dovgalyuk
VM clock does not run while saving, so there is no need for saving the ticks in HPET. Also added saving of hpet_offset field. Signed-off-by: Pavel Dovgalyuk --- hw/timer/hpet.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c

[Qemu-devel] [RFC PATCH v2 10/49] rtl8139: adding new fields to vmstate

2014-07-17 Thread Pavel Dovgalyuk
This patch adds virtual clock-dependent timers to VMState to allow correct saving and restoring the state of RTL8139 network controller. Signed-off-by: Pavel Dovgalyuk --- hw/net/rtl8139.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/net/rtl8139.c b/hw/net/rtl8

[Qemu-devel] [RFC PATCH v2 47/49] replay: replay_break command

2014-07-17 Thread Pavel Dovgalyuk
This patch adds support for replay_break monitor command. This command sets the step (measured in executed instructions) where replay should be stopped. Signed-off-by: Pavel Dovgalyuk --- hmp-commands.hx | 14 ++ monitor.c | 15 +++ qapi-schema.json|

[Qemu-devel] [RFC PATCH v2 49/49] gdbstub: reverse debugging

2014-07-17 Thread Pavel Dovgalyuk
This patch introduces support of reverse debugging through the gdb remote protocol. Patch adds reverse-stepi and reverse-continue commands support to qemu. Other reverse commands should also work, because they reuse these ones. Signed-off-by: Pavel Dovgalyuk --- exec.c |

[Qemu-devel] [RFC PATCH v2 26/49] replay: interrupts and exceptions

2014-07-17 Thread Pavel Dovgalyuk
This patch includes modifications of common cpu files. All interrupts and exceptions occured during recording are written into the replay log. These events allow correct replaying the execution by kicking cpu thread when one of these events is found in the log. Signed-off-by: Pavel Dovgalyuk ---

[Qemu-devel] [RFC PATCH v2 41/49] tap-win32: destroy the thread at exit

2014-07-17 Thread Pavel Dovgalyuk
This patch fixes resource leak caused by created thread which is not destroyed at exit. Signed-off-by: Pavel Dovgalyuk --- net/tap-win32.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/net/tap-win32.c b/net/tap-win32.c index 8aee611..efd1c75 100644 --- a/net/

[Qemu-devel] [RFC PATCH v2 17/49] target-i386: update fp status fix

2014-07-17 Thread Pavel Dovgalyuk
This patch adds calls to update_fp_status() function from several places where FPU state is changed. Signed-off-by: Pavel Dovgalyuk --- target-i386/cpu.c|1 + target-i386/cpu.h|1 + target-i386/fpu_helper.c |5 - target-i386/machine.c|2 +- 4 files changed

[Qemu-devel] [RFC PATCH v2 43/49] replay: audio data record/replay

2014-07-17 Thread Pavel Dovgalyuk
This patch adds deterministic replay for audio adapter. Replay module saves data from the microphone and "end-of-playback" events. Support of audio record and replay is implemented only for Win32 hosts. Signed-off-by: Pavel Dovgalyuk --- audio/audio.c| 14 ++- audio/audio_win_int.h

[Qemu-devel] [RFC PATCH v2 27/49] vga: do not use virtual clock for blinking cursor

2014-07-17 Thread Pavel Dovgalyuk
This patch changes virtual clock to realtime one in vga_draw_text and vga_update_display functions. Display update process depends on realtime clock. If we read virtual clock there, virtual machine becomes non-deterministic, because every read to virtual clock is written to the replay log. Signed-

[Qemu-devel] [RFC PATCH v2 14/49] ide pci: reset status field before loading the vmstate

2014-07-17 Thread Pavel Dovgalyuk
This patch resets status field before loading the state of IDE BMDMA device. Resetting status is needed for replay, because it does not reset whole virtual machine before loading state of the VM. Signed-off-by: Pavel Dovgalyuk --- hw/ide/pci.c | 10 ++ 1 files changed, 10 insertions(+)

[Qemu-devel] [RFC PATCH v2 36/49] pl031: vmstate in replay mode

2014-07-17 Thread Pavel Dovgalyuk
This patch modifies vmstate for PL031 RTC. It removes querying of the rtc and virtual clocks while saving and restoring VM state, because in replay mode these clocks are stopped while saving. And reading the clock while restoring the VM state may lead to read of the incorrect values, because clocks

[Qemu-devel] [RFC PATCH v2 25/49] target-i386: instructions counting code for replay

2014-07-17 Thread Pavel Dovgalyuk
This patch adds instructions counting into the target-specific part of i386/x86_64 simulator. In record/replay mode it inserts replay functions calls and instructions counter increment into the translated code. Signed-off-by: Pavel Dovgalyuk --- target-i386/Makefile.objs |1 + target-i386/

[Qemu-devel] [RFC PATCH v2 28/49] replay: asynchronous events infrastructure

2014-07-17 Thread Pavel Dovgalyuk
This patch adds module for saving and replaying asynchronous events. These events include network packets, keyboard and mouse input, USB packets, thread pool and bottom halves callbacks. All events are stored in the queue to be processed at synchronization points such as beginning of TB execution,

[Qemu-devel] [RFC PATCH v2 40/49] replay: recording of the user input

2014-07-17 Thread Pavel Dovgalyuk
This records user input (keyboard and mouse events) in record mode and replays these input events in replay mode. Signed-off-by: Pavel Dovgalyuk --- include/ui/input.h |2 + replay/Makefile.objs |1 replay/replay-events.c | 48 + replay/replay-input.c

[Qemu-devel] [RFC PATCH v2 35/49] replay: thread pool

2014-07-17 Thread Pavel Dovgalyuk
This patch modifies thread pool to allow replaying asynchronous thread tasks synchronously in replay mode. Signed-off-by: Pavel Dovgalyuk --- block/raw-posix.c |6 +++-- block/raw-win32.c |4 ++- include/block/thread-pool.h |4 ++- replay/replay-events.c |

[Qemu-devel] [RFC PATCH v2 11/49] piix: do not raise irq while loading vmstate

2014-07-17 Thread Pavel Dovgalyuk
This patch disables raising an irq while loading the state of PCI bridge. Signed-off-by: Pavel Dovgalyuk --- hw/pci-host/piix.c | 22 -- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index e0e0946..86d6d20 100644 ---

[Qemu-devel] [RFC PATCH v2 32/49] replay: checkpoints

2014-07-17 Thread Pavel Dovgalyuk
This patch introduces checkpoints that synchronize cpu thread and iothread. When checkpoint is met in the code all asynchronous events from the queue are executed. Signed-off-by: Pavel Dovgalyuk --- block.c | 11 +++ cpus.c |2 +- include/qemu/tim

[Qemu-devel] [RFC PATCH v2 33/49] replay: bottom halves

2014-07-17 Thread Pavel Dovgalyuk
This patch introduces bottom half event for replay queue. It saves the events into the queue and process them at the checkpoints and instructions execution. Signed-off-by: Pavel Dovgalyuk --- async.c | 45 +++-- dma-helpers.c

[Qemu-devel] [RFC PATCH v2 37/49] replay: initialization and deinitialization

2014-07-17 Thread Pavel Dovgalyuk
This patch introduces the functions for enabling the record/replay and for freeing the resources when simulator closes. Signed-off-by: Pavel Dovgalyuk --- exec.c |1 replay/replay-internal.h |2 + replay/replay.c | 127

[Qemu-devel] [RFC PATCH v2 19/49] replay: global variables and function stubs

2014-07-17 Thread Pavel Dovgalyuk
This patch adds global variables, defines, functions declarations, and function stubs for deterministic VM replay used by external modules. Signed-off-by: Pavel Dovgalyuk --- Makefile.target |1 + replay/Makefile.objs |1 + replay/replay.c | 19 +++ replay/rep

[Qemu-devel] [RFC PATCH v2 16/49] target: save cpu state fields

2014-07-17 Thread Pavel Dovgalyuk
This patch adds interrupt fields to VMState for correct saving the CPU state. Signed-off-by: Pavel Dovgalyuk --- target-arm/machine.c |5 - target-i386/machine.c |5 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/target-arm/machine.c b/target-arm/machine.c inde

[Qemu-devel] [RFC PATCH v2 12/49] mc146818rtc: add missed field to vmstate

2014-07-17 Thread Pavel Dovgalyuk
This patch adds irq_reinject_on_ack_count field to VMState to allow correct saving/loading the state of MC146818 RTC. Signed-off-by: Pavel Dovgalyuk --- hw/timer/mc146818rtc.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/timer/mc146818rtc.c b/hw/timer/mc146818rtc

[Qemu-devel] [RFC PATCH v2 34/49] replay: replay aio requests

2014-07-17 Thread Pavel Dovgalyuk
This patch adds identifier to aio requests. ID is used for creating bottom halves and identifying them while replaying. The patch also introduces several functions that make possible replaying of the aio requests. Signed-off-by: Pavel Dovgalyuk --- block.c | 79 ++

[Qemu-devel] [RFC PATCH v2 38/49] replay: command line options

2014-07-17 Thread Pavel Dovgalyuk
This patch introduces command line options for enabling recording or replaying virtual machine behavior. "-record" option starts recording of the execution and saves it into the log, specified with "fname" parameter. "-replay" option is intended for replaying previously saved log. Signed-off-by: P

[Qemu-devel] [RFC PATCH v2 30/49] replay: recording and replaying different timers

2014-07-17 Thread Pavel Dovgalyuk
This patch introduces functions for recording and replaying realtime sources, that do not use qemu-clock interface. These include return value of time() function in time_t and struct tm forms. Patch also adds warning to get_timedate function to prevent its usage in recording mode, because it may le

[Qemu-devel] [RFC PATCH v2 31/49] replay: shutdown event

2014-07-17 Thread Pavel Dovgalyuk
This patch records and replays simulator shutdown event. Signed-off-by: Pavel Dovgalyuk --- include/sysemu/sysemu.h |1 + replay/replay-internal.h | 13 ++--- replay/replay.c | 11 +++ replay/replay.h |5 + vl.c |8 ++

[Qemu-devel] [RFC PATCH v2 21/49] sysemu: system functions for replay

2014-07-17 Thread Pavel Dovgalyuk
This patch removes "static" specifier from several qemu function to make them visible to the replay module. It also invents several system functions that will be used by replay. Signed-off-by: Pavel Dovgalyuk --- arch_init.c |8 cpu-exec.c |6 -- cpu

[Qemu-devel] [RFC PATCH v2 20/49] block: add suffix parameter to bdrv_open functions

2014-07-17 Thread Pavel Dovgalyuk
This patch adds parameter with suffix for overlay filenames. This parameter will be used by replay to automatically create overlay files based on drive images supplied to VM. Signed-off-by: Pavel Dovgalyuk --- block.c | 44 ++-- block/blkde

[Qemu-devel] [RFC PATCH v2 22/49] replay: internal functions for replay log

2014-07-17 Thread Pavel Dovgalyuk
This patch adds functions to perform read and write operations with replay log. Signed-off-by: Pavel Dovgalyuk --- replay/Makefile.objs |1 replay/replay-internal.c | 141 ++ replay/replay-internal.h | 50 replay/replay.c

[Qemu-devel] [RFC PATCH v2 39/49] replay: snapshotting the virtual machine

2014-07-17 Thread Pavel Dovgalyuk
This patch adds 'period' parameter to the 'record' command line option. This parameters turns on periodic snapshotting of the VM which could be used by replay to move forward and backward in time. If 'period' parameter is not specified, only one snapshot is made at the start of the virtual machine.

[Qemu-devel] [RFC PATCH v2 23/49] cpu: invent instruction count for accurate replay

2014-07-17 Thread Pavel Dovgalyuk
This patch adds instructions count fields to cpu structure and invents several functions for increasing this counter while executing translation blocks. Signed-off-by: Pavel Dovgalyuk --- cpu-exec.c | 14 - cpus.c |5 ++ exec.c |4 +

Re: [Qemu-devel] [PATCH RESEND] ui/gtk: Restore keyboard focus after Page change

2014-07-17 Thread Gerd Hoffmann
On Do, 2014-07-17 at 14:21 +0100, Stefan Hajnoczi wrote: > On Tue, Jul 08, 2014 at 02:28:57PM -0400, John Snow wrote: > > (Resending for correct email addresses via MAINTAINERS ...) > > > > In the GTK UI, after changing focus to the qemu monitor Notebook Page, > > when restoring focus to the virtu

Re: [Qemu-devel] [PATCH for-2.1] scsi: fix scsi disk symbol confusion in guest os

2014-07-17 Thread Paolo Bonzini
Il 17/07/2014 14:55, arei.gong...@huawei.com ha scritto: From: Gonglei Assuming that we hotplug three virtio-scsi disk as follow steps: 1. start vm with virtio-scsi as system disk (guest os: suse11 sp3 ). 2. hotplug disk 1 (as lun2) -drive file=/Images/TestImg/kvm-disk-scsi_001,if=none,id=dri

[Qemu-devel] [RFC PATCH v2 18/49] migration: add vmstate for int8 and char arrays

2014-07-17 Thread Pavel Dovgalyuk
This patch adds macros for vmstate int8 and char arrays. Signed-off-by: Pavel Dovgalyuk --- include/migration/vmstate.h | 13 + vmstate.c |6 ++ 2 files changed, 19 insertions(+), 0 deletions(-) diff --git a/include/migration/vmstate.h b/include/migration

[Qemu-devel] [RFC PATCH v2 29/49] replay: recording and replaying clock ticks

2014-07-17 Thread Pavel Dovgalyuk
Clock ticks are considered as the sources of non-deterministic data for virtual machine. This patch implements saving the clock values when they are acquired (virtual, host clock, rdtsc, and some other timers). When replaying the execution corresponding values are read from log and transfered to th

[Qemu-devel] [RFC PATCH v2 24/49] target-arm: instructions counting code for replay

2014-07-17 Thread Pavel Dovgalyuk
This patch adds instructions counting into the target-specific part of arm simulator. In record/replay mode it inserts replay functions calls and instructions counter increment into the translated code. Signed-off-by: Pavel Dovgalyuk --- target-arm/Makefile.objs |1 + target-arm/helper.h

[Qemu-devel] [RFC PATCH v2 13/49] pl031: add missed field to vmstate

2014-07-17 Thread Pavel Dovgalyuk
This patch adds timer which uses virtual clock to the VMState. Such timers are required for saving because virtual clock is the part of the virtual machine state. Signed-off-by: Pavel Dovgalyuk --- hw/timer/pl031.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/tim

Re: [Qemu-devel] [PATCH] machine: replace underscores in machine's property names

2014-07-17 Thread Marcel Apfelbaum
On Sun, 2014-06-29 at 14:37 +0300, Michael S. Tsirkin wrote: > On Sun, Jun 29, 2014 at 12:09:15PM +0300, Marcel Apfelbaum wrote: > > Replaced '_' with '-' to comply with QOM guidelines. > > Made the conversion from HMP to QMP in vl.c > > > > Signed-off-by: Marcel Apfelbaum > > Nothing to do with

Re: [Qemu-devel] [PATCH] machine: replace underscores in machine's property names

2014-07-17 Thread Paolo Bonzini
Il 17/07/2014 16:15, Marcel Apfelbaum ha scritto: On Sun, 2014-06-29 at 14:37 +0300, Michael S. Tsirkin wrote: On Sun, Jun 29, 2014 at 12:09:15PM +0300, Marcel Apfelbaum wrote: Replaced '_' with '-' to comply with QOM guidelines. Made the conversion from HMP to QMP in vl.c Signed-off-by: Marce

Re: [Qemu-devel] [PATCH for-2.1] pc: fix qemu exiting with error when -m X < 128 with old machines types

2014-07-17 Thread Bruce Rogers
>>> On 7/11/2014 at 12:06 PM, wrote: > On Tue, Jul 08, 2014 at 03:29:46PM +0200, Igor Mammedov wrote: >> If machine doesn't support memory hotplug then staring QEMU >> with initial memory less than default will make QEMU exit with >> following error message: >> >> $QEMU -m 16 -M isapc >> qemu-

Re: [Qemu-devel] [PATCH for-2.1] pc: fix qemu exiting with error when -m X < 128 with old machines types

2014-07-17 Thread Bruce Rogers
>>> On 7/8/2014 at 07:29 AM, wrote: > If machine doesn't support memory hotplug then staring QEMU > with initial memory less than default will make QEMU exit with > following error message: > > $QEMU -m 16 -M isapc > qemu-system-i386: "-memory 'slots|maxmem'" is not supported by: isapc > > Se

Re: [Qemu-devel] [PATCH] machine: replace underscores in machine's property names

2014-07-17 Thread Andreas Färber
Am 17.07.2014 16:20, schrieb Paolo Bonzini: > Il 17/07/2014 16:15, Marcel Apfelbaum ha scritto: >> On Sun, 2014-06-29 at 14:37 +0300, Michael S. Tsirkin wrote: >>> On Sun, Jun 29, 2014 at 12:09:15PM +0300, Marcel Apfelbaum wrote: Replaced '_' with '-' to comply with QOM guidelines. Made t

Re: [Qemu-devel] [RFC PATCH 7/7] cpus: reclaim allocated vCPU objects

2014-07-17 Thread Anshul Makkar
Are we not going to introduce new command cpu_del for deleting the cpu ? I couldn't find any patch for addition of cpu_del command. Is this intentional and we intend to use device_del (and similarly device_add) for cpu hot(un)plug or just skipped to be added later. I have the patch for the same wh

Re: [Qemu-devel] [PATCH] machine: replace underscores in machine's property names

2014-07-17 Thread Michael Roth
Quoting Andreas Färber (2014-07-17 10:48:59) > Am 17.07.2014 16:20, schrieb Paolo Bonzini: > > Il 17/07/2014 16:15, Marcel Apfelbaum ha scritto: > >> On Sun, 2014-06-29 at 14:37 +0300, Michael S. Tsirkin wrote: > >>> On Sun, Jun 29, 2014 at 12:09:15PM +0300, Marcel Apfelbaum wrote: > Replaced

Re: [Qemu-devel] [PATCH for-2.1] cadence_uart: check serial backend before using it.

2014-07-17 Thread Peter Maydell
On 16 July 2014 08:42, wrote: > From: KONRAD Frederic > > Segfault occurs when there are less than two serial backends with zynq > platform. > > This checks that s->chr is not NULL before using it. > > Signed-off-by: KONRAD Frederic > Reviewed-by: Peter Crosthwaite > --- > hw/char/cadence_ua

Re: [Qemu-devel] [PATCH] machine: replace underscores in machine's property names

2014-07-17 Thread Peter Maydell
On 29 June 2014 10:09, Marcel Apfelbaum wrote: > Replaced '_' with '-' to comply with QOM guidelines. > Made the conversion from HMP to QMP in vl.c > > Signed-off-by: Marcel Apfelbaum > index a1686ef..7587c97 100644 > --- a/vl.c > +++ b/vl.c > @@ -2820,15 +2820,25 @@ static int object_set_proper

Re: [Qemu-devel] [PATCH] machine: replace underscores in machine's property names

2014-07-17 Thread Paolo Bonzini
Il 17/07/2014 18:47, Michael Roth ha scritto: > My argument for getting this into 2.1 had been to avoid tools picking up > these to-be-renamed property names from the start. At this point, I'm > not so sure whether it's worse to break management tools or potentially > some rarely used/tested opti

Re: [Qemu-devel] [PATCH] machine: replace underscores in machine's property names

2014-07-17 Thread Marcel Apfelbaum
On Thu, 2014-07-17 at 17:55 +0100, Peter Maydell wrote: > On 29 June 2014 10:09, Marcel Apfelbaum wrote: > > Replaced '_' with '-' to comply with QOM guidelines. > > Made the conversion from HMP to QMP in vl.c > > > > Signed-off-by: Marcel Apfelbaum > > > index a1686ef..7587c97 100644 > > --- a/

[Qemu-devel] Debugging live migrate failures between 1.0 and 2.0

2014-07-17 Thread Alex Bligh
I am trying to get to the bottom of a live migrate failure between qemu 1.0 (sender) and qemu 2.0 (receiver). I think this should 'just work', correct? What I'm seeing is the live migrate starts correctly through QMP, but the first query_migrate call returns a failure. On the receive side it say

[Qemu-devel] [PATCH for-2.1] po: Fix Makefile rules

2014-07-17 Thread Stefan Weil
Adding 'update' to the phony targets fixes this error: $ LANG=C make -C po update make: Entering directory `/qemu/po' LINK update /qemu/po/de_DE.po: file not recognized: File format not recognized collect2: error: ld returned 1 exit status make: *** [update] Error 1 make: Leaving directory `/qe

  1   2   >