Re: [Qemu-devel] [PATCH] s390x/pci: forbid multifunction pci device

2018-03-13 Thread Yi Min Zhao
在 2018/3/14 下午1:35, Thomas Huth 写道: On 14.03.2018 06:14, Yi Min Zhao wrote: Currently we don't support pci multifunction. If a pci with multifucntion is plugged, the guest will spin forever. This patch fixes this. Signed-off-by: Yi Min Zhao Reviewed-by: Pierre

Re: [Qemu-devel] [PATCH] s390x/pci: forbid multifunction pci device

2018-03-13 Thread Thomas Huth
On 14.03.2018 06:14, Yi Min Zhao wrote: > Currently we don't support pci multifunction. If a pci with > multifucntion is plugged, the guest will spin forever. This patch fixes > this. > > Signed-off-by: Yi Min Zhao > Reviewed-by: Pierre Morel

Re: [Qemu-devel] [PATCH 00/10] RFC: Optimize nvdimm kind memory for snapshot.

2018-03-13 Thread no-reply
Hi, This series failed docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. Type: series Message-id: 1520990418-28258-1-git-send-email-junyan...@hotmail.com Subject: [Qemu-devel] [PATCH

Re: [Qemu-devel] [PATCH v11 00/13] Dirty bitmaps postcopy migration

2018-03-13 Thread Su Hang
Sincerely sorry for my negligence to cause this bug! I will fix it as quick as I can! Sorry again, I'm really ashamed about the mistake I have made. Su Hang > -Original Messages- > From: "Dr. David Alan Gilbert" > Sent Time: 2018-03-14 04:10:24 (Wednesday) > To:

[Qemu-devel] [PATCH] s390x/pci: forbid multifunction pci device

2018-03-13 Thread Yi Min Zhao
Currently we don't support pci multifunction. If a pci with multifucntion is plugged, the guest will spin forever. This patch fixes this. Signed-off-by: Yi Min Zhao Reviewed-by: Pierre Morel --- hw/s390x/s390-pci-bus.c | 10 ++ 1

[Qemu-devel] GTK warnings on console when closing window

2018-03-13 Thread Mark Cave-Ayland
Rebasing a couple of my development branches onto master this morning, I'm noticing some GTK warnings when I close the QEMU GTK window directly rather than using the "Quit" menu option: $ ./qemu-system-ppc (qemu-system-ppc:19782): GLib-GObject-WARNING **: invalid unclassed pointer in cast to

Re: [Qemu-devel] [PATCH v2 3/3] target/ppc: generalize check on radix when in HV mode

2018-03-13 Thread David Gibson
On Mon, Mar 12, 2018 at 07:36:05PM +0100, Cédric Le Goater wrote: > On 02/19/2018 04:29 AM, David Gibson wrote: > > On Fri, Feb 16, 2018 at 09:45:04AM +0100, Cédric Le Goater wrote: > >> On a POWER9 processor, the first doubleword of the partition table > >> entry (as pointed to by the PTCR)

[Qemu-devel] Suggestion on 'virtio-pmem' implementation

2018-03-13 Thread Pankaj Gupta
Hi, I am implementing 'virtio-pmem' as a mechanism to flush guest writes with 'fake DAX' flushing interface. Below is the high level details of components: 1] 'virtio-pmem' device expose guest physical address details(start, len). 2] 'virtio-pmem' driver in guest discovers this

[Qemu-devel] [PATCH] tests/boot-serial: Test the sam460ex board

2018-03-13 Thread Thomas Huth
We've got a U-Boot firmware for this board in our repository, and the firmware prints some output to the serial console, so we can check this board in the boot-serial tester, too. Signed-off-by: Thomas Huth --- Note: Patch has to be applied on top of the ppc-for-2.12 branch

Re: [Qemu-devel] [PULL 00/69] Misc patches for QEMU soft freeze

2018-03-13 Thread Peter Xu
On Tue, Mar 13, 2018 at 05:15:41PM -0700, no-re...@patchew.org wrote: [...] > Your patch has style problems, please review. If any of these errors > are false positives report them to the maintainer, see > CHECKPATCH in MAINTAINERS. > Checking PATCH 2/69: net: allow using any PCI NICs in -net

Re: [Qemu-devel] [virtio-dev] Re: [PATCH v4 3/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-03-13 Thread Michael S. Tsirkin
On Wed, Mar 14, 2018 at 10:43:01AM +0800, Wei Wang wrote: > On 03/14/2018 12:49 AM, Michael S. Tsirkin wrote: > > On Wed, Mar 07, 2018 at 08:34:24PM +0800, Wei Wang wrote: > > > > > Signed-off-by: Wei Wang > > > Signed-off-by: Liang Li > > > CC:

Re: [Qemu-devel] [PATCH v4 4/4] migration: use the free page hint feature from balloon

2018-03-13 Thread Michael S. Tsirkin
On Wed, Mar 14, 2018 at 10:41:36AM +0800, Wei Wang wrote: > On 03/14/2018 12:35 AM, Michael S. Tsirkin wrote: > > On Wed, Mar 07, 2018 at 08:34:25PM +0800, Wei Wang wrote: > > > Start the free page optimization after the migration bitmap is > > > synchronized. This can't be used in the stop phase

Re: [Qemu-devel] [PATCH qemu v7 2/4] vfio/pci: Relax DMA map errors for MMIO regions

2018-03-13 Thread Alexey Kardashevskiy
On 14/3/18 3:56 am, Alex Williamson wrote: > [Cc +Eric] > > On Tue, 13 Mar 2018 15:53:19 +1100 > Alexey Kardashevskiy wrote: > >> On 7/3/18 1:17 pm, Alexey Kardashevskiy wrote: >>> On 26/02/18 19:36, Alexey Kardashevskiy wrote: On 19/02/18 13:46, Alexey Kardashevskiy

Re: [Qemu-devel] [virtio-dev] Re: [PATCH v4 3/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-03-13 Thread Wei Wang
On 03/14/2018 12:49 AM, Michael S. Tsirkin wrote: On Wed, Mar 07, 2018 at 08:34:24PM +0800, Wei Wang wrote: Signed-off-by: Wei Wang Signed-off-by: Liang Li CC: Michael S. Tsirkin CC: Dr. David Alan Gilbert

Re: [Qemu-devel] [PATCH v4 4/4] migration: use the free page hint feature from balloon

2018-03-13 Thread Wei Wang
On 03/14/2018 12:35 AM, Michael S. Tsirkin wrote: On Wed, Mar 07, 2018 at 08:34:25PM +0800, Wei Wang wrote: Start the free page optimization after the migration bitmap is synchronized. This can't be used in the stop phase since the guest is paused. Make sure the guest reporting has stopped

Re: [Qemu-devel] [PULL 00/17] NBD patches for 2018-03-13 (2.12 softfreeze)

2018-03-13 Thread no-reply
Hi, This series failed build test on s390x host. Please find the details below. Type: series Message-id: 20180313171345.659672-1-ebl...@redhat.com Subject: [Qemu-devel] [PULL 00/17] NBD patches for 2018-03-13 (2.12 softfreeze) === TEST SCRIPT BEGIN === #!/bin/bash # Testing script will be

Re: [Qemu-devel] [PATCH 00/10] RFC: Optimize nvdimm kind memory for snapshot.

2018-03-13 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 1520990418-28258-1-git-send-email-junyan...@hotmail.com Subject: [Qemu-devel] [PATCH 00/10] RFC: Optimize nvdimm kind memory for snapshot. === TEST SCRIPT BEGIN ===

[Qemu-devel] [PATCH 07/10] RFC: Add get_current_snapshot_info to get the snapshot state.

2018-03-13 Thread junyan . he
From: Junyan He We need to know the snapshot saving information when we do dependent snapshot saving, e.g the name of previous snapshot. Add this global function to query the snapshot status is usable. Signed-off-by: Junyan He ---

[Qemu-devel] [PATCH 09/10] RFC: Add nvdimm snapshot saving to migration.

2018-03-13 Thread junyan . he
From: Junyan He The nvdimm size is huge, sometimes is more than 256G or even more. This is a huge burden for snapshot saving. One snapshot point with nvdimm may occupy more than 50G disk space even with compression enabled. We need to introduce dependent snapshot manner to

[Qemu-devel] [PATCH 05/10] RFC: Add memory region snapshot bitmap get function.

2018-03-13 Thread junyan . he
From: Junyan He We need to get the bitmap content of the snapshot when enable dirty log trace for nvdimm. Signed-off-by: Junyan He --- exec.c | 7 +++ include/exec/memory.h | 9 + include/exec/ram_addr.h | 2 ++ memory.c

[Qemu-devel] [PATCH 08/10] RFC: Add a section_id parameter to save_live_iterate call.

2018-03-13 Thread junyan . he
From: Junyan He We need to know the section_id when we do snapshot saving. Add a parameter to save_live_iterate function call. Signed-off-by: Junyan He --- hw/ppc/spapr.c | 2 +- hw/s390x/s390-stattrib.c | 2 +-

[Qemu-devel] [PATCH 04/10] RFC: Set memory_region_set_log available for more client.

2018-03-13 Thread junyan . he
From: Junyan He We need to collect dirty log for nvdimm kind memory, need to enable memory_region_set_log for more clients rather than just VGA. Signed-off-by: Junyan He --- memory.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-)

[Qemu-devel] [PATCH 03/10] RFC: Implement save and support snapshot dependency in block driver layer.

2018-03-13 Thread junyan . he
From: Junyan He Signed-off-by: Junyan He --- block/snapshot.c | 45 + include/block/snapshot.h | 7 +++ 2 files changed, 52 insertions(+) diff --git a/block/snapshot.c b/block/snapshot.c index

[Qemu-devel] [PATCH 10/10] RFC: Enable nvdimm snapshot functions.

2018-03-13 Thread junyan . he
From: Junyan He In snapshot saving, all nvdimm kind memory will be saved in different way and we exclude all nvdimm kind memory region in ram.c Signed-off-by: Junyan He --- migration/ram.c | 17 + vl.c| 1 + 2 files

[Qemu-devel] [PATCH 06/10] RFC: Add save dependency functions to qemu_file

2018-03-13 Thread junyan . he
From: Junyan He When we save snapshot, we need qemu_file to support save dependency operations. It should call brv_driver's save dependency functions to implement these operations. Signed-off-by: Junyan He --- migration/qemu-file.c | 61

[Qemu-devel] [PATCH 00/10] RFC: Optimize nvdimm kind memory for snapshot.

2018-03-13 Thread junyan . he
From: Junyan He The nvdimm size is huge, sometimes it is more than 256G or even more. This is a huge burden for snapshot saving. One snapshot point with nvdimm may occupy more than 50G disk space even with compression enabled. We need to introduce dependent snapshot manner

[Qemu-devel] [PATCH 01/10] RFC: Add save and support snapshot dependency function to block driver.

2018-03-13 Thread junyan . he
From: Junyan He We want to support incremental snapshot saving, this needs the file system support dependency saving. Later snapshots may ref the dependent snapshot's content, and most time should be cluster aligned. Add a query function to check whether the file system

[Qemu-devel] [PATCH 02/10] RFC: Implement qcow2's snapshot dependent saving function.

2018-03-13 Thread junyan . he
From: Junyan He For qcow2 format, we can increase the cluster's reference count of dependent snapshot content and link the offset to the L2 table of the new snapshot point. This way can avoid obvious snapshot's dependent relationship, so when we delete some snapshot point,

Re: [Qemu-devel] [PATCH v3] ppc440_pcix: Change some error_report to qemu_log_mask(LOG_UNIMP, ...)

2018-03-13 Thread David Gibson
On Tue, Mar 13, 2018 at 12:26:56PM +0100, BALATON Zoltan wrote: 1;5002;0c> Using log unimp is more appropriate for these messages and this also > silences them by default so they won't clobber make check output when > tests are added for this board. > > Signed-off-by: BALATON Zoltan

Re: [Qemu-devel] [PULL 00/69] Misc patches for QEMU soft freeze

2018-03-13 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180313224719.4954-1-pbonz...@redhat.com Subject: [Qemu-devel] [PULL 00/69] Misc patches for QEMU soft freeze === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1

[Qemu-devel] [PULL 52/69] cpu-exec: fix exception_index handling

2018-03-13 Thread Paolo Bonzini
From: 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

Re: [Qemu-devel] [RFC PATCH 16/30] q35/xen: Add Xen platform device support for Q35

2018-03-13 Thread Alexey G
On Mon, 12 Mar 2018 18:44:02 -0300 Eduardo Habkost wrote: >On Tue, Mar 13, 2018 at 06:56:37AM +1000, Alexey G wrote: >> On Mon, 12 Mar 2018 16:44:06 -0300 >> Eduardo Habkost wrote: >> >> >On Tue, Mar 13, 2018 at 04:34:01AM +1000, Alexey Gerasimenko

Re: [Qemu-devel] [PATCH 2/9] hw/arm/boot: assert that secure_boot and secure_board_setup are false for AArch64

2018-03-13 Thread Philippe Mathieu-Daudé
On 03/13/2018 04:34 PM, Peter Maydell wrote: > Add some assertions that if we're about to boot an AArch64 kernel, > the board code has not mistakenly set either secure_boot or > secure_board_setup. It doesn't make sense to set secure_boot, > because all AArch64 kernels must be booted in non-secure

Re: [Qemu-devel] [Qemu-arm] [PATCH 1/9] hw/arm/raspi: Don't do board-setup or secure-boot for raspi3

2018-03-13 Thread Philippe Mathieu-Daudé
On 03/13/2018 04:34 PM, Peter Maydell wrote: > For the rpi1 and 2 we want to boot the Linux kernel via some > custom setup code that makes sure that the SMC instruction > acts as a no-op, because it's used for cache maintenance. > The rpi3 boots AArch64 kernels, which don't need SMC for > cache

Re: [Qemu-devel] [PATCH 8/9] hw/arm/bcm2836: Hardcode correct CPU type

2018-03-13 Thread Philippe Mathieu-Daudé
On 03/13/2018 06:09 PM, Peter Maydell wrote: > On 13 March 2018 at 16:55, Andrew Baumann > wrote: >>> From: Qemu-devel >> bounces+andrew.baumann=microsoft@nongnu.org> On Behalf Of Peter >>> Maydell >>> Sent: Tuesday, 13 March 2018 08:35 >>> >>> Now we have

Re: [Qemu-devel] [PATCH v5 0/6] Add a valid_cpu_types property

2018-03-13 Thread Philippe Mathieu-Daudé
On 02/02/2018 01:42 AM, Alistair Francis wrote: > > There are numorous QEMU machines that only have a single or a handful of > valid CPU options. To simplyfy the management of specificying which CPU > is/isn't valid let's create a property that can be set in the machine > init. We can then check

[Qemu-devel] [PULL 47/69] MAINTAINERS: Split the Alpha TCG/machine section

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-22-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- MAINTAINERS | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [PULL 69/69] tcg: fix cpu_io_recompile

2018-03-13 Thread Paolo Bonzini
From: Pavel Dovgalyuk cpu_io_recompile() function was broken by the commit 9b990ee5a3cc6aa38f81266fb0c6ef37a36c45b9. Instead of regenerating the block starting from PC of the original block, it just set the instruction counter for TCG. In most cases this was unnoticed,

[Qemu-devel] [PATCH v2] xen-pvdevice: Introduce a simplistic xen-pvdevice save state

2018-03-13 Thread Igor Druzhinin
This should help to avoid problems with accessing the device after migration/resume without PV drivers by migrating its PCI configuration space state. Without an explicitly defined state record it resets every time a VM migrates which confuses the OS and makes every access to xen-pvdevice MMIO

Re: [Qemu-devel] [PATCH 8/9] hw/arm/bcm2836: Hardcode correct CPU type

2018-03-13 Thread Philippe Mathieu-Daudé
On 03/13/2018 06:09 PM, Peter Maydell wrote: > On 13 March 2018 at 16:55, Andrew Baumann > wrote: >>> From: Qemu-devel >> bounces+andrew.baumann=microsoft@nongnu.org> On Behalf Of Peter >>> Maydell >>> Sent: Tuesday, 13 March 2018 08:35 >>> >>> Now we have

Re: [Qemu-devel] [PATCH 8/9] hw/arm/bcm2836: Hardcode correct CPU type

2018-03-13 Thread Philippe Mathieu-Daudé
On 03/13/2018 04:34 PM, Peter Maydell wrote: > Now we have separate types for BCM2386 and BCM2387, we might as well > just hard-code the CPU type they use rather than having it passed > through as an object property. This then lets us put the initialization > of the CPU object in init rather than

[Qemu-devel] [PULL 63/69] replay: check return values of fwrite

2018-03-13 Thread Paolo Bonzini
From: Pavel Dovgalyuk This patch adds error reporting when fwrite cannot completely save the buffer to the file. Signed-off-by: Pavel Dovgalyuk Message-Id: <20180227095259.1060.86410.stgit@pasha-VirtualBox> Signed-off-by: Paolo Bonzini

Re: [Qemu-devel] [PATCH 4/9] hw/arm/bcm2386: Fix parent type of bcm2386

2018-03-13 Thread Philippe Mathieu-Daudé
On 03/13/2018 04:34 PM, Peter Maydell wrote: > The TypeInfo and state struct for bcm2386 disagree about what the > parent class is -- the TypeInfo says it's TYPE_SYS_BUS_DEVICE, > but the BCM2386State struct only defines the parent_obj field > as DeviceState. This would have caused problems if

[Qemu-devel] [PULL 68/69] replay: update documentation

2018-03-13 Thread Paolo Bonzini
From: Pavel Dovgalyuk This patch clarifies the description of the record/replay feature in docs/replay.txt Signed-off-by: Pavel Dovgalyuk Message-Id: <20180227095333.1060.1331.stgit@pasha-VirtualBox> Signed-off-by: Paolo Bonzini

[Qemu-devel] [PULL 60/69] replay: make locking visible outside replay code

2018-03-13 Thread Paolo Bonzini
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

Re: [Qemu-devel] [PATCH 6/9] hw/arm/bcm2836: Create proper bcm2837 device

2018-03-13 Thread Philippe Mathieu-Daudé
On 03/13/2018 04:34 PM, Peter Maydell wrote: > The bcm2837 is pretty similar to the bcm2836, but it does have > some differences. Notably, the MPIDR affinity aff1 values it > sets for the CPUs are 0x0, rather than the 0xf that the bcm2836 > uses, and if this is wrong Linux will not boot. > >

[Qemu-devel] [PULL 65/69] scripts/replay-dump.py: replay log dumper

2018-03-13 Thread Paolo Bonzini
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

Re: [Qemu-devel] [PATCH 5/9] hw/arm/bcm2836: Rename bcm2836 type/struct to bcm283x

2018-03-13 Thread Philippe Mathieu-Daudé
On 03/13/2018 04:34 PM, Peter Maydell wrote: > Our BCM2836 type is really a generic one that can be any of > the bcm283x family. Rename it accordingly. We change only > the names which are visible via the header file to the > rest of the QEMU code, leaving private function names > in bcm2836.c as

[Qemu-devel] [PULL 56/69] replay: added replay log format description

2018-03-13 Thread Paolo Bonzini
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 Message-Id:

[Qemu-devel] [PULL 62/69] replay: push replay_mutex_lock up the call tree

2018-03-13 Thread Paolo Bonzini
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] [PULL 64/69] replay: avoid recursive call of checkpoints

2018-03-13 Thread Paolo Bonzini
From: 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

[Qemu-devel] [PULL 50/69] hw/alpha/dp264: Use the TYPE_SMC37C669_SUPERIO

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-25-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- default-configs/alpha-softmmu.mak | 3 +++ hw/alpha/dp264.c | 10

[Qemu-devel] [PULL 57/69] replay: save prior value of the host clock

2018-03-13 Thread Paolo Bonzini
From: 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

[Qemu-devel] [PULL 67/69] replay: save vmstate of the asynchronous events

2018-03-13 Thread Paolo Bonzini
From: 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

[Qemu-devel] [PULL 61/69] replay: don't destroy mutex at exit

2018-03-13 Thread Paolo Bonzini
From: 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

[Qemu-devel] [PULL 59/69] replay/replay-internal.c: track holding of replay_lock

2018-03-13 Thread Paolo Bonzini
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] [PULL 66/69] replay: don't process async events when warping the clock

2018-03-13 Thread Paolo Bonzini
From: 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

[Qemu-devel] [PULL 46/69] MAINTAINERS: Add entries for the VT82C686B Super I/O

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé So far, it is only used by the MIPS Fulong 2E mini PC. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-21-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- MAINTAINERS | 2 ++ 1 file

[Qemu-devel] [PULL 48/69] hw/isa/superio: Add the SMC FDC37C669 Super I/O

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-23-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- MAINTAINERS| 1 + hw/isa/Makefile.objs | 2 +-

[Qemu-devel] [PULL 55/69] replay: fix save/load vm for non-empty queue

2018-03-13 Thread Paolo Bonzini
From: 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

[Qemu-devel] [PULL 37/69] hw/isa/superio: Factor out the serial code from pc87312.c

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-12-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- hw/isa/isa-superio.c | 41 +

[Qemu-devel] [PULL 58/69] replay/replay.c: bump REPLAY_VERSION again

2018-03-13 Thread Paolo Bonzini
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] [PULL 44/69] hw/isa/vt82c686: Rename vt82c686b_init() -> vt82c686b_isa_init()

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé This function only initialize the ISA bus. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-19-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- hw/isa/vt82c686.c | 2 +-

[Qemu-devel] [PULL 49/69] hw/alpha/dp264: Add the ISA DMA controller

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-24-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- default-configs/alpha-softmmu.mak | 2 ++ hw/alpha/dp264.c | 4

[Qemu-devel] [PULL 54/69] replay: fixed replay_enable_events

2018-03-13 Thread Paolo Bonzini
From: 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

[Qemu-devel] [PULL 40/69] hw/isa/superio: Factor out the IDE code from pc87312.c

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-15-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- hw/isa/isa-superio.c | 22 ++ hw/isa/pc87312.c | 36

[Qemu-devel] [PULL 45/69] hw/isa/vt82c686: Add the TYPE_VT82C686B_SUPERIO

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-20-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- hw/isa/vt82c686.c | 20 hw/mips/mips_fulong2e.c | 15

[Qemu-devel] [PULL 38/69] hw/isa/superio: Factor out the floppy disc controller code from pc87312.c

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-13-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- hw/isa/isa-superio.c | 36 hw/isa/pc87312.c

[Qemu-devel] [PULL 53/69] replay: fix processing async events

2018-03-13 Thread Paolo Bonzini
From: 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

[Qemu-devel] [PULL 41/69] hw/mips/malta: Code movement

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Move the SouthBridge peripherals first, and keep the Super I/O peripherals last. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-16-f4...@amsat.org> Signed-off-by: Paolo Bonzini ---

[Qemu-devel] [PULL 35/69] hw/isa/pc87312: Inherit from the abstract TYPE_ISA_SUPERIO

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-10-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- hw/isa/pc87312.c | 11 ++- include/hw/isa/pc87312.h | 6 -- 2

[Qemu-devel] [PULL 39/69] hw/isa/superio: Add a keyboard/mouse controller (8042)

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Since the PC87312 inherits this abstract model, we remove the I8042 instance in the PREP machine. Signed-off-by: Philippe Mathieu-Daudé Acked-by: David Gibson Message-Id:

[Qemu-devel] [PULL 51/69] hw/i386/pc: Factor out the superio code

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-26-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- hw/i386/pc.c | 72 ++-- 1

[Qemu-devel] [PULL 32/69] hw/isa/pc87312: Use uint16_t for the ISA I/O base address

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé This matches the isa_register_ioport() prototype. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-7-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- hw/isa/pc87312.c | 14

[Qemu-devel] [PULL 33/69] hw/isa/pc87312: Use 'unsigned int' for the irq value

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-8-f4...@amsat.org> Reviewed-by: Mark Cave-Ayland Signed-off-by: Paolo Bonzini --- hw/isa/pc87312.c | 6

[Qemu-devel] [PULL 43/69] hw/mips/mips_fulong2e: Factor out vt82c686b_southbridge_init()

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-18-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- hw/mips/mips_fulong2e.c | 83 - 1

[Qemu-devel] [PULL 25/69] membarrier: introduce qemu/sys_membarrier.h

2018-03-13 Thread Paolo Bonzini
This new header file provides heavy-weight "global" memory barriers that enforce memory ordering on each running thread belonging to the current process. For now, use a dummy implementation that issues memory barriers on both sides (matching what QEMU has been doing so far). Signed-off-by: Paolo

[Qemu-devel] [PULL 30/69] MAINTAINERS: Fix the PC87312 include path

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Missed while moving it in 0d09e41a51aa. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-5-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- MAINTAINERS | 3 ++- 1 file changed, 2

[Qemu-devel] [PULL 34/69] hw/isa/superio: Add a Super I/O template based on the PC87312 device

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-9-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- MAINTAINERS | 2 ++ hw/isa/Makefile.objs | 1 +

[Qemu-devel] [PULL 42/69] hw/isa/superio: Factor out the FDC37M817 Super I/O from mips_malta.c

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-17-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- hw/isa/isa-superio.c | 19 +++ hw/mips/mips_malta.c | 35

[Qemu-devel] [PULL 21/69] hw/mips/jazz: Fix implicit creation of "-drive if=scsi" devices

2018-03-13 Thread Paolo Bonzini
From: Thomas Huth The global hack for creating SCSI devices has recently been removed, but this apparently broke SCSI devices on some boards that were not ready for this change yet. For the pica61 machine you now get: $ mips64-softmmu/qemu-system-mips64 -M pica61 -cdrom x.iso

[Qemu-devel] [PULL 28/69] hw/dma/i8257: Rename DMA_init() to i8257_dma_init()

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé - Move the header from hw/isa/ to hw/dma/ - Remove the old i386/pc dependency - use a bool type for the high_page_enable argument Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-3-f4...@amsat.org>

[Qemu-devel] [PULL 36/69] hw/isa/superio: Factor out the parallel code from pc87312.c

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-11-f4...@amsat.org> Signed-off-by: Paolo Bonzini --- hw/isa/isa-superio.c | 65

[Qemu-devel] [PULL 31/69] hw/isa/pc87312: Rename the device type as TYPE_PC87312_SUPERIO

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Acked-by: David Gibson (hw/ppc) Message-Id: <20180308223946.26784-6-f4...@amsat.org> Reviewed-by: Mark Cave-Ayland Signed-off-by:

[Qemu-devel] [PULL 19/69] hw/i386: make IOMMUs configurable via default-configs/

2018-03-13 Thread Paolo Bonzini
Allow distributions to disable the Intel and/or AMD IOMMU devices. Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- default-configs/i386-softmmu.mak | 2 ++

[Qemu-devel] [PULL 27/69] hw/isa: Move parallel_hds_isa_init() to hw/char/parallel-isa.c

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Again... (after 07dc788054d7 and 9157eee1b1c0). We now extract the ISA bus specific helpers. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180308223946.26784-2-f4...@amsat.org> Reviewed-by: Mark Cave-Ayland

[Qemu-devel] [PULL 23/69] docs: document atomic_load_acquire and atomic_store_release

2018-03-13 Thread Paolo Bonzini
We will use them in the next patch, document what they do. Signed-off-by: Paolo Bonzini --- docs/devel/atomics.txt | 57 ++ 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/docs/devel/atomics.txt

[Qemu-devel] [PULL 29/69] hw/input/i8042: Extract declarations from i386/pc.h into input/i8042.h

2018-03-13 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Acked-by: David Gibson (hw/ppc) Message-Id: <20180308223946.26784-4-f4...@amsat.org> Reviewed-by: Mark Cave-Ayland Signed-off-by:

[Qemu-devel] [PULL 16/69] chardev: tcp: postpone async connection setup

2018-03-13 Thread Paolo Bonzini
From: Peter Xu This patch allows the socket chardev async connection be setup with non-default gcontext. We do it by postponing the setup to machine done, since until then we can know which context we should run the async operation on. Reviewed-by: Paolo Bonzini

[Qemu-devel] [PULL 17/69] chardev: tcp: let TLS run on chardev context

2018-03-13 Thread Paolo Bonzini
From: Peter Xu Now qio_channel_tls_handshake() is ready to receive the context. Let socket chardev use it, then the TLS handshake of chardev will always be with the chardev's context. Signed-off-by: Peter Xu Message-Id:

[Qemu-devel] [PULL 26/69] membarrier: add --enable-membarrier

2018-03-13 Thread Paolo Bonzini
Actually enable the global memory barriers if supported by the OS. Because only recent versions of Linux include the support, they are disabled by default. Note that it also has to be disabled for QEMU to run under Wine. Before this patch, rcutorture reports 85 ns/read for my machine, after the

[Qemu-devel] [PULL 20/69] Polish the version strings containing the package version

2018-03-13 Thread Paolo Bonzini
From: Thomas Huth Since commit 67a1de0d195a there is no space anymore between the version number and the parentheses when running configure with --with-pkgversion=foo : $ qemu-system-s390x --version QEMU emulator version 2.11.50(foo) But the space is included when building

[Qemu-devel] [PULL 12/69] chardev: update net listener gcontext

2018-03-13 Thread Paolo Bonzini
From: Peter Xu TCP chardevs can be using QIO network listeners working in the background when in listening mode. However the network listeners are always running in main context. This can race with chardevs that are running in non-main contexts. To solve this, we need to

[Qemu-devel] [PULL 24/69] rcu: make memory barriers more explicit

2018-03-13 Thread Paolo Bonzini
Prepare for introducing smp_mb_placeholder() and smp_mb_global(). The new smp_mb() in synchronize_rcu() is not strictly necessary, since the first atomic_mb_set for rcu_gp_ctr provides the required ordering. However, synchronize_rcu is not performance critical, and it *will* be necessary to

[Qemu-devel] [PULL 13/69] chardev: allow telnet gsource to switch gcontext

2018-03-13 Thread Paolo Bonzini
From: Peter Xu It was originally created by qio_channel_add_watch() so it's always assigning the task to main context. Now we use the new API called qio_channel_add_watch_source() so that we get the GSource handle rather than the tag ID. Meanwhile, caching the gsource and

[Qemu-devel] [PULL 18/69] scsi: support NDOB (no data-out buffer) for WRITE SAME commands

2018-03-13 Thread Paolo Bonzini
A NDOB bit set to one specifies that the disk shall not transfer data from the data-out buffer and shall process the command as if the data-out buffer contained user data set to all zeroes. Signed-off-by: Paolo Bonzini --- hw/scsi/scsi-bus.c | 2 +-

[Qemu-devel] [PULL 09/69] checkpatch: Exempt long URLs

2018-03-13 Thread Paolo Bonzini
From: Eric Blake Sometimes, we want to refer to really long URLs, but checkpatch balks, and we have to manually bypass the check. URL shorteners may be nice at reducing long links, but it's hard to guarantee the shortened link will live as long as the real target, and it is

[Qemu-devel] [PULL 08/69] hw: Do not include "sysemu/block-backend.h" if it is not necessary

2018-03-13 Thread Paolo Bonzini
From: Thomas Huth After reviewing a patch from Philippe that removes block-backend.h from hw/lm32/milkymist.c, I noticed that this header is included unnecessarily in a lot of other files, too. Remove those unneeded includes to speed up the compilation process a little bit.

[Qemu-devel] [PULL 22/69] rcutorture: remove synchronize_rcu from readers

2018-03-13 Thread Paolo Bonzini
This gives much worse numbers for readers, especially if synchronize_rcu is made more expensive as is the case with --enable-membarrier. Before: $ tests/rcutorture 10 stress 10 n_reads: 98304 n_updates: 529 n_mberror: 0 rcu_stress_count: 98302 2 0 0 0 0 0 0 0 0 0 After: $

[Qemu-devel] [PULL 14/69] chardev: introduce chr_machine_done hook

2018-03-13 Thread Paolo Bonzini
From: Peter Xu Introduce ChardevClass.chr_machine_done() hook so that chardevs can run customized procedures after machine init. There was an existing mux user already that did similar thing but used a raw machine done notifier. Generalize it into a framework, and let the

  1   2   3   4   5   6   >