[Qemu-devel] [PATCH qemu v17 11/12] spapr_pci/spapr_pci_vfio: Support Dynamic DMA Windows (DDW)

2016-06-01 Thread Alexey Kardashevskiy
This adds support for Dynamic DMA Windows (DDW) option defined by the SPAPR specification which allows to have additional DMA window(s) The "ddw" property is enabled by default on a PHB but for compatibility the pseries-2.5 machine (TODO: update version) and older disable it. This also creates a

[Qemu-devel] [PATCH qemu v17 05/12] spapr_pci: Reset DMA config on PHB reset

2016-06-01 Thread Alexey Kardashevskiy
LoPAPR dictates that during system reset all DMA windows must be removed and the default DMA32 window must be created so does the patch. At the moment there is just one window supported so no change in behaviour is expected. Signed-off-by: Alexey Kardashevskiy Reviewed-by: David

Re: [Qemu-devel] [PATCH v7 04/15] Makefile: Rules for docker testing

2016-06-01 Thread Fam Zheng
On Wed, 06/01 10:18, Paolo Bonzini wrote: > > > On 01/06/2016 06:25, Fam Zheng wrote: > > +# Use a global constant ccache directory to speed up repetitive builds > > +DOCKER_CCACHE_DIR := /var/tmp/qemu-docker-ccache > > Same here, use $HOME/.cache/qemu-docker-ccache instead. Do you need a >

[Qemu-devel] [PATCH qemu v17 08/12] spapr_pci: Add and export DMA resetting helper

2016-06-01 Thread Alexey Kardashevskiy
This will be later used by the "ibm,reset-pe-dma-window" RTAS handler which resets the DMA configuration to the defaults. Signed-off-by: Alexey Kardashevskiy Reviewed-by: David Gibson --- hw/ppc/spapr_pci.c | 10 --

[Qemu-devel] [PATCH qemu v17 02/12] spapr_iommu: Introduce "enabled" state for TCE table

2016-06-01 Thread Alexey Kardashevskiy
Currently TCE tables are created once at start and their sizes never change. We are going to change that by introducing a Dynamic DMA windows support where DMA configuration may change during the guest execution. This changes spapr_tce_new_table() to create an empty zero-size IOMMU memory region

[Qemu-devel] [PATCH qemu v17 12/12] spapr_iommu, vfio, memory: Notify IOMMU about starting/stopping listening

2016-06-01 Thread Alexey Kardashevskiy
The sPAPR TCE tables manage 2 copies when VFIO is using an IOMMU - a guest view of the table and a hardware TCE table. If there is no VFIO presense in the address space, then just the guest view is used, if this is the case, it is allocated in the KVM. However since there is no support yet for

[Qemu-devel] [PATCH qemu v17 10/12] vfio/spapr: Create DMA window dynamically (SPAPR IOMMU v2)

2016-06-01 Thread Alexey Kardashevskiy
New VFIO_SPAPR_TCE_v2_IOMMU type supports dynamic DMA window management. This adds ability to VFIO common code to dynamically allocate/remove DMA windows in the host kernel when new VFIO container is added/removed. This adds VFIO_IOMMU_SPAPR_TCE_CREATE ioctl to vfio_listener_region_add and adds

[Qemu-devel] [PATCH qemu v17 09/12] vfio: Add host side DMA window capabilities

2016-06-01 Thread Alexey Kardashevskiy
There are going to be multiple IOMMUs per a container. This moves the single host IOMMU parameter set to a list of VFIOHostDMAWindow. This should cause no behavioral change and will be used later by the SPAPR TCE IOMMU v2 which will also add a vfio_host_win_del() helper. Signed-off-by: Alexey

Re: [Qemu-devel] [PATCH v6 08/11] mptsas: change msi property type

2016-06-01 Thread Markus Armbruster
Cao jin writes: >>From uint32 to enum OnOffAuto, and give it a shorter name. > > cc: Paolo Bonzini > cc: Michael S. Tsirkin > cc: Markus Armbruster > cc: Marcel Apfelbaum > > Signed-off-by:

Re: [Qemu-devel] [RFC PATCH v4 3/3] VFIO Type1 IOMMU: Add support for mediated devices

2016-06-01 Thread Dong Jia
On Wed, 25 May 2016 01:28:17 +0530 Kirti Wankhede wrote: > + > +/* > + * Pin a set of guest PFNs and return their associated host PFNs for API > + * supported domain only. > + * @vaddr [in]: array of guest PFNs > + * @npage [in]: count of array elements > + * @prot [in] :

Re: [Qemu-devel] [PATCH] configure: save git working tree information in "pkgversion"

2016-06-01 Thread Laszlo Ersek
On 05/31/16 19:45, Eric Blake wrote: > On 05/31/2016 11:01 AM, Laszlo Ersek wrote: > Grepping git's Documentation/RelNotes/ directory, I find: - in "1.6.6.txt": the introduction of --dirty - in "1.7.6.4.txt": an apparently important bugfix for --dirty Version 1.7.6.4 of

Re: [Qemu-devel] [PATCH] virtio: move bi-endian target support to a single location

2016-06-01 Thread Paolo Bonzini
On 01/06/2016 04:33, David Gibson wrote: > On Tue, May 31, 2016 at 03:15:21PM +0200, Paolo Bonzini wrote: >> >> >> On 31/05/2016 15:10, Greg Kurz wrote: >>> +#if defined(TARGET_PPC64) || defined(TARGET_ARM) >>> +#define LEGACY_VIRTIO_IS_BIENDIAN 1 >>> +#endif > > These will

Re: [Qemu-devel] [PATCH v2 0/2] Let PKGVERSION include the "git describe" output

2016-06-01 Thread Laszlo Ersek
On 06/01/16 06:41, Fam Zheng wrote: > v2: Address Eric's comments: > "echo -n" -> "printf". > "-unclean" -> "-dirty". > > Makefile happened to be in my working set because of the docker test work, so > I > went ahead to try this nice feature last evening before going to bed. My >

[Qemu-devel] [PATCH v8 12/17] net_pkt: Extend packet abstraction as required by e1000e functionality

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman This patch extends the TX/RX packet abstractions with features that will be used by the e1000e device implementation. Changes are: 1. Support iovec lists for RX buffers 2. Deeper RX packets parsing 3. Loopback option for TX

Re: [Qemu-devel] [PATCH v6 02/11] fix some coding style problems

2016-06-01 Thread Cao jin
On 06/01/2016 04:09 PM, Markus Armbruster wrote: Cao jin writes: It has: 1. More newlines make the code block well separated. 2. Add more comments for msi_init. 3. Fix a indentation in vmxnet3.c. 4. ioh3420 & xio3130_downstream: put PCI Express capability init

Re: [Qemu-devel] [PATCH] fix xen hvm direct kernel boot

2016-06-01 Thread Chun Yan Liu
>>> On 5/31/2016 at 12:10 AM, in message , Stefano Stabellini wrote: > On Fri, 29 Apr 2016, Chunyan Liu wrote: > > Since commit a1666142: acpi-build: make ROMs RAM blocks resizeable, > > xen HVM direct

Re: [Qemu-devel] [PATCH v6 06/11] usb xhci: change msi/msix property type

2016-06-01 Thread Markus Armbruster
Cao jin writes: >>From bit to enum OnOffAuto > > cc: Gerd Hoffmann > cc: Michael S. Tsirkin > cc: Markus Armbruster > cc: Marcel Apfelbaum > > Signed-off-by: Cao jin

[Qemu-devel] [PATCH v8 10/17] net_pkt: Name vmxnet3 packet abstractions more generic

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman This patch drops "vmx" prefix from packet abstractions names to emphasize the fact they are generic and not tied to any specific network device. These abstractions will be reused by e1000e emulation implementation introduced by following

Re: [Qemu-devel] [PATCH v6 07/11] intel-hda: change msi property type

2016-06-01 Thread Markus Armbruster
Cao jin writes: >>From uint32 to enum OnOffAuto. > > cc: Gerd Hoffmann > cc: Michael S. Tsirkin > cc: Markus Armbruster > cc: Marcel Apfelbaum > > Signed-off-by: Cao jin

[Qemu-devel] [PATCH v8 15/17] e1000: Move out code that will be reused in e1000e

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman Code that will be shared moved to a separate files. Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Reviewed-by: Michael S. Tsirkin ---

[Qemu-devel] [PATCH v8 11/17] rtl8139: Move more TCP definitions to common header

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Reviewed-by: Michael S. Tsirkin --- hw/net/rtl8139.c | 5 - include/net/eth.h | 8

[Qemu-devel] [PATCH v8 09/17] vmxnet3: Use common MAC address tracing macros

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Reviewed-by: Michael S. Tsirkin --- hw/net/vmxnet3.c | 8

[Qemu-devel] [PATCH v8 08/17] net: Add macros for MAC address tracing

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman These macros will be used by future commits introducing e1000e device emulation and by vmxnet3 tracing code. Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch

[Qemu-devel] [PATCH v8 07/17] net: Introduce Toeplitz hash calculator

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Reviewed-by: Michael S. Tsirkin --- include/net/checksum.h | 45

[Qemu-devel] [PATCH v8 14/17] e1000_regs: Add definitions for Intel 82574-specific bits

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Reviewed-by: Michael S. Tsirkin --- hw/net/e1000_regs.h | 345

[Qemu-devel] [PATCH v8 17/17] e1000e: Introduce qtest for e1000e device

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Reviewed-by: Michael S. Tsirkin --- tests/Makefile | 3 + tests/e1000e-test.c |

[Qemu-devel] [PATCH v8 05/17] pcie: Introduce function for DSN capability creation

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Reviewed-by: Michael S. Tsirkin --- hw/pci/pcie.c | 10 ++

[Qemu-devel] [PATCH v8 04/17] pcie: Add support for PCIe CAP v1

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman Added support for PCIe CAP v1, while reusing some of the existing v2 infrastructure. Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Reviewed-by: Michael

[Qemu-devel] [PATCH v8 13/17] vmxnet3: Use pci_dma_* API instead of cpu_physical_memory_*

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman To make this device and network packets abstractions ready for IOMMU. Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Reviewed-by: Michael S. Tsirkin

[Qemu-devel] [PATCH v8 03/17] pci: Introduce define for PM capability version 1.1

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Reviewed-by: Michael S. Tsirkin --- include/hw/pci/pci_regs.h | 2 ++ 1 file changed, 2

[Qemu-devel] [PATCH v8 00/17] Introduce Intel 82574 GbE Controller Emulation (e1000e)

2016-06-01 Thread Dmitry Fleytman
Hello All, This is v8 of e1000e series. For convenience, the same patches are available at: https://github.com/daynix/qemu-e1000e/tree/e1000e-submit-v8 Series Reviewed-by: Michael S. Tsirkin Best regards, Dmitry. Changes since v7: 1. Fixed broken ETH macros reported by

[Qemu-devel] [PATCH v8 02/17] msix: make msix_clr_pending() visible for clients

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman This function will be used by e1000e device code. Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Reviewed-by: Michael S. Tsirkin ---

[Qemu-devel] [PATCH v8 06/17] vmxnet3: Use generic function for DSN capability definition

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Reviewed-by: Michael S. Tsirkin --- hw/net/vmxnet3.c | 12 +--- 1 file changed, 5

[Qemu-devel] [PATCH v8 01/17] pci: fix unaligned access in pci_xxx_quad()

2016-06-01 Thread Dmitry Fleytman
From: Dmitry Fleytman Replace legacy cpu_to_le64w()/le64_to_cpup() calls with stq_le_p()/ldq_le_p(). Motivation for this modification is that follow up patches add utility function pcie_dev_ser_num_init() for PCIe DSN capability creation which uses

Re: [Qemu-devel] [PATCH 4/6 Resend] Vhost-pci RFC: Detailed Description in the Virtio Specification Format

2016-06-01 Thread Xiao Guangrong
On 05/29/2016 04:11 PM, Wei Wang wrote: Signed-off-by: Wei Wang --- Details | 324 1 file changed, 324 insertions(+) create mode 100644 Details diff --git a/Details b/Details new file mode 100644

Re: [Qemu-devel] [PATCH v7 04/15] Makefile: Rules for docker testing

2016-06-01 Thread Paolo Bonzini
On 01/06/2016 06:25, Fam Zheng wrote: > +# Use a global constant ccache directory to speed up repetitive builds > +DOCKER_CCACHE_DIR := /var/tmp/qemu-docker-ccache Same here, use $HOME/.cache/qemu-docker-ccache instead. Do you need a mkdir -p? Paolo

Re: [Qemu-devel] [PATCH v7 04/15] Makefile: Rules for docker testing

2016-06-01 Thread Paolo Bonzini
On 01/06/2016 06:25, Fam Zheng wrote: > +CUR_TIME := $(shell date +%Y-%m-%d-%H.%M.%S.) > +# Makes the definition constant after the first expansion > +DOCKER_SRC_COPY = $(eval DOCKER_SRC_COPY := > /tmp/docker-src.$(CUR_TIME))$(DOCKER_SRC_COPY) > + > +$(DOCKER_SRC_COPY): > + @mkdir $@ >

Re: [Qemu-devel] [PATCH v6 04/11] megasas: Fix

2016-06-01 Thread Markus Armbruster
Title "megasas: Fix" is no good, possibly an editing accident. Suggest something like "megasas: Fix check for msi_init() failure" Cao jin writes: > msi_init returns non-zero value on both failure and success. > > cc: Hannes Reinecke > cc: Paolo Bonzini

Re: [Qemu-devel] [PATCH qemu v16 04/19] vmstate: Define VARRAY with VMS_ALLOC

2016-06-01 Thread Paolo Bonzini
On 01/06/2016 04:29, Alexey Kardashevskiy wrote: > On 27/05/16 17:54, Alexey Kardashevskiy wrote: >> On 04/05/16 16:52, Alexey Kardashevskiy wrote: >>> This allows dynamic allocation for migrating arrays. >>> >>> Already existing VMSTATE_VARRAY_UINT32 requires an array to be >>> pre-allocated,

Re: [Qemu-devel] [PATCH] block: Drop bdrv_ioctl_bh_cb

2016-06-01 Thread Paolo Bonzini
On 01/06/2016 03:52, Fam Zheng wrote: > Similar to the "!drv || !drv->bdrv_aio_ioctl" case above, here it is > okay to set co.ret and return. As pointed out by Paolo, a BH will be > created as necessary by the caller (bdrv_co_maybe_schedule_bh). > Besides, as pointed out by Kevin, "data" was

Re: [Qemu-devel] [PATCH v6 02/11] fix some coding style problems

2016-06-01 Thread Markus Armbruster
Cao jin writes: > It has: > 1. More newlines make the code block well separated. > 2. Add more comments for msi_init. > 3. Fix a indentation in vmxnet3.c. > 4. ioh3420 & xio3130_downstream: put PCI Express capability init function >together, make it more readable. >

Re: [Qemu-devel] [PATCH] host-utils: Prefer 'false' for bool type

2016-06-01 Thread Michael Tokarev
31.05.2016 21:33, Eric Blake wrote: > Mixing '0' and 'bool' looks stupid. Applied to -trivial, thanks! /mjt

Re: [Qemu-devel] [PATCH] docs/multi-thread-compression: Fix wrong command string

2016-06-01 Thread Michael Tokarev
23.05.2016 12:43, Wei Jiangang wrote: > s/info_migrate_capabilities/info migrate_capabilities Applied to -trivial, thanks! /mjt

Re: [Qemu-devel] [PATCH] docs: Fix a couple of typos in throttle.txt

2016-06-01 Thread Michael Tokarev
30.05.2016 13:00, Alberto Garcia wrote: > On Mon 30 May 2016 08:49:18 AM CEST, Changlong Xie wrote: - Water leaks from the bucket at a rate of 100 IOPS. - Water can be added to the bucket at a rate of 2000 IOPS. - The size of the bucket is 2000 x 60 = 12 - - If

[Qemu-devel] [PATCH] hw/char: QOM'ify escc.c (fix)

2016-06-01 Thread xiaoqiang zhao
The previous commit e7c9136977cb99c6eb52c9139f7b8d8b5fa87db9 (hw/char: QOM'ify escc.c) cause qemu-system-ppc/ppc64 OpenBIOS to freeze on startup, this commit fix it. Signed-off-by: xiaoqiang zhao --- hw/char/escc.c | 12 +++- 1 file changed, 7 insertions(+), 5

Re: [Qemu-devel] [PATCH v2 3/3] qapi: Fix memleak in string visitors on int lists

2016-06-01 Thread Markus Armbruster
Eric Blake writes: > Commit 7f8f9ef1 introduced the ability to store a list of > integers as a sorted list of ranges, but when merging ranges, > it leaks one or more ranges. It was also using range_get_last() > incorrectly within range_compare() (a range is a start/end pair,

Re: [Qemu-devel] [PATCH] block/raw-posix: Fix error_report of mounting message

2016-06-01 Thread Fam Zheng
On Wed, 06/01 15:08, Wei Jiangang wrote: > Use a single error_printf to replace triple error_report. > > Signed-off-by: Wei Jiangang > --- > block/raw-posix.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/block/raw-posix.c

[Qemu-devel] [PATCH] block/raw-posix: Fix error_report of mounting message

2016-06-01 Thread Wei Jiangang
Use a single error_printf to replace triple error_report. Signed-off-by: Wei Jiangang --- block/raw-posix.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/block/raw-posix.c b/block/raw-posix.c index a4f5a1b..141b01a 100644 ---

Re: [Qemu-devel] [PULL 03/31] hw/char: QOM'ify escc.c

2016-06-01 Thread xiaoqiang zhao
在 2016年06月01日 15:04, Mark Cave-Ayland 写道: On 01/06/16 04:06, xiaoqiang zhao wrote: 在 2016年6月1日,06:13,Mark Cave-Ayland 写道: On 27/05/16 11:06, Paolo Bonzini wrote: From: xiaoqiang zhao * Drop the old SysBus init function and use

Re: [Qemu-devel] [PULL 03/31] hw/char: QOM'ify escc.c

2016-06-01 Thread Mark Cave-Ayland
On 01/06/16 04:06, xiaoqiang zhao wrote: >> 在 2016年6月1日,06:13,Mark Cave-Ayland 写道: >> >>> On 27/05/16 11:06, Paolo Bonzini wrote: >>> >>> From: xiaoqiang zhao >>> >>> * Drop the old SysBus init function and use instance_init >>> * Call

Re: [Qemu-devel] [Qemu-ppc] [PULL 04/12] ppc: tlbie, tlbia and tlbisync are HV only

2016-06-01 Thread Mark Cave-Ayland
On 01/06/16 03:15, David Gibson wrote: > On Tue, May 31, 2016 at 11:28:49PM +0100, Mark Cave-Ayland wrote: >> On 31/05/16 01:41, David Gibson wrote: >> >>> From: Benjamin Herrenschmidt >>> >>> Not that anything remotely recent supports tlbia but ... >>> >>>

Re: [Qemu-devel] [PATCH v6 00/11] Add param Error ** for msi_init()

2016-06-01 Thread Cao jin
ping again... because got many feedback " was undeliverable." On 05/24/2016 12:04 PM, Cao jin wrote: v6 changelog: 1. make "assert ENOSPC" the 1st one in the series, and remove ENOSPC line of comments of msi_init(). also fix to other minor comments. 2. Because semantics

Re: [Qemu-devel] [PATCH v7 12/17] net_pkt: Extend packet abstraction as required by e1000e functionality

2016-06-01 Thread Dmitry Fleytman
> On 1 Jun 2016, at 07:25 AM, Jason Wang wrote: > > > > On 2016年05月31日 15:20, Dmitry Fleytman wrote: >> From: Dmitry Fleytman >> >> This patch extends the TX/RX packet abstractions with features that will >> be used by the e1000e

Re: [Qemu-devel] [PATCH] ui: sdl2: Fix crash with -nodefaults -sdl

2016-06-01 Thread Gerd Hoffmann
On Di, 2016-05-31 at 22:49 +0100, Peter Maydell wrote: > On 31 May 2016 at 21:56, Cole Robinson wrote: > > $ ./x86_64-softmmu/qemu-system-x86_64 -nodefaults -sdl > > Segmentation fault (core dumped) > > > > 0 0x559631af in sdl_display_init (ds=, > > full_screen=0,

Re: [Qemu-devel] [PATCH] ui: sdl2: Fix crash with -nodefaults -sdl

2016-06-01 Thread Gerd Hoffmann
On Di, 2016-05-31 at 16:56 -0400, Cole Robinson wrote: > $ ./x86_64-softmmu/qemu-system-x86_64 -nodefaults -sdl > Segmentation fault (core dumped) > > 0 0x559631af in sdl_display_init (ds=, full_screen=0, > no_frame=) at ui/sdl2.c:822 > 1 0x556c8a9a in main (argc=, argv=, >

[Qemu-devel] [PATCH v3] vnc: add configurable keyboard delay

2016-06-01 Thread Gerd Hoffmann
Limits the rate kbd events from the vnc server are forwarded to the guest, so input devices which are typically low-bandwidth can keep up even on bulky input. v2: update documentation too. v3: spell fixes. Signed-off-by: Gerd Hoffmann --- qemu-options.hx | 8

Re: [Qemu-devel] [PATCH 2/2] qapi: Fix memleak in string visitors on int lists

2016-06-01 Thread Markus Armbruster
[I accidentally sent this just to Eric, resending to list...] Eric Blake writes: > Commit 7f8f9ef1 introduced the ability to store a list of > integers as a sorted list of ranges, but when merging ranges, > it leaks one or more ranges. It was also using range_get_last() >

<    1   2   3