Re: [Qemu-devel] [PATCH 3/3] target/ppc: add support for hypervisor doorbells on book3s CPUs

2018-01-15 Thread Cédric Le Goater
On 01/16/2018 08:41 AM, Cédric Le Goater wrote: > The hypervisor doorbells are used by skiboot and Linux on POWER9 > processors to wake up secondaries. > > This adds processor control support to the Server architecture by > reusing the Embedded support. They are very similar, only the bits >

[Qemu-devel] [PATCH 2/3] target/ppc: msgsnd and msgclr instructions need hypervisor privilege

2018-01-15 Thread Cédric Le Goater
Signed-off-by: Cédric Le Goater --- target/ppc/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 6d16a0b22d44..bcd36d53537f 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@

[Qemu-devel] [PATCH 1/3] target/ppc: fix doorbell and hypervisor doorbell definitions

2018-01-15 Thread Cédric Le Goater
commit f03a1af581b9 ("ppc: Fix POWER7 and POWER8 exception definitions") introduced definitions for the server doorbell exceptions by reusing the embedded definitions but this adds complexity in the powerpc_excp() routine. Let's introduce specific definitions for the Server doorbells exception.

[Qemu-devel] [PATCH 3/3] target/ppc: add support for hypervisor doorbells on book3s CPUs

2018-01-15 Thread Cédric Le Goater
The hypervisor doorbells are used by skiboot and Linux on POWER9 processors to wake up secondaries. This adds processor control support to the Server architecture by reusing the Embedded support. They are very similar, only the bits definition of the CPU identifier differ. Still to be done is

[Qemu-devel] [PATCH 0/3] target/ppc: add support for hypervisor doorbells

2018-01-15 Thread Cédric Le Goater
Hi, The hypervisor doorbells are used by skiboot and Linux on POWER9 processors to wake up secondaries. This adds processor control support to the Book3S architecture. The full tree can be found here : https://github.com/legoater/qemu powernv-2.12 Thanks, C. Cédric Le Goater (3):

Re: [Qemu-devel] Some question about savem/qcow2 incremental snapshot

2018-01-15 Thread He Junyan
On 三, 2018-01-10 at 20:17 +, Stefan Hajnoczi wrote: > On Wed, Jan 10, 2018 at 8:15 PM, Dr. David Alan Gilbert > wrote: > > > > * Stefan Hajnoczi (stefa...@gmail.com) wrote: > > > > > > On Tue, Jan 9, 2018 at 7:55 PM, Dr. David Alan Gilbert > > >

Re: [Qemu-devel] [PULL 00/25] pc, pci, virtio: features, fixes, cleanups

2018-01-15 Thread Jason Wang
On 2018年01月16日 14:28, Jason Wang wrote: On 2018年01月16日 10:48, Michael S. Tsirkin wrote: On Tue, Jan 09, 2018 at 12:10:10PM +1100, David Gibson wrote: On Mon, Jan 08, 2018 at 08:10:23PM +0200, Michael S. Tsirkin wrote: On Mon, Jan 08, 2018 at 09:14:41AM +, Peter Maydell wrote: On 21

Re: [Qemu-devel] [PULL 00/25] pc, pci, virtio: features, fixes, cleanups

2018-01-15 Thread Jason Wang
On 2018年01月16日 10:48, Michael S. Tsirkin wrote: On Tue, Jan 09, 2018 at 12:10:10PM +1100, David Gibson wrote: On Mon, Jan 08, 2018 at 08:10:23PM +0200, Michael S. Tsirkin wrote: On Mon, Jan 08, 2018 at 09:14:41AM +, Peter Maydell wrote: On 21 December 2017 at 23:43, Michael S. Tsirkin

Re: [Qemu-devel] [PATCH] net: Allow netdevs to be used with 'hostfwd_add' and 'hostfwd_remove'

2018-01-15 Thread Jason Wang
On 2018年01月12日 04:02, Thomas Huth wrote: It does not make much sense to limit these commands to the legacy 'vlan' concept only, they should work with the modern netdevs, too. So now it is possible to use this command with one, two or three parameters. With one parameter, the command installs

Re: [Qemu-devel] [PATCH] qemu-doc: Get rid of "vlan=X" example in the documentation

2018-01-15 Thread Jason Wang
On 2018年01月15日 15:40, Thomas Huth wrote: The vlan concept is marked as deprecated, so we should not use this for examples in the documentation anymore. Signed-off-by: Thomas Huth --- qemu-options.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] [PATCH v6 8/9] docs: Add section for NVMe VFIO driver

2018-01-15 Thread Fam Zheng
Signed-off-by: Fam Zheng Message-Id: <20180110091846.10699-9-f...@redhat.com> Reviewed-by: Stefan Hajnoczi --- docs/qemu-block-drivers.texi | 37 + 1 file changed, 37 insertions(+) diff --git

[Qemu-devel] [PATCH v6 7/9] block: Move NVMe constants to a separate header

2018-01-15 Thread Fam Zheng
Signed-off-by: Fam Zheng Message-Id: <20180110091846.10699-8-f...@redhat.com> Reviewed-by: Stefan Hajnoczi --- block/nvme.c | 7 +- hw/block/nvme.h | 698 +- include/block/nvme.h | 700

Re: [Qemu-devel] [PATCH RESEND v1 1/2] i386: Add Intel Processor Trace feature support

2018-01-15 Thread Kang, Luwei
> > On Mon, Jan 15, 2018 at 12:04:55 -0200, Eduardo Habkost wrote: > > > CCing libvirt developers. > > ... > > > This case is slightly more problematic, however: the new feature is > > > actually migratable (under very controlled circumstances) because of > > > patch 2/2, but it is not

Re: [Qemu-devel] [PATCH] fw_cfg: don't use DMA mapping for fw_cfg device

2018-01-15 Thread Peter Xu
On Mon, Jan 15, 2018 at 12:22:48PM +0100, Marc-Andre Lureau wrote: > Hi > > On Mon, Jan 15, 2018 at 9:55 AM, Peter Xu wrote: > > fw_cfg device does not need IOMMU protection, so use physical addresses > > always. That's how QEMU implements fw_cfg. Otherwise we'll see call >

[Qemu-devel] [PATCH v6 9/9] qapi: Add NVMe driver options to the schema

2018-01-15 Thread Fam Zheng
Signed-off-by: Fam Zheng Message-Id: <20180110091846.10699-10-f...@redhat.com> Reviewed-by: Stefan Hajnoczi --- qapi/block-core.json | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/qapi/block-core.json

[Qemu-devel] [PATCH v6 6/9] qemu-img: Map bench buffer

2018-01-15 Thread Fam Zheng
Signed-off-by: Fam Zheng Message-Id: <20180110091846.10699-7-f...@redhat.com> Reviewed-by: Stefan Hajnoczi --- qemu-img.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qemu-img.c b/qemu-img.c index 68b375f998..28d0e4e9f8 100644

[Qemu-devel] [PATCH v6 3/9] block: Add VFIO based NVMe driver

2018-01-15 Thread Fam Zheng
This is a new protocol driver that exclusively opens a host NVMe controller through VFIO. It achieves better latency than linux-aio by completely bypassing host kernel vfs/block layer. $rw-$bs-$iodepth linux-aio nvme:// randread-4k-1

[Qemu-devel] [PATCH v6 5/9] block/nvme: Implement .bdrv_(un)register_buf

2018-01-15 Thread Fam Zheng
Forward these two calls to the IOVA manager. Signed-off-by: Fam Zheng Message-Id: <20180110091846.10699-6-f...@redhat.com> Reviewed-by: Stefan Hajnoczi --- block/nvme.c | 24 1 file changed, 24 insertions(+) diff --git

[Qemu-devel] [PATCH v6 2/9] util: Introduce vfio helpers

2018-01-15 Thread Fam Zheng
This is a library to manage the host vfio interface, which could be used to implement userspace device driver code in QEMU such as NVMe or net controllers. Signed-off-by: Fam Zheng Message-Id: <20180110091846.10699-3-f...@redhat.com> Reviewed-by: Stefan Hajnoczi

[Qemu-devel] [PATCH v6 4/9] block: Introduce buf register API

2018-01-15 Thread Fam Zheng
Allow block driver to map and unmap a buffer for later I/O, as a performance hint. Signed-off-by: Fam Zheng Message-Id: <20180110091846.10699-5-f...@redhat.com> Reviewed-by: Stefan Hajnoczi --- block/block-backend.c | 10 ++ block/io.c

[Qemu-devel] [PATCH v6 0/9] block: Add VFIO based driver for NVMe device

2018-01-15 Thread Fam Zheng
v6: Fix the cleaning up around nvme_init() and write cache setup in nvme_file_open(). [Stefan] Add Stefan's rev-by to the doc patch. Rebase on to Paolo's coroutine series for q->free_req_queue: Based-on: 20180115220822.10156-1-pbonz...@redhat.com ([PATCH 0/4] coroutine-lock:

[Qemu-devel] [PATCH v6 1/9] stubs: Add stubs for ram block API

2018-01-15 Thread Fam Zheng
These functions will be wanted by block-obj-y but the actual definition is in obj-y, so stub them to keep the linker happy. Signed-off-by: Fam Zheng Acked-by: Paolo Bonzini Message-Id: <20180110091846.10699-2-f...@redhat.com> Reviewed-by: Stefan Hajnoczi

Re: [Qemu-devel] [RESEND PATCH 2/6] memory: introduce AddressSpaceOps and IOMMUObject

2018-01-15 Thread David Gibson
On Fri, Jan 12, 2018 at 06:25:34PM +0800, Liu, Yi L wrote: > On Wed, Dec 20, 2017 at 10:18:16PM +1100, David Gibson wrote: > > On Wed, Dec 20, 2017 at 02:47:30PM +0800, Liu, Yi L wrote: > > > On Mon, Dec 18, 2017 at 10:35:31PM +1100, David Gibson wrote: > > > > On Wed, Nov 15, 2017 at 03:16:32PM

Re: [Qemu-devel] [PATCH v2] net: Allow hubports to connect to other netdevs

2018-01-15 Thread Jason Wang
On 2018年01月16日 03:50, Thomas Huth wrote: QEMU can emulate hubs to connect NICs and netdevs. This is currently primarily used for the mis-named 'vlan' feature of the networking subsystem. Now the 'vlan' feature has been marked as deprecated, since its name is rather confusing and the users

Re: [Qemu-devel] [PULL 01/33] MAINTAINERS: Add myself as maintainer to X86 machines

2018-01-15 Thread Thomas Huth
On 16.01.2018 05:46, Michael S. Tsirkin wrote: > From: Marcel Apfelbaum > > Signed-off-by: Marcel Apfelbaum > Signed-off-by: Marcel Apfelbaum I think the second SoB rather be yours, Michael, instead of a second one from Marcel. > --- >

Re: [Qemu-devel] [PATCH] net: Allow hubports to connect to other netdevs

2018-01-15 Thread Jason Wang
On 2018年01月16日 02:06, Thomas Huth wrote: On 15.01.2018 18:36, Thomas Huth wrote: On 15.01.2018 08:40, Jason Wang wrote: [...] And since it was a hub, do we need to send to its netdev too inside net_hub_receive()? I currently don't think so, but I'll check again... OK, I now think we're

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

2018-01-15 Thread Jason Wang
On 2018年01月15日 21:56, Stefan Hajnoczi wrote: On Mon, Jan 15, 2018 at 02:56:31PM +0800, Jason Wang wrote: On 2018年01月12日 18:18, Stefan Hajnoczi wrote: And what's more important, according to the kvm 2016 slides of vhost-pci, the motivation of vhost-pci is not building SDN but a chain of VNFs.

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

2018-01-15 Thread Jason Wang
On 2018年01月15日 18:43, Wei Wang wrote: On 01/15/2018 04:34 PM, Jason Wang wrote: On 2018年01月15日 15:59, Wei Wang wrote: On 01/15/2018 02:56 PM, Jason Wang wrote: On 2018年01月12日 18:18, Stefan Hajnoczi wrote: I just fail understand why we can't do software defined network or storage

Re: [Qemu-devel] [PATCH] tests/boot-serial-test: fix powernv support

2018-01-15 Thread David Gibson
On Mon, Jan 15, 2018 at 01:24:17PM +0100, Cédric Le Goater wrote: > Recent commit introduced the firmware image skiboot 5.9 which > has a different first line ouput. > > Signed-off-by: Cédric Le Goater Applied to ppc-for-2.12. > --- > tests/boot-serial-test.c | 2 +- > 1 file

Re: [Qemu-devel] [Qemu-arm] [PATCH] hw/misc: Add code to emulate Xilinx Slave Serial port

2018-01-15 Thread Philippe Mathieu-Daudé
On 01/15/2018 10:51 PM, Andrey Smirnov wrote: > On Tue, Dec 19, 2017 at 4:48 PM, Alistair Francis > wrote: >> On Thu, Dec 14, 2017 at 7:19 AM, Andrey Smirnov >> wrote: >>> Add code to emulate Xilinx Slave Serial FPGA configuration port. >>>

[Qemu-devel] [PULL 23/33] vhost: Simplify ring verification checks

2018-01-15 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" vhost_verify_ring_mappings() were used to verify that rings are still accessible and related memory hasn't been moved after flatview is updated. It was doing checks by mapping ring's GPA+len and checking that HVA hadn't changed with new memory

Re: [Qemu-devel] [PATCH qemu v2] RFC: vfio-pci: Allow mmap of MSIX BAR

2018-01-15 Thread Alexey Kardashevskiy
On 06/01/18 02:29, Alex Williamson wrote: > On Fri, 5 Jan 2018 10:48:07 +0100 > Auger Eric wrote: > >> Hi Alexey, >> >> On 15/12/17 07:29, Alexey Kardashevskiy wrote: >>> This makes use of a new VFIO_REGION_INFO_CAP_MSIX_MAPPABLE capability >>> which tells that a region

Re: [Qemu-devel] [PATCH v2 1/1] target-ppc: Fix booke206 tlbwe TLB instruction

2018-01-15 Thread David Gibson
On Mon, Jan 15, 2018 at 10:32:20AM +0100, Luc MICHEL wrote: > When overwritting a valid TLB entry with a new one, the previous page > were not flushed in QEMU TLB, leading to incoherent mapping. This commit > fixes this. > > Signed-off-by: Luc MICHEL Applied to

[Qemu-devel] [PULL 19/33] vhost-user-test: make features mask an init_virtio_dev() argument

2018-01-15 Thread Michael S. Tsirkin
From: Maxime Coquelin The goal is to generalize the use of [un]init_virtio_dev() to all tests, which does not necessarily expose the same features set. Signed-off-by: Maxime Coquelin Reviewed-by: Michael S. Tsirkin

[Qemu-devel] [PULL 32/33] vhost-user: fix misaligned access to payload

2018-01-15 Thread Michael S. Tsirkin
We currently take a pointer to a misaligned field of a packed structure. clang reports this as a build warning. A fix is to keep payload in a separate structure, and access is it from there using a vectored write. Signed-off-by: Michael S. Tsirkin --- hw/virtio/vhost-user.c |

Re: [Qemu-devel] [PATCH 0/6] ppc/pnv: misc fixes and cleanups for POWER9

2018-01-15 Thread David Gibson
On Mon, Jan 15, 2018 at 07:04:00PM +0100, Cédric Le Goater wrote: > Hello, > > Here are some preliminary and straight forward fixes before adding > POWER9 support to the PowerNV machine. > > The full tree can be found here : > > https://github.com/legoater/qemu powernv-2.12 > > Thanks,

Re: [Qemu-devel] [PATCH 09/11] pci: add trace-events support for hw/pci-host

2018-01-15 Thread Michael S. Tsirkin
On Sun, Jan 14, 2018 at 10:47:49AM +, Mark Cave-Ayland wrote: > Signed-off-by: Mark Cave-Ayland > CC: Michael S. Tsirkin > CC: Marcel Apfelbaum Seems harmless so why not. Acked-by: Michael S. Tsirkin >

[Qemu-devel] [PULL 17/33] vhost-user-test: extract read-guest-mem test from main loop

2018-01-15 Thread Michael S. Tsirkin
From: Maxime Coquelin This patch makes read-guest-test consistent with other tests, i.e. create the test server in the test function. Reviewed-by: Marc-André Lureau Signed-off-by: Maxime Coquelin Reviewed-by:

[Qemu-devel] [PULL 30/33] tests: acpi: add comments to fetch_rsdt_referenced_tables/data->tables usage

2018-01-15 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/bios-tables-test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[Qemu-devel] [PULL 21/33] vhost: Build temporary section list and deref after commit

2018-01-15 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" Igor spotted that there's a race, where a region that's unref'd in a _del callback might be free'd before the set_mem_table call in the _commit callback, and thus the vhost might end up using free memory. Fix this by building a complete

[Qemu-devel] [PULL 15/33] hw/acpi-build: Make next_base easy to follow

2018-01-15 Thread Michael S. Tsirkin
From: Dou Liyang It may be hard to read the assignment statement of "next_base", so S/next_base += (1ULL << 32) - pcms->below_4g_mem_size; /next_base = mem_base + mem_len; ... for readability. No functionality change. Signed-off-by: Dou Liyang

[Qemu-devel] [PULL 29/33] tests: acpi: rename test_acpi_tables()/test_dst_table() to reflect its usage

2018-01-15 Thread Michael S. Tsirkin
From: Igor Mammedov Main purpose of test_dst_table() is loading a table from QEMU with checking that checksum in header matches actual one, rename it reflect main action it performs. Likewise test_acpi_tables() name is to broad, while the function only loads tables

[Qemu-devel] [PULL 20/33] vhost-user-test: use init_virtio_dev in multiqueue test

2018-01-15 Thread Michael S. Tsirkin
From: Maxime Coquelin Now that init_virtio_dev() has been generalized to all cases, use it in test_multiqueue() to avoid code duplication. Signed-off-by: Maxime Coquelin Reviewed-by: Michael S. Tsirkin Signed-off-by:

[Qemu-devel] [PULL 27/33] tests: acpi: move tested tables array allocation outside of test_acpi_dsdt_table()

2018-01-15 Thread Michael S. Tsirkin
From: Igor Mammedov at best it's confusing that array for list of tables to be tested against reference tables is allocated within test_acpi_dsdt_table() and at worst it would just overwrite list of tables if they were added before test_acpi_dsdt_table(). Move array

[Qemu-devel] [PULL 12/33] intel-iommu: Extend address width to 48 bits

2018-01-15 Thread Michael S. Tsirkin
From: Prasad Singamsetty The current implementation of Intel IOMMU code only supports 39 bits iova address width. This patch provides a new parameter (x-aw-bits) for intel-iommu to extend its address width to 48 bits but keeping the default the same (39 bits). The

Re: [Qemu-devel] [PATCH V5] pci: removed the is_express field since a uniform interface was inserted

2018-01-15 Thread Michael S. Tsirkin
On Mon, Dec 18, 2017 at 05:21:40PM +0200, Yoni Bettan wrote: > according to Eduardo Habkost's commit fd3b02c889 all PCIEs now implement > INTERFACE_PCIE_DEVICE so we don't need is_express field anymore. > > Devices that implements only INTERFACE_PCIE_DEVICE (is_express == 1) > or > devices that

[Qemu-devel] [PULL 14/33] ACPI/unit-test: Add a testcase for RAM allocation in numa node

2018-01-15 Thread Michael S. Tsirkin
From: Dou Liyang As QEMU supports the memory-less node, it is possible that there is no RAM in the first numa node(also be called as node0). eg: ... \ -m 128,slots=3,maxmem=1G \ -numa node -numa node,mem=128M \ But, this makes it hard for QEMU to build a

[Qemu-devel] [PULL 26/33] x86_iommu: check if machine has PCI bus

2018-01-15 Thread Michael S. Tsirkin
From: Mohammed Gamal Starting qemu with qemu-system-x86_64 -S -M isapc -device {amd|intel}-iommu leads to a segfault. The code assume PCI bus is present and tries to access the bus structure without checking. Since Intel VT-d and AMDVI should only work with PCI, add a check

[Qemu-devel] [PULL 13/33] hw/pci-bridge: fix QEMU crash because of pcie-root-port

2018-01-15 Thread Michael S. Tsirkin
From: Marcel Apfelbaum If we try to use more pcie_root_ports then available slots and an IO hint is passed to the port, QEMU crashes because we try to init the "IO hint" capability even if the device is not created. Fix it by checking for error before adding the capability, so

[Qemu-devel] [PULL 25/33] x86_iommu: Move machine check to x86_iommu_realize()

2018-01-15 Thread Michael S. Tsirkin
From: Mohammed Gamal Instead of having the same error checks in vtd_realize() and amdvi_realize(), move that over to the generic x86_iommu_realize(). Reviewed-by: Peter Xu Reviewed-by: Eduardo Habkost Signed-off-by: Mohammed Gamal

[Qemu-devel] [PATCHv2 1/2] spapr: Allow some cases where we can't set VSMT mode in the kernel

2018-01-15 Thread David Gibson
At present if we require a vsmt mode that's not equal to the kernel's default, and the kernel doesn't let us change it (e.g. because it's an old kernel without support) then we always fail. But in fact we can cope with the kernel having a different vsmt as long as a) it's >= the actual number

[Qemu-devel] [PULL 33/33] vhost: remove assertion to prevent crash

2018-01-15 Thread Michael S. Tsirkin
From: Jay Zhou QEMU will assert on vhost-user backed virtio device hotplug if QEMU is using more RAM regions than VHOST_MEMORY_MAX_NREGIONS (for example if it were started with a lot of DIMM devices). Fix it by returning error instead of asserting and let callers of

[Qemu-devel] [PATCHv2 2/2] spapr: Adjust default VSMT value for better migration compatibility

2018-01-15 Thread David Gibson
fa98fbfc "PC: KVM: Support machine option to set VSMT mode" introduced the "vsmt" parameter for the pseries machine type, which controls the spacing of the vcpu ids of thread 0 for each virtual core. This was done to bring some consistency and stability to how that was done, while still allowing

[Qemu-devel] [PULL 22/33] vhost: Move log_dirty check

2018-01-15 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" Move the log_dirty check into vhost_section. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/virtio/vhost.c | 20

[Qemu-devel] [PULL 11/33] intel-iommu: Redefine macros to enable supporting 48 bit address width

2018-01-15 Thread Michael S. Tsirkin
From: Prasad Singamsetty The current implementation of Intel IOMMU code only supports 39 bits host/iova address width so number of macros use hard coded values based on that. This patch is to redefine them so they can be used with variable address widths. This

[Qemu-devel] [PULL 31/33] vhost-user: factor out msg head and payload

2018-01-15 Thread Michael S. Tsirkin
split header and payload into separate structures, to enable easier handling of alignment issues. Signed-off-by: Michael S. Tsirkin --- hw/virtio/vhost-user.c | 198 + 1 file changed, 101 insertions(+), 97 deletions(-) diff --git

[Qemu-devel] [PULL 16/33] vhost-user-test: fix features mask

2018-01-15 Thread Michael S. Tsirkin
From: Maxime Coquelin VIRTIO_NET_F_MAC is a bit position, not a bit mask. Signed-off-by: Maxime Coquelin Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Marc-André Lureau

[Qemu-devel] [PATCHv2 0/2] Further VSMT fixes

2018-01-15 Thread David Gibson
Here are some follow on fixes to Ziviani's proposed changes to VSMT handling. This should fix migration of POWER8 compat mode guests between POWER8 and POWER9 hosts. The changes are simple, the rationale's rather more complex. Changes since v2: * Dropped one patch, already merged *

[Qemu-devel] [PULL 10/33] vhost-user: fix multiple queue specification

2018-01-15 Thread Michael S. Tsirkin
From: Maxime Coquelin The number of queues supported by the slave is queried with message VHOST_USER_GET_QUEUE_NUM, not with message VHOST_USER_GET_PROTOCOL_FEATURES. Signed-off-by: Maxime Coquelin Reviewed-by: Michael S. Tsirkin

[Qemu-devel] [PULL 28/33] tests: acpi: init table descriptor in test_dst_table()

2018-01-15 Thread Michael S. Tsirkin
From: Igor Mammedov remove code duplication and make sure that table descriptor passed in for initialization is in expected state. Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin

[Qemu-devel] [PULL 05/33] contrib/vhost-user-blk: introduce a vhost-user-blk sample application

2018-01-15 Thread Michael S. Tsirkin
From: Changpeng Liu This commit introduces a vhost-user-blk backend device, it uses UNIX domain socket to communicate with QEMU. The vhost-user-blk sample application should be used with QEMU vhost-user-blk-pci device. To use it, complie with: make vhost-user-blk and

Re: [Qemu-devel] [PATCH 2/2] spapr: Adjust default VSMT value for better migration compatibility

2018-01-15 Thread David Gibson
On Mon, Jan 15, 2018 at 10:48:47AM +0100, Greg Kurz wrote: > On Mon, 15 Jan 2018 18:27:15 +1100 > David Gibson wrote: > > > fa98fbfc "PC: KVM: Support machine option to set VSMT mode" introduced the > > "vsmt" parameter for the pseries machine type, which controls

[Qemu-devel] [PULL 08/33] virtio: improve virtio devices initialization time

2018-01-15 Thread Michael S. Tsirkin
From: Gal Hammer The loading time of a VM is quite significant when its virtio devices use a large amount of virt-queues (e.g. a virtio-serial device with max_ports=511). Most of the time is spend in the creation of all the required event notifiers (ioeventfd and memory

[Qemu-devel] [PULL 24/33] vhost: Merge sections added to temporary list

2018-01-15 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" As sections are reported by the listener to the _nop and _add methods, add them to the temporary section list but now merge them with the previous section if the new one abuts and the backend allows. Signed-off-by: Dr. David Alan Gilbert

[Qemu-devel] [PULL 09/33] pci/shpc: Move function to generic header file

2018-01-15 Thread Michael S. Tsirkin
From: Yuval Shaia This function should be declared in generic header file so we can utilize it. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Yuval Shaia Signed-off-by: Marcel Apfelbaum Reviewed-by:

[Qemu-devel] [PULL 02/33] vhost-user: add new vhost user messages to support virtio config space

2018-01-15 Thread Michael S. Tsirkin
From: Changpeng Liu Add VHOST_USER_GET_CONFIG/VHOST_USER_SET_CONFIG messages which can be used for live migration of vhost user devices, also vhost user devices can benefit from the messages to get/set virtio config space from/to the I/O target. For the purpose to

[Qemu-devel] [PULL 06/33] qemu: add a cleanup callback function to EventNotifier

2018-01-15 Thread Michael S. Tsirkin
From: Gal Hammer Adding a cleanup callback function to the EventNotifier struct which allows users to execute event_notifier_cleanup in a different context. Signed-off-by: Gal Hammer Reviewed-by: Michael S. Tsirkin Signed-off-by:

[Qemu-devel] [PULL 18/33] vhost-user-test: setup virtqueues in all tests

2018-01-15 Thread Michael S. Tsirkin
From: Maxime Coquelin Only the multiqueue test setups the virtqueues. This patch generalizes the setup of virtqueues for all tests. Signed-off-by: Maxime Coquelin Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S.

[Qemu-devel] [PULL 01/33] MAINTAINERS: Add myself as maintainer to X86 machines

2018-01-15 Thread Michael S. Tsirkin
From: Marcel Apfelbaum Signed-off-by: Marcel Apfelbaum Signed-off-by: Marcel Apfelbaum --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4770f10..753e799 100644 --- a/MAINTAINERS +++

[Qemu-devel] [PULL 07/33] virtio: postpone the execution of event_notifier_cleanup function

2018-01-15 Thread Michael S. Tsirkin
From: Gal Hammer Use the EventNotifier's cleanup callback function to execute the event_notifier_cleanup function after kvm unregistered the eventfd. This change supports running the virtio_bus_set_host_notifier function inside a memory region transaction. Otherwise, a

[Qemu-devel] [PULL 04/33] contrib/libvhost-user: enable virtio config space messages

2018-01-15 Thread Michael S. Tsirkin
From: Changpeng Liu Enable VHOST_USER_GET_CONFIG/VHOST_USER_SET_CONFIG messages in libvhost-user library, users can implement their own I/O target based on the library. This enable the virtio config space delivered between QEMU host device and the I/O target.

[Qemu-devel] [PULL 03/33] vhost-user-blk: introduce a new vhost-user-blk host device

2018-01-15 Thread Michael S. Tsirkin
From: Changpeng Liu This commit introduces a new vhost-user device for block, it uses a chardev to connect with the backend, same with Qemu virito-blk device, Guest OS still uses the virtio-blk frontend driver. To use it, start QEMU with command line like this:

[Qemu-devel] [PULL 00/33] pc, pci, virtio: features, fixes, cleanups

2018-01-15 Thread Michael S. Tsirkin
A large pull due to patch buildup over the holiday period. Most notable here is probably the addition of vhost-user-blk. The following changes since commit f5213bd060b460c99e605472b7e03967db43: Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20180115' into staging (2018

Re: [Qemu-devel] [PATCH v4 08/14] i.MX: Add implementation of i.MX7 GPR IP block

2018-01-15 Thread Philippe Mathieu-Daudé
On 01/15/2018 10:37 PM, Andrey Smirnov wrote: > Add minimal code needed to allow upstream Linux guest to boot. > > Cc: Peter Maydell > Cc: Jason Wang > Cc: Philippe Mathieu-Daudé > Cc: qemu-devel@nongnu.org > Cc:

Re: [Qemu-devel] [PATCH v6 0/3] vhost: two fixes and used_memslots refactoring

2018-01-15 Thread Michael S. Tsirkin
On Fri, Jan 12, 2018 at 10:47:56AM +0800, Jay Zhou wrote: > Jay Zhou (3): > vhost: remove assertion to prevent crash > vhost: fix memslot limit check > vhost: used_memslots refactoring This looks good to me, but needs to be rebased on top of vhost mem slot management refactoring by dgilbert

Re: [Qemu-devel] [PATCH v4 07/14] i.MX: Add i.MX7 GPT variant

2018-01-15 Thread Philippe Mathieu-Daudé
On 01/15/2018 10:37 PM, Andrey Smirnov wrote: > Add minimal code needed to allow upstream Linux guest to boot. > > Cc: Peter Maydell > Cc: Jason Wang > Cc: Philippe Mathieu-Daudé > Cc: qemu-devel@nongnu.org > Cc:

Re: [Qemu-devel] [PATCH v4 11/14] ARM: Add basic code to emulate A7MPCore DAP block

2018-01-15 Thread Philippe Mathieu-Daudé
Hi Andrey, On 01/15/2018 10:37 PM, Andrey Smirnov wrote: > Add minimal code to emulate A7MPCore DAP block needed to boot Linux > guest. I was not aware the DAP is accessed by upstream Linux... You sure this isn't rather part of some bootloader built-in self-test? > Cc: Peter Maydell

Re: [Qemu-devel] [PATCH v2 3/4] cryptodev-vhost-user: add crypto session handler

2018-01-15 Thread Michael S. Tsirkin
On Sat, Dec 30, 2017 at 04:52:12PM +0800, Jay Zhou wrote: > diff --git a/docs/interop/vhost-user.txt b/docs/interop/vhost-user.txt > index 954771d..f43c63d 100644 > --- a/docs/interop/vhost-user.txt > +++ b/docs/interop/vhost-user.txt > @@ -596,6 +596,25 @@ Master message types >and expect

Re: [Qemu-devel] [PATCH 5/5] tests: acpi: fix FADT not being compared to reference table

2018-01-15 Thread Michael S. Tsirkin
On Fri, Dec 29, 2017 at 04:16:42PM +0100, Igor Mammedov wrote: > It turns out that FADT isn't actually tested for changes > against reference table, since it happens to be the 1st > table in RSDT which is currently ignored. > Fix it by making sure that all tables from RSDT are added > to test

Re: [Qemu-devel] [PATCH v9 00/26] tcg: generic vector operations

2018-01-15 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180116033404.31532-1-richard.hender...@linaro.org Subject: [Qemu-devel] [PATCH v9 00/26] tcg: generic vector operations === TEST SCRIPT BEGIN === #!/bin/bash BASE=base

[Qemu-devel] [PATCH v2 2/4] tcg/arm: Support tlb offsets larger than 64k

2018-01-15 Thread Richard Henderson
AArch64 with SVE has an offset of 80k to the 8th TLB. Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.inc.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/tcg/arm/tcg-target.inc.c

[Qemu-devel] [PATCH v9 23/26] target/arm: Use vector infrastructure for aa64 widening shifts

2018-01-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 29 - 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 48caba3d9f..4f15e58556 100644 ---

[Qemu-devel] [PATCH v2 0/4] tcg/arm fixes

2018-01-15 Thread Richard Henderson
Changes since v1: Patch 1: * Use rsb/rsc for gt/le. Now we always use "rI" as a constraint, so we never have to load immediates into registers by hand. Patch 2: * We can't use add_ofs in the while condition and cmp_ofs in the reduction and converge; use cmp_ofs always. Fixes the

[Qemu-devel] [PATCH v2 1/4] tcg/arm: Fix double-word comparisons

2018-01-15 Thread Richard Henderson
The code sequence we were generating was only good for unsigned comparisons. For signed comparisions, use the sequence from gcc. Fixes booting of ppc64 firmware, with a patch changing the code sequence for ppc comparisons. Tested-by: Michael Roth Signed-off-by:

[Qemu-devel] [PATCH v9 20/26] target/arm: Use vector infrastructure for aa64 constant shifts

2018-01-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 386 ++--- 1 file changed, 329 insertions(+), 57 deletions(-) diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 8769b4505a..d8bb3bbb25

[Qemu-devel] [PATCH v9 21/26] target/arm: Use vector infrastructure for aa64 compares

2018-01-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 96 ++ 1 file changed, 62 insertions(+), 34 deletions(-) diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index d8bb3bbb25..44e44cc9f2

[Qemu-devel] [PATCH v9 24/26] target/arm: Use vector infrastructure for aa64 orr/bic immediate

2018-01-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 38 +- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 4f15e58556..5963eedd41 100644

[Qemu-devel] [PATCH v9 25/26] tcg/i386: Add vector operations

2018-01-15 Thread Richard Henderson
The x86 vector instruction set is extremely irregular. With newer editions, Intel has filled in some of the blanks. However, we don't get many 64-bit operations until SSE4.2, introduced in 2009. The subsequent edition was for AVX1, introduced in 2011, which added three-operand addressing, and

[Qemu-devel] [PATCH v9 26/26] tcg/aarch64: Add vector operations

2018-01-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.h | 30 +- tcg/aarch64/tcg-target.opc.h | 3 + tcg/aarch64/tcg-target.inc.c | 674 --- 3 files changed, 660 insertions(+), 47 deletions(-) create mode 100644

[Qemu-devel] [PATCH v9 22/26] target/arm: Use vector infrastructure for aa64 multiplies

2018-01-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 171 - 1 file changed, 138 insertions(+), 33 deletions(-) diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 44e44cc9f2..48caba3d9f

[Qemu-devel] [PATCH v9 16/26] target/arm: Use vector infrastructure for aa64 add/sub/logic

2018-01-15 Thread Richard Henderson
Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 207 + 1 file changed, 134 insertions(+), 73 deletions(-) diff --git a/target/arm/translate-a64.c

[Qemu-devel] [PATCH v9 15/26] target/arm: Align vector registers

2018-01-15 Thread Richard Henderson
Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/arm/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/cpu.h b/target/arm/cpu.h

[Qemu-devel] [PATCH v9 14/26] tcg/optimize: Handle vector opcodes during optimize

2018-01-15 Thread Richard Henderson
Trivial move and constant propagation. Some identity and constant function folding, but nothing that requires knowledge of the size of the vector element. Signed-off-by: Richard Henderson --- tcg/optimize.c | 150

[Qemu-devel] [PATCH v9 18/26] target/arm: Use vector infrastructure for aa64 dup/movi

2018-01-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 83 +++--- 1 file changed, 34 insertions(+), 49 deletions(-) diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index bc14c28e71..55a4902fc2

[Qemu-devel] [PATCH v9 19/26] target/arm: Use vector infrastructure for aa64 zip/uzp/trn/xtn

2018-01-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 103 +++-- 1 file changed, 35 insertions(+), 68 deletions(-) diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 55a4902fc2..8769b4505a

[Qemu-devel] [PATCH v9 13/26] tcg: Add generic vector helpers with a scalar variable operand

2018-01-15 Thread Richard Henderson
Use dup to convert the scalar to a third vector. Signed-off-by: Richard Henderson --- accel/tcg/tcg-runtime.h | 5 ++ tcg/tcg-op-gvec.h| 28 ++ accel/tcg/tcg-runtime-gvec.c | 48 ++ tcg/tcg-op-gvec.c| 207

[Qemu-devel] [PATCH v9 17/26] target/arm: Use vector infrastructure for aa64 mov/not/neg

2018-01-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 43 ++- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 572af456d1..bc14c28e71

[Qemu-devel] [PATCH v9 11/26] tcg: Loosen vec_gen_op* typecheck rules

2018-01-15 Thread Richard Henderson
For ARM SVE with VQ=3, we want to be able to dup a scalar into a v256, use that, and then perform a second operation with the v256 punned to a v128. Allow operands to a vector operation be wider than necessary for the output. Signed-off-by: Richard Henderson ---

[Qemu-devel] [PATCH v9 09/26] tcg: Add generic vector ops for extension

2018-01-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- accel/tcg/tcg-runtime.h | 8 +++ tcg/tcg-op-gvec.h| 9 +++ tcg/tcg-op.h | 5 ++ tcg/tcg-opc.h| 5 ++ tcg/tcg.h| 2 + accel/tcg/tcg-runtime-gvec.c |

[Qemu-devel] [PATCH v9 12/26] tcg: Add generic vector helpers with a scalar immediate operand

2018-01-15 Thread Richard Henderson
We already have immediate shifts. Add addition, multiplication, and logical operations with an immediate. Subtraction can thus be done with negation of the constant. Signed-off-by: Richard Henderson --- accel/tcg/tcg-runtime.h | 14 tcg/tcg-op-gvec.h

  1   2   3   4   5   >