Re: [Qemu-devel] [PATCH 07/46] Return path: Open a return path on QEMUFile for sockets

2014-07-17 Thread Paolo Bonzini
Il 16/07/2014 19:10, Dr. David Alan Gilbert ha scritto: Handling it within the migration thread would make it much more complicated (which would be bad since it's already complex enough); Ok. I'm not sure why it is more complicated since migration is essentially two-phase, one where the

Re: [Qemu-devel] [PATCH v7 3/4] s390x: Migrate to new NMI interface

2014-07-17 Thread Alexey Kardashevskiy
On 07/15/2014 06:29 AM, Paolo Bonzini wrote: Il 14/07/2014 05:17, Alexey Kardashevskiy ha scritto: No, you should politely bother them again. That does not seem helping though :-/ Sorry. :) Well, patch 1 is the same as v6 and for the others Cornelia and Alex can ack it. It looks good

Re: [Qemu-devel] can't boot debian wheezy sparc in qemu

2014-07-17 Thread Dennis Luehring
Am 16.07.2014 00:21, schrieb Mark Cave-Ayland: At the moment my work is focused on getting the basic system emulation up and running, so I haven't spent much time looking at the graphics side at all. I have noticed that the kernel falls back to the dummy console during boot, so perhaps it is

[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

[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

[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
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

[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 ben...@irqsave.net Cc: Kevin Wolf kw...@redhat.com Cc: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Liu Yuan namei.u...@gmail.com --- block/quorum.c

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

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 m.gib...@beyond.pl 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

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 amit.s...@redhat.com 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

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 arei.gong...@huawei.com 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, \

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 widget.

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 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 @@ QDict

[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

[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 pavel.dovga...@ispras.ru --- 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

[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 pavel.dovga...@ispras.ru --- 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

[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 pavel.dovga...@ispras.ru --- 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 pavel.dovga...@ispras.ru --- hw/i386/kvmvapic.c| 22

[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 pavel.dovga...@ispras.ru --- hw/arm/integratorcp.c | 38 +- 1 files changed, 37 insertions(+), 1 deletions(-) diff --git

[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

[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 pavel.dovga...@ispras.ru --- net/Makefile.objs|1 net/clients.h

[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 pavel.dovga...@ispras.ru --- hw/char/parallel.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/hw/char/parallel.c

[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:

[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 pavel.dovga...@ispras.ru --- hmp-commands.hx | 13 + monitor.c| 17

[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 pavel.dovga...@ispras.ru --- hmp-commands.hx | 14 ++ monitor.c|

[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 pavel.dovga...@ispras.ru --- hw/timer/hpet.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git

[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 pavel.dovga...@ispras.ru --- hw/net/rtl8139.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git

[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 pavel.dovga...@ispras.ru --- hmp-commands.hx | 14 ++ monitor.c | 15

[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 pavel.dovga...@ispras.ru --- 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 pavel.dovga...@ispras.ru --- 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

[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 pavel.dovga...@ispras.ru --- target-i386/cpu.c|1 + target-i386/cpu.h|1 + target-i386/fpu_helper.c |5 - target-i386/machine.c|

[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 pavel.dovga...@ispras.ru --- audio/audio.c| 14 ++-

[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.

[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 pavel.dovga...@ispras.ru --- hw/ide/pci.c | 10 ++ 1 files

[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

[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 pavel.dovga...@ispras.ru --- target-i386/Makefile.objs

[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 pavel.dovga...@ispras.ru --- include/ui/input.h |2 + replay/Makefile.objs |1 replay/replay-events.c | 48 +

[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 pavel.dovga...@ispras.ru --- block/raw-posix.c |6 +++-- block/raw-win32.c |4 ++- include/block/thread-pool.h |4 ++-

[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 pavel.dovga...@ispras.ru --- 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

[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 pavel.dovga...@ispras.ru --- block.c | 11 +++ cpus.c |

[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 pavel.dovga...@ispras.ru --- async.c | 45 +++--

[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 pavel.dovga...@ispras.ru --- 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 pavel.dovga...@ispras.ru --- Makefile.target |1 + replay/Makefile.objs |1 + replay/replay.c | 19

[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 pavel.dovga...@ispras.ru --- target-arm/machine.c |5 - target-i386/machine.c |5 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/target-arm/machine.c

[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 pavel.dovga...@ispras.ru --- hw/timer/mc146818rtc.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git

[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 pavel.dovga...@ispras.ru --- block.c

[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: Pavel

[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

[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 pavel.dovga...@ispras.ru --- include/sysemu/sysemu.h |1 + replay/replay-internal.h | 13 ++--- replay/replay.c | 11 +++ replay/replay.h |5 + vl.c

[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 pavel.dovga...@ispras.ru --- arch_init.c |8 cpu-exec.c

[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 pavel.dovga...@ispras.ru --- block.c | 44

[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 pavel.dovga...@ispras.ru --- replay/Makefile.objs |1 replay/replay-internal.c | 141 ++ replay/replay-internal.h | 50

[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

[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 pavel.dovga...@ispras.ru --- cpu-exec.c | 14 - cpus.c |5 ++ exec.c

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 virtual

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 arei.gong...@huawei.com 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

[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 pavel.dovga...@ispras.ru --- include/migration/vmstate.h | 13 + vmstate.c |6 ++ 2 files changed, 19 insertions(+), 0 deletions(-) diff --git

[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

[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 pavel.dovga...@ispras.ru --- target-arm/Makefile.objs |1

[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 pavel.dovga...@ispras.ru --- hw/timer/pl031.c |3 ++- 1 files changed, 2 insertions(+), 1

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 marce...@redhat.com Nothing

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:

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, m...@redhat.com 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

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, imamm...@redhat.com 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:

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 the conversion

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

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 '_' with '-'

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, fred.kon...@greensocs.com wrote: From: KONRAD Frederic fred.kon...@greensocs.com 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

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 marce...@redhat.com wrote: Replaced '_' with '-' to comply with QOM guidelines. Made the conversion from HMP to QMP in vl.c Signed-off-by: Marcel Apfelbaum marce...@redhat.com index a1686ef..7587c97 100644 --- a/vl.c +++ b/vl.c @@ -2820,15 +2820,25

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 option

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 marce...@redhat.com wrote: Replaced '_' with '-' to comply with QOM guidelines. Made the conversion from HMP to QMP in vl.c Signed-off-by: Marcel Apfelbaum marce...@redhat.com index

[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

[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

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

2014-07-17 Thread Stefan Weil
Am 17.07.2014 19:56, schrieb 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

[Qemu-devel] [PATCH for-2.1] qemu-iotests: fix 028 failure due to disk image path

2014-07-17 Thread Stefan Hajnoczi
The disk image path is echoed by QEMU's readline when the drive_backup disk ${TEST_IMG}.copy HMP command is issued. Unfortunately it is very hard to filter out the path due to readline's character-by-character output (with terminal escape sequences). Just redirect this command to /dev/null for

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

2014-07-17 Thread Stefan Hajnoczi
On Thu, Jul 17, 2014 at 11:41:53AM +0200, 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

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

2014-07-17 Thread Stefan Hajnoczi
On Thu, Jul 17, 2014 at 10:45:31AM +0100, 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

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

2014-07-17 Thread Stefan Hajnoczi
On Thu, Jul 17, 2014 at 03:28:21PM +0800, Zhang Haoyu wrote: I run savevm by qemu-monitor, but how to check if savevm is completed? I haven't find the query interface. That is because savevm is synchronous. It blocks until the operation is complete. You cannot use the QEMU monitor while

[Qemu-devel] [PATCH for-2.1] po: Update German translation

2014-07-17 Thread Stefan Weil
Line numbers changed, and some translations were missing after commit 3d914488aee3dc1bf495e461aedf8fb4e5bb2270. Update also Show Tabs to a more common translation, and remove some old unused lines at the end. Signed-off-by: Stefan Weil s...@weilnetz.de --- All other translations also need

Re: [Qemu-devel] [PATCH for-2.1] po: Update German translation

2014-07-17 Thread Stefan Weil
Am 17.07.2014 20:50, schrieb Stefan Weil: Line numbers changed, and some translations were missing after commit 3d914488aee3dc1bf495e461aedf8fb4e5bb2270. Update also Show Tabs to a more common translation, and remove some old unused lines at the end. Signed-off-by: Stefan Weil

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

2014-07-17 Thread Dr. David Alan Gilbert
I don't know if this is the same case, but Gerd showed me a migration failure that might be related. 2.0 seems OK, 2.1-rc0 is broken (and I've not found another working point in between yet). The test case involves booting a fedora livecd (using an IDE CDROM device) and after the migration we're

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

2014-07-17 Thread Dr. David Alan Gilbert
* Peter Maydell (peter.mayd...@linaro.org) 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

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

2014-07-17 Thread Kay, Allen M
That sounds great. Tiejun could you confirm that with windows driver guys too? I believe windows driver can also assume specific CPU/PCH combos. I will discuss this with native Windows driver guys. Preferably, the same code path can be used for both native and virtualization cases to avoid

Re: [Qemu-devel] pause and restore function before and after QEMU Live Snapshot

2014-07-17 Thread Yuanzhen Gu
Hi Eric, Thank you very much for your suggestion, it do help. I enabled libvirt debugging, and saw the log file under /var/log/libvirt/libvirtd.log, for example, I saw 2014-07-17 20:06:55.992+: 4391: debug : qemuProcessHandleResume:575 : Transitioned guest ubuntu out of paused into resumed

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

2014-07-17 Thread Marcin Gibuła
W dniu 2014-07-17 21:18, Dr. David Alan Gilbert pisze: I don't know if this is the same case, but Gerd showed me a migration failure that might be related. 2.0 seems OK, 2.1-rc0 is broken (and I've not found another working point in between yet). The test case involves booting a fedora livecd

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

2014-07-17 Thread Andrey Korolyov
On Thu, Jul 17, 2014 at 5:25 PM, Marcin Gibuła m.gib...@beyond.pl wrote: 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

[Qemu-devel] [PATCH v2] virtio-rng: Add human-readable error message for negative max-bytes parameter

2014-07-17 Thread John Snow
If a negative integer is used for the max_bytes parameter, QEMU currently calls abort() and leaves behind a core dump. This patch adds a simple error message to make the reason for the termination clearer. Signed-off-by: John Snow js...@redhat.com --- v2: Changed 0L constant to (uint64_t)0

[Qemu-devel] anyway to boot from backing file virtual disk after delete snapshot?

2014-07-17 Thread Yuanzhen Gu
Hello there, I take external disk-only snapshot, but deleted the snapshot by mistaken. Is there anyway to reboot the system from backing file instead of reinstalled the system again? thanks! Best, Yuanzhen

Re: [Qemu-devel] pause and restore function before and after QEMU Live Snapshot

2014-07-17 Thread Eric Blake
On 07/17/2014 02:20 PM, Yuanzhen Gu wrote: Hi Eric, [please don't top-post on technical lists] I enabled libvirt debugging, and saw the log file under /var/log/libvirt/libvirtd.log, Which debugging filters did you enable? In particular, you'll want to turn on LIBVIRT_LOG_FILTERS=1:qemu for

Re: [Qemu-devel] anyway to boot from backing file virtual disk after delete snapshot?

2014-07-17 Thread Eric Blake
On 07/17/2014 03:15 PM, Yuanzhen Gu wrote: Hello there, I take external disk-only snapshot, but deleted the snapshot by mistaken. Is there anyway to reboot the system from backing file instead of reinstalled the system again? thanks! Are you using libvirt? If so, this question is better

  1   2   >