[Qemu-devel] [PATCH 0/2] Add missing attributions to hvf:

2018-01-23 Thread Izik Eidus
The following 2 patch's add a missing attributions to the hvf code

[Qemu-devel] [PATCH 2/2] ept_emulation_fault() need NetApp BSD attribution:

2018-01-23 Thread Izik Eidus
Moving it to a new file and add the BSD license there. Signed-off-by: Izik Eidus --- target/i386/hvf/ept_fault.h | 70 + target/i386/hvf/hvf.c | 38 +--- 2 files changed, 71 insertions(+), 37 deletions(-)

[Qemu-devel] [PATCH 1/2] Add missing hvdos public domain attribution:

2018-01-23 Thread Izik Eidus
hvf.c and vmx.h contain code from hvdos.c that is released as public domain: from hvdos github: https://github.com/mist64/hvdos "License See LICENSE.txt (2-clause-BSD). In order to simplify use of this code as a template, you can consider any parts from "hvdos.c" and "interface.h" as being in

Re: [Qemu-devel] virtio block device is not working

2018-01-23 Thread joserz
On Tue, Jan 23, 2018 at 01:05:28AM -0200, jos...@linux.vnet.ibm.com wrote: > Hello people! > > I'm not able to boot any guest that sets a virtio block device like: > (branch master) > > [PPC64] > qemu-system-ppc64 -cpu POWER8 -nographic -vga none -m 4G -M > pseries,accel=kvm,kvm-type=PR -drive

Re: [Qemu-devel] [PATCH] BCM2837 and machine raspi3

2018-01-23 Thread bzt bzt
On Tue, Jan 23, 2018 at 12:22 PM, Peter Maydell wrote: > On 23 January 2018 at 11:13, bzt bzt wrote: > > There's a huge misunderstanding here. I have a working qemu for about > half a > > year now, and I don't need it merged. It's not my goal to

Re: [Qemu-devel] [RFC PATCH qemu] qmp: Add qom-list-properties to list QOM object properties

2018-01-23 Thread Andrea Bolognani
On Tue, 2018-01-23 at 22:20 +1100, David Gibson wrote: > > David, I know you're busy with linux.conf.au, but it would be > > really helpful if you could carve out five minutes to look over > > Alexey's proposal again, with my reply above in mind, and let us > > know whether it looks a reasonable

Re: [Qemu-devel] [PATCH v2 10/20] fpu/softfloat: define decompose structures

2018-01-23 Thread Alex Bennée
Peter Maydell writes: > On 18 January 2018 at 14:59, Philippe Mathieu-Daudé wrote: >> My comment was for a previous line: >> >> uint64_t frac : 64; >> >> I don't have enough compiler knowledge to be sure how this bitfield is >> interpreted by the

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-23 Thread Stefan Hajnoczi
On Mon, Jan 22, 2018 at 11:54:41AM +0800, Jason Wang wrote: > On 2018年01月20日 01:20, Stefan Hajnoczi wrote: > > > I don't propose any new idea. I just want to know what's the advantage of > > > vhost-pci over zerocopy. Both needs one time of copy, the difference is > > > the > > > vhost-pci did it

Re: [Qemu-devel] [PATCH] BCM2837 and machine raspi3

2018-01-23 Thread bzt bzt
Hi, On Mon, Jan 22, 2018 at 1:12 PM, Peter Maydell wrote: > On 18 January 2018 at 21:39, bzt bzt wrote: > > Dear All, > > > > Since you still haven't merged Alistair's patch, I decided to include it > in > > my own. > > I've shrinked the number of

Re: [Qemu-devel] [PATCH v3 2/5] target/arm: Add predicate registers for SVE

2018-01-23 Thread Alex Bennée
Richard Henderson writes: > Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée > --- > target/arm/cpu.h | 12 > 1 file changed, 12 insertions(+) > > diff --git a/target/arm/cpu.h

[Qemu-devel] [PATCH] 9pfs: Correctly handle cancelled requests

2018-01-23 Thread Greg Kurz
From: Keno Fischer # Background I was investigating spurious non-deterministic EINTR returns from various 9p file system operations in a Linux guest served from the qemu 9p server. ## EINTR, ERESTARTSYS and the linux kernel When a signal arrives that the Linux kernel

Re: [Qemu-devel] [PATCH v2 8/8] qapi: query-blockstat: add driver specific file-posix stats

2018-01-23 Thread Anton Nefedov
On 22/1/2018 11:55 PM, Eric Blake wrote: On 01/19/2018 06:50 AM, Anton Nefedov wrote: A block driver can provide a callback to report driver-specific statistics. file-posix driver now reports discard statistics Signed-off-by: Anton Nefedov Reviewed-by: Vladimir

[Qemu-devel] savevm snapshot

2018-01-23 Thread sridhar kulkarni via Qemu-devel
I am working on creating a snapshot for ARM based VM running on A7. We don't use disk images, so to save the snapshot I am passing "-drive if=none, format=qcow2, file=/home/sridhar/qemu_disk_images/dummy.qcow2" as dummy disk to save the snapshot. Then from qemu monitor, I run the "savevm"

Re: [Qemu-devel] [RFC PATCH qemu] qmp: Add qom-list-properties to list QOM object properties

2018-01-23 Thread David Gibson
On Tue, Jan 23, 2018 at 11:08:31AM +0100, Andrea Bolognani wrote: > On Fri, 2018-01-19 at 15:34 +0100, Andrea Bolognani wrote: > > > > This won't solve the libvirt problem we were discussing, because it > > > > needs an existing instance of the object. libvirt wants to know the > > > > machine

Re: [Qemu-devel] [PATCH] BCM2837 and machine raspi3

2018-01-23 Thread Peter Maydell
On 23 January 2018 at 11:13, bzt bzt wrote: > There's a huge misunderstanding here. I have a working qemu for about half a > year now, and I don't need it merged. It's not my goal to submit a patch to > qemu in any way, I just did that because I had modified an Open Source >

Re: [Qemu-devel] [PATCH v2] linux-user: implement renameat2

2018-01-23 Thread Laurent Vivier
Le 23/01/2018 à 11:53, Andreas Schwab a écrit : > This is needed for new architectures like RISC-V which do not provide any > other rename-like syscall. > > Signed-off-by: Andreas Schwab > --- > linux-user/syscall.c | 34 ++ > 1 file changed, 34

Re: [Qemu-devel] [PULL 0/8] x86 queue, 2018-01-17

2018-01-23 Thread Peter Maydell
On 23 January 2018 at 10:34, Christian Ehrhardt wrote: > Also adding Suraj for a statement in this regard about his "[QEMU-PPC] > [PATCH V5 0/7] target/ppc: Rework spapr_caps" series which I think is > the PPC version of all of this right? > Not sure who to add

Re: [Qemu-devel] [PATCH v3 14/25] ppc: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread David Gibson
On Tue, Jan 23, 2018 at 09:08:13AM +0100, Igor Mammedov wrote: > it will be used for providing to cpu name resolving class for > parsing cpu model for system and user emulation code. > > Along with change add target to null-machine test, so > that when switch to CPU_RESOLVING_TYPE happens, > test

Re: [Qemu-devel] [PATCH v3 24/25] cpu: get rid of unused cpu_init() defines

2018-01-23 Thread David Gibson
On Tue, Jan 23, 2018 at 09:08:23AM +0100, Igor Mammedov wrote: > cpu_init(cpu_model) were replaced by cpu_create(cpu_type) so > no users are left, remove it. > > Signed-off-by: Igor Mammedov ppc parts Acked-by: David Gibson > --- > CC:

Re: [Qemu-devel] [PATCH] BCM2837 and machine raspi3

2018-01-23 Thread bzt bzt
On Mon, Jan 22, 2018 at 12:41 PM, BALATON Zoltan wrote: > Hello, > > On Thu, 18 Jan 2018, bzt bzt wrote: > >> Since you still haven't merged Alistair's patch, I decided to include it >> in >> my own. >> > > Which patch exactly are you referring to? The one I linked earlier,

Re: [Qemu-devel] [RFC 0/2] virtio-vhost-user: add virtio-vhost-user device

2018-01-23 Thread Stefan Hajnoczi
On Mon, Jan 22, 2018 at 07:09:06PM +0800, Wei Wang wrote: > On 01/19/2018 09:06 PM, Stefan Hajnoczi wrote: > Thanks for the quick implementation. Not sure if the following issues could > be solved with this approach: > - After we boot the slave VM, if we don't run the virtio-vhost-user driver >

Re: [Qemu-devel] [PATCH] linux-user: implement renameat2

2018-01-23 Thread Laurent Vivier
Le 23/01/2018 à 11:26, Andreas Schwab a écrit : > On Jan 23 2018, Laurent Vivier wrote: > >> And, please, test it (build/run). > > This was tested by bootstrapping openSUSE Factory for RISC-V. I have no doubt on this part, but you should test the "#else" part too, by, for

[Qemu-devel] [PATCH v2] linux-user: implement renameat2

2018-01-23 Thread Andreas Schwab
This is needed for new architectures like RISC-V which do not provide any other rename-like syscall. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/linux-user/syscall.c

Re: [Qemu-devel] [qemu-s390x] [PULL 0/8] x86 queue, 2018-01-17

2018-01-23 Thread Cornelia Huck
On Tue, 23 Jan 2018 11:34:18 +0100 Christian Ehrhardt wrote: > On Tue, Jan 23, 2018 at 10:59 AM, Christian Borntraeger > wrote: > > > > > > On 01/23/2018 09:40 AM, Christian Ehrhardt wrote: > >> On Thu, Jan 18, 2018 at 2:51 PM, Peter

Re: [Qemu-devel] [RFC 0/2] virtio-vhost-user: add virtio-vhost-user device

2018-01-23 Thread Wei Wang
On 01/22/2018 08:17 PM, Stefan Hajnoczi wrote: On Mon, Jan 22, 2018 at 11:33:46AM +0800, Jason Wang wrote: On 2018年01月19日 21:06, Stefan Hajnoczi wrote: Probably not for the following cases: 1) kick/call I disagree here because kick/call is actually very efficient! VM1's irqfd is the

Re: [Qemu-devel] [PATCH v2 3/8] ide: account UNMAP (TRIM) operations

2018-01-23 Thread Anton Nefedov
On 22/1/2018 11:48 PM, Eric Blake wrote: On 01/19/2018 06:50 AM, Anton Nefedov wrote: Signed-off-by: Anton Nefedov --- hw/ide/core.c | 13 + 1 file changed, 13 insertions(+) @@ -460,10 +468,15 @@ static void ide_issue_trim_cb(void *opaque, int

Re: [Qemu-devel] [PULL 0/8] x86 queue, 2018-01-17

2018-01-23 Thread Christian Ehrhardt
On Tue, Jan 23, 2018 at 10:59 AM, Christian Borntraeger wrote: > > > On 01/23/2018 09:40 AM, Christian Ehrhardt wrote: >> On Thu, Jan 18, 2018 at 2:51 PM, Peter Maydell >> wrote: >>> On 18 January 2018 at 02:01, Eduardo Habkost

Re: [Qemu-devel] [PATCH v2 2/8] qapi: add unmap to BlockDeviceStats

2018-01-23 Thread Anton Nefedov
On 22/1/2018 11:47 PM, Eric Blake wrote: On 01/19/2018 06:50 AM, Anton Nefedov wrote: Signed-off-by: Anton Nefedov Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Alberto Garcia --- qapi/block-core.json

Re: [Qemu-devel] [PATCH] linux-user: implement renameat2

2018-01-23 Thread Andreas Schwab
On Jan 23 2018, Laurent Vivier wrote: > And, please, test it (build/run). This was tested by bootstrapping openSUSE Factory for RISC-V. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now

Re: [Qemu-devel] [PATCH] linux-user: implement renameat2

2018-01-23 Thread Andreas Schwab
On Jan 23 2018, Laurent Vivier wrote: > Please fix style problem reported by patchew > (or ./scripts/checkpatch.pl) This was mostly copy-pasted from surrounding code. :-) >> @@ -8342,6 +8359,22 @@ abi_long do_syscall(void *cpu_env, int num, abi_long >> arg1, >> }

Re: [Qemu-devel] [qemu-s390x] [PULL 0/8] x86 queue, 2018-01-17

2018-01-23 Thread Cornelia Huck
On Tue, 23 Jan 2018 10:59:39 +0100 Christian Borntraeger wrote: > On 01/23/2018 09:40 AM, Christian Ehrhardt wrote: > > On Thu, Jan 18, 2018 at 2:51 PM, Peter Maydell > > wrote: > >> On 18 January 2018 at 02:01, Eduardo Habkost

Re: [Qemu-devel] [PULL 00/43] Add hppa-softmmu

2018-01-23 Thread Peter Maydell
On 22 January 2018 at 03:41, Richard Henderson wrote: > This has some improvements to the patch set posted on Dec 28. > > * Change cpu init as requested by Igor Mammedov. > * Add SMP support > * Add firmware image > * Implement qemu-specific pause and system

Re: [Qemu-devel] [RFC 0/2] virtio-vhost-user: add virtio-vhost-user device

2018-01-23 Thread Stefan Hajnoczi
On Mon, Jan 22, 2018 at 10:04:18PM +0200, Michael S. Tsirkin wrote: > On Mon, Jan 22, 2018 at 12:17:51PM +, Stefan Hajnoczi wrote: > > On Mon, Jan 22, 2018 at 11:33:46AM +0800, Jason Wang wrote: > > > On 2018年01月19日 21:06, Stefan Hajnoczi wrote: > > > > These patches implement the

Re: [Qemu-devel] [PULL 00/27] Migration pull

2018-01-23 Thread Peter Maydell
On 22 January 2018 at 13:38, Peter Maydell wrote: > On 22 January 2018 at 12:38, Dr. David Alan Gilbert > wrote: >> It's probably better to remove the whole set of 6, then we can come >> back to it later rather than leaving something

Re: [Qemu-devel] [RFC PATCH qemu] qmp: Add qom-list-properties to list QOM object properties

2018-01-23 Thread Andrea Bolognani
On Fri, 2018-01-19 at 15:34 +0100, Andrea Bolognani wrote: > > > This won't solve the libvirt problem we were discussing, because it > > > needs an existing instance of the object. libvirt wants to know the > > > machine properties *without* instantiating an instance. > > > > My patch works with

Re: [Qemu-devel] [RFC 0/2] virtio-vhost-user: add virtio-vhost-user device

2018-01-23 Thread Jason Wang
On 2018年01月23日 04:04, Michael S. Tsirkin wrote: On Mon, Jan 22, 2018 at 12:17:51PM +, Stefan Hajnoczi wrote: On Mon, Jan 22, 2018 at 11:33:46AM +0800, Jason Wang wrote: On 2018年01月19日 21:06, Stefan Hajnoczi wrote: These patches implement the virtio-vhost-user device design that I have

Re: [Qemu-devel] [PULL 0/8] x86 queue, 2018-01-17

2018-01-23 Thread Christian Borntraeger
On 01/23/2018 09:40 AM, Christian Ehrhardt wrote: > On Thu, Jan 18, 2018 at 2:51 PM, Peter Maydell > wrote: >> On 18 January 2018 at 02:01, Eduardo Habkost wrote: >>> The following changes since commit 8e5dc9ba49743b46d955ec7dacb04e42ae7ada7c:

[Qemu-devel] [PATCH v4 04/25] x86: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v4 03/25] arm: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, thest would ensure that null-mchine usecase still works. Signed-off-by: Igor

Re: [Qemu-devel] [PATCH v3 03/25] arm: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Andrew Jones
On Tue, Jan 23, 2018 at 09:08:02AM +0100, Igor Mammedov wrote: > it will be used for providing to cpu name resolving class for > parsing cpu model for system and user emulation code. > > Along with change add target to null-machine test, so > that when switch to CPU_RESOLVING_TYPE happens, >

[Qemu-devel] [RFC PATCH v5 24/24] replay: don't drain/flush bdrv queue while RR is working

2018-01-23 Thread Pavel Dovgalyuk
In record/replay mode bdrv queue is controlled by replay mechanism. It does not allow stopping the vm, saving or loading the snapshots when bdrv queue is not empty. Therefore draining and flushing is unnecessary (and may cause deadlocks in replay mode). This patch disables bdrv_drain_all and

[Qemu-devel] [RFC PATCH v5 21/24] scripts/replay-dump.py: replay log dumper

2018-01-23 Thread Pavel Dovgalyuk
From: Alex Bennée This script is a debugging tool for looking through the contents of a replay log file. It is incomplete but should fail gracefully at events it doesn't understand. It currently understands two different log formats as the audio record/replay support was

[Qemu-devel] [RFC PATCH v5 23/24] replay: save vmstate of the asynchronous events

2018-01-23 Thread Pavel Dovgalyuk
This patch fixes saving and loading the snapshots in the replay mode. It is required for the snapshots created in the moment when the header of the asynchronous event is read. This information was not saved in the snapshot. After loading the vmstate replay continued with the file offset passed the

[Qemu-devel] [RFC PATCH v5 19/24] replay: check return values of fwrite

2018-01-23 Thread Pavel Dovgalyuk
This patch adds error reporting when fwrite cannot completely save the buffer to the file. Signed-off-by: Pavel Dovgalyuk -- v3: also check putc() return value --- replay/replay-internal.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-)

[Qemu-devel] [RFC PATCH v5 22/24] replay: don't process async events when warping the clock

2018-01-23 Thread Pavel Dovgalyuk
Virtual clock is warped from iothread and vcpu thread. When the hardware events associated with warp checkpoint, then interrupt delivering may be non-deterministic if checkpoint is processed in different threads in record and replay. This patch disables event processing for clock warp checkpoint

[Qemu-devel] [RFC PATCH v5 18/24] replay: don't destroy mutex at exit

2018-01-23 Thread Pavel Dovgalyuk
Replay mutex is held by vCPU thread and destroy function is called from atexit of the main thread. Therefore we cannot destroy it safely. Signed-off-by: Pavel Dovgalyuk Acked-by: Paolo Bonzini --- replay/replay.c |1 - 1 file changed, 1

[Qemu-devel] [RFC PATCH v5 15/24] replay/replay-internal.c: track holding of replay_lock

2018-01-23 Thread Pavel Dovgalyuk
From: Alex Bennée This is modelled after the iothread mutex lock. We keep a TLS flag to indicate when that thread has acquired the lock and assert we don't double-lock or release when we shouldn't have. Signed-off-by: Alex Bennée Tested-by: Pavel

[Qemu-devel] [RFC PATCH v5 20/24] replay: avoid recursive call of checkpoints

2018-01-23 Thread Pavel Dovgalyuk
This patch adds a flag which denies recursive call of replay_checkpoint function. Checkpoints may be accompanied by the hardware events. When event is processed, virtual device may invoke timer modification functions that also invoke the checkpoint function. This leads to infinite loop.

[Qemu-devel] [RFC PATCH v5 13/24] kvm: remove BQL lock/unlock

2018-01-23 Thread Pavel Dovgalyuk
BQL now is used only for waiting for IO events. This patch also removes lock/unlock from kvm module. Signed-off-by: Pavel Dovgalyuk --- accel/kvm/kvm-all.c |2 -- 1 file changed, 2 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index

[Qemu-devel] [RFC PATCH v5 14/24] replay/replay.c: bump REPLAY_VERSION again

2018-01-23 Thread Pavel Dovgalyuk
From: Alex Bennée This time commit 802f045a5f61b781df55e4492d896b4d20503ba7 broke the replay file format. Also add a comment about this to replay-internal.h. Signed-off-by: Alex Bennée Reviewed-off-by: Pavel Dovgalyuk

[Qemu-devel] [RFC PATCH v5 11/24] cpus: push BQL lock to qemu_*_wait_io_event

2018-01-23 Thread Pavel Dovgalyuk
From: Alex Bennée We only really need to grab the lock for initial setup (so we don't race with the thread-spawning thread). After that we can drop the lock for the whole main loop and only grab it for waiting for IO events. There is a slight wrinkle for the round-robin

[Qemu-devel] [RFC PATCH v5 16/24] replay: make locking visible outside replay code

2018-01-23 Thread Pavel Dovgalyuk
From: Alex Bennée The replay_mutex_lock/unlock/locked functions are now going to be used for ensuring lock-step behaviour between the two threads. Make them public API functions and also provide stubs for non-QEMU builds on common paths. Signed-off-by: Alex Bennée

[Qemu-devel] [RFC PATCH v5 12/24] hax: remove BQL lock/unlock

2018-01-23 Thread Pavel Dovgalyuk
BQL now is used only for waiting for IO events. This patch also removes lock/unlock from hax module. Signed-off-by: Pavel Dovgalyuk --- target/i386/hax-all.c |2 -- 1 file changed, 2 deletions(-) diff --git a/target/i386/hax-all.c b/target/i386/hax-all.c index

[Qemu-devel] [RFC PATCH v5 17/24] replay: push replay_mutex_lock up the call tree

2018-01-23 Thread Pavel Dovgalyuk
From: Alex Bennée Now instead of using the replay_lock to guard the output of the log we now use it to protect the whole execution section. This replaces what the BQL used to do when it was held during TCG execution. We also introduce some rules for locking order -

[Qemu-devel] [RFC PATCH v5 09/24] replay: save prior value of the host clock

2018-01-23 Thread Pavel Dovgalyuk
This patch adds saving/restoring of the host clock field 'last'. It is used in host clock calculation and therefore clock may become incorrect when using restored vmstate. Signed-off-by: Pavel Dovgalyuk Acked-by: Paolo Bonzini ---

[Qemu-devel] [RFC PATCH v5 08/24] replay: added replay log format description

2018-01-23 Thread Pavel Dovgalyuk
From: Pavel Dovgalyuk This patch adds description of the replay log file format into the docs/replay.txt. Signed-off-by: Pavel Dovgalyuk Acked-by: Paolo Bonzini --- docs/replay.txt | 69

[Qemu-devel] [RFC PATCH v5 10/24] target/arm/arm-powertctl: drop BQL assertions

2018-01-23 Thread Pavel Dovgalyuk
From: Alex Bennée The powerctl code is run in the context of the vCPU changing power state. It does not need the BQL to protect its changes. Signed-off-by: Alex Bennée --- target/arm/arm-powerctl.c |8 1 file changed, 8 deletions(-)

[Qemu-devel] [RFC PATCH v5 07/24] replay: fix save/load vm for non-empty queue

2018-01-23 Thread Pavel Dovgalyuk
This patch does not allows saving/loading vmstate when replay events queue is not empty. There is no reliable way to save events queue, because it describes internal coroutine state. Therefore saving and loading operations should be deferred to another record/replay step. Signed-off-by: Pavel

[Qemu-devel] [RFC PATCH v5 04/24] replay: disable default snapshot for record/replay

2018-01-23 Thread Pavel Dovgalyuk
From: Pavel Dovgalyuk This patch disables setting '-snapshot' option on by default in record/replay mode. This is needed for creating vmstates in record and replay modes. Signed-off-by: Pavel Dovgalyuk --- vl.c |8 +++- 1 file

[Qemu-devel] [RFC PATCH v5 05/24] replay: fix processing async events

2018-01-23 Thread Pavel Dovgalyuk
Asynchronous events saved at checkpoints may invoke callbacks when processed. These callbacks may also generate/read new events (e.g. clock reads). Therefore event processing flag must be reset before callback invocation. Signed-off-by: Pavel Dovgalyuk Acked-by: Paolo

[Qemu-devel] [RFC PATCH v5 03/24] blkreplay: create temporary overlay for underlaying devices

2018-01-23 Thread Pavel Dovgalyuk
From: Pavel Dovgalyuk This patch allows using '-snapshot' behavior in record/replay mode. blkreplay layer creates temporary overlays on top of underlaying disk images. It is needed, because creating an overlay over blkreplay breaks the determinism. This patch creates

[Qemu-devel] [RFC PATCH v5 06/24] replay: fixed replay_enable_events

2018-01-23 Thread Pavel Dovgalyuk
This patch fixes assignment to internal events_enabled variable. Now it is set only in record/replay mode. This affects the behavior of the external functions that check this flag. Signed-off-by: Pavel Dovgalyuk Acked-by: Paolo Bonzini ---

[Qemu-devel] [RFC PATCH v5 01/24] cpu-exec: fix exception_index handling

2018-01-23 Thread Pavel Dovgalyuk
Function cpu_handle_interrupt calls cc->cpu_exec_interrupt to process pending hardware interrupts. Under the hood cpu_exec_interrupt uses cpu->exception_index to pass information to the internal function which is usually common for exception and interrupt processing. But this value is not reset

[Qemu-devel] [RFC PATCH v5 02/24] block: implement bdrv_snapshot_goto for blkreplay

2018-01-23 Thread Pavel Dovgalyuk
From: Pavel Dovgalyuk This patch enables making snapshots with blkreplay used in block devices. This function is required to make bdrv_snapshot_goto without calling .bdrv_open which is not implemented. Signed-off-by: Pavel Dovgalyuk ---

[Qemu-devel] [RFC PATCH v5 00/24] replay additions

2018-01-23 Thread Pavel Dovgalyuk
Accidentally sent draft version of patches to the mailing list. Please consider this one as the correct one. This set of patches includex fixes from Alex Bennée for fixing BQL and replay locks after inventing the MTTCG. It also includes some additional replay patches that makes this set of fixes

Re: [Qemu-devel] [PULL 0/8] x86 queue, 2018-01-17

2018-01-23 Thread Christian Ehrhardt
On Thu, Jan 18, 2018 at 2:51 PM, Peter Maydell wrote: > On 18 January 2018 at 02:01, Eduardo Habkost wrote: >> The following changes since commit 8e5dc9ba49743b46d955ec7dacb04e42ae7ada7c: >> >> Merge remote-tracking branch

[Qemu-devel] [PATCH v3 25/25] cpu: get rid of cpu_generic_init()

2018-01-23 Thread Igor Mammedov
There aren't any users of the helper left, remove it. Signed-off-by: Igor Mammedov --- CC: Richard Henderson CC: "Emilio G. Cota" CC: Paolo Bonzini CC: Eduardo Habkost CC: "Alex

[Qemu-devel] [PATCH v3 17/25] sparc: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. PS: sparc cpu model

[Qemu-devel] [PATCH v3 18/25] tricore: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 24/25] cpu: get rid of unused cpu_init() defines

2018-01-23 Thread Igor Mammedov
cpu_init(cpu_model) were replaced by cpu_create(cpu_type) so no users are left, remove it. Signed-off-by: Igor Mammedov --- CC: Richard Henderson (maintainer:Alpha) CC: Peter Maydell CC: "Edgar E. Iglesias"

[Qemu-devel] [PATCH v3 13/25] openrisc: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 22/25] tilegx: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 23/25] Use cpu_create(type) instead of cpu_init(cpu_model)

2018-01-23 Thread Igor Mammedov
With all targets defining CPU_RESOLVING_TYPE, refactor cpu_parse_cpu_model(type, cpu_model) to parse_cpu_model(cpu_model) so that callers won't have to know internal resolving cpu type. Place it in exec.c so it could be called from both target independed vl.c and *-user/main.c. That allows us to

[Qemu-devel] [PATCH v3 20/25] xtensa: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 14/25] ppc: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 21/25] hppa: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 10/25] mips: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 15/25] s390x: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 12/25] nios2: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. TODO: make

[Qemu-devel] [PATCH v3 19/25] unicore32: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 08/25] m68k: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 06/25] cris: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 09/25] microblaze: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. PC: target cpu can't be instantiated with -M none -cpu Add FIXME note in test, so microblaze maintainers could fix it in future and add proper error checking in cpu_model

[Qemu-devel] [PATCH v3 16/25] sh4: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 01/25] nios2: 10m50_devboard: replace cpu_model with cpu_type

2018-01-23 Thread Igor Mammedov
use cpu_create() instead of being removed cpu_generic_init() Signed-off-by: Igor Mammedov --- CC: Chris Wulff CC: Marek Vasut --- hw/nios2/10m50_devboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH v3 04/25] x86: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 11/25] moxie: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 00/25] generalize parsing of cpu_model (part 4)

2018-01-23 Thread Igor Mammedov
v3: - use qtest_startf() instead of qtest_start() - rename tests/machine-none.c to tests/machine-none-test.c - introduce first CPU_RESOLVING_TYPE for all targets and only then use it parse_cpu_model() - stop abusing mc->default_cpu_type as resolving cpu type, move

[Qemu-devel] [PATCH v3 05/25] alpha: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 07/25] lm32: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 03/25] arm: cpu: add CPU_RESOLVING_TYPE macro

2018-01-23 Thread Igor Mammedov
it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, thest would ensure that null-mchine usecase still works. Signed-off-by: Igor

[Qemu-devel] [PATCH v3 02/25] tests: add machine 'none' with -cpu test

2018-01-23 Thread Igor Mammedov
Check that "$QEMU -M none -cpu FOO" starts QEMU without error Signed-off-by: Igor Mammedov --- v2: - rename file to machine-none-test.c (Thomas Huth ) - use qtest_startf()/instead of qtest_start() (Thomas Huth ) ---

<    1   2   3