Re: [Qemu-devel] [PATCH v2] sysbus: add irq_routing_notifier

2015-04-28 Thread Eric Auger
On 04/28/2015 08:57 AM, Peter Crosthwaite wrote: > On Mon, Apr 27, 2015 at 11:46 PM, Eric Auger wrote: >> Hi Peter, >> >> On 04/27/2015 07:43 PM, Peter Crosthwaite wrote: >>> On Mon, Apr 27, 2015 at 8:01 AM, Paolo Bonzini wrote: On 27/04/2015 16:56, Eric Auger wrote: > Peter, P

Re: [Qemu-devel] [PATCH v5 14/20] hw/acpi/aml-build: Add aml_or() term

2015-04-28 Thread Igor Mammedov
On Wed, 15 Apr 2015 21:25:03 +0800 Shannon Zhao wrote: > From: Shannon Zhao > > Add aml_or() term and expose build_append_int_noprefix > as it wiil be used by creating a buffer. > > Signed-off-by: Shannon Zhao > Signed-off-by: Shannon Zhao > --- > hw/acpi/aml-build.c | 12 ++

Re: [Qemu-devel] [PATCH v3 2/2] virtio-scsi: Move DEFINE_VIRTIO_SCSI_FEATURES to virtio-scsi

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 02:30:17PM +0800, Shannon Zhao wrote: > On 2015/4/28 13:55, Michael S. Tsirkin wrote: > > Pong. > > You responded to Cornelia's comments on patch 1/2 > > with "ok will add". > > I expected v4. > > > > Yeah, but few comments on this patch, so I just want to confirm this > m

Re: [Qemu-devel] [PATCH v5 14/20] hw/acpi/aml-build: Add aml_or() term

2015-04-28 Thread Shannon Zhao
On 2015/4/28 14:56, Igor Mammedov wrote: > On Wed, 15 Apr 2015 21:25:03 +0800 > Shannon Zhao wrote: > >> From: Shannon Zhao >> >> Add aml_or() term and expose build_append_int_noprefix >> as it wiil be used by creating a buffer. >> >> Signed-off-by: Shannon Zhao >> Signed-off-by: Shannon Zhao

Re: [Qemu-devel] [PATCH V7 15/16] virtio-pci: increase the maximum number of virtqueues to 513

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 11:12:10AM +0800, Jason Wang wrote: > > > On Mon, Apr 27, 2015 at 7:02 PM, Michael S. Tsirkin wrote: > >On Thu, Apr 23, 2015 at 02:21:48PM +0800, Jason Wang wrote: > >> This patch increases the maximum number of virtqueues for pci from 64 > >> to 513. This will allow boot

Re: [Qemu-devel] [PATCH qemu v2] qemu-options: Add documentation about PPC64's "-cpu compat" option

2015-04-28 Thread Alexey Kardashevskiy
On 04/10/2015 12:16 PM, David Gibson wrote: On Wed, Apr 08, 2015 at 07:33:21PM +1000, Alexey Kardashevskiy wrote: Since 8dfa3a5e "target-ppc: Add "compat" CPU option" (which was a part of client-architecture-support patchset) there is a "compat" option of "-cpu". However it was not documented at

Re: [Qemu-devel] [PATCH] pci: Clean up error reporting in pci_nic_init()

2015-04-28 Thread Thomas Huth
On Mon, 27 Apr 2015 10:55:41 -0700 Peter Crosthwaite wrote: > On Mon, Apr 27, 2015 at 10:51 AM, Thomas Huth wrote: > > The error reporting in pci_nic_init() is quite erratic: Some errors > > are printed directly with error_report(), and some are passed back > > to the (only) caller pci_nic_init_

Re: [Qemu-devel] [PATCH v5 00/20] Generate ACPI v5.1 tables and expose them to guest over fw_cfg on ARM

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 02:13:29PM +0800, Shannon Zhao wrote: > On 2015/4/28 13:20, Michael S. Tsirkin wrote: > > On Tue, Apr 28, 2015 at 10:49:42AM +0800, Shannon Zhao wrote: > >> On 2015/4/15 21:24, Shannon Zhao wrote: > >>> From: Shannon Zhao > >>> > >>> This patch series generate seven ACPI ta

Re: [Qemu-devel] [PATCH v3 2/2] virtio-scsi: Move DEFINE_VIRTIO_SCSI_FEATURES to virtio-scsi

2015-04-28 Thread Shannon Zhao
On 2015/4/28 15:15, Michael S. Tsirkin wrote: > On Tue, Apr 28, 2015 at 02:30:17PM +0800, Shannon Zhao wrote: >> On 2015/4/28 13:55, Michael S. Tsirkin wrote: >>> Pong. >>> You responded to Cornelia's comments on patch 1/2 >>> with "ok will add". >>> I expected v4. >>> >> >> Yeah, but few comments

Re: [Qemu-devel] [PATCH V7 08/16] virtio: introduce bus specific queue limit

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 02:13:20PM +0800, Jason Wang wrote: > > > On Tue, Apr 28, 2015 at 1:13 PM, Michael S. Tsirkin wrote: > >On Tue, Apr 28, 2015 at 11:14:04AM +0800, Jason Wang wrote: > >> On Mon, Apr 27, 2015 at 7:05 PM, Michael S. Tsirkin > >> wrote: > >> >On Thu, Apr 23, 2015 at 02:21

Re: [Qemu-devel] [PATCH V6 for-2.3 09/26] hw/pci: move pci bus related code to separate files

2015-04-28 Thread Markus Armbruster
Paolo Bonzini writes: > On 27/04/2015 13:14, Michael S. Tsirkin wrote: >>> + * >>> > + * This work is licensed under the terms of the GNU GPL, version >>> > 2 or later. >>> > + * See the COPYING file in the top-level directory. >> The file you are moving this from is GPL only. > > It's BSD. > >>

Re: [Qemu-devel] [PATCH v2] sysbus: add irq_routing_notifier

2015-04-28 Thread Peter Crosthwaite
On Mon, Apr 27, 2015 at 11:46 PM, Eric Auger wrote: > Hi Peter, > > On 04/27/2015 07:43 PM, Peter Crosthwaite wrote: >> On Mon, Apr 27, 2015 at 8:01 AM, Paolo Bonzini wrote: >>> >>> >>> On 27/04/2015 16:56, Eric Auger wrote: Peter, Paolo, After your feedbacks, I feel I need to spen

Re: [Qemu-devel] [PATCH v8 07/16] spapr_rtas: add ibm, configure-connector RTAS interface

2015-04-28 Thread David Gibson
On Wed, Apr 22, 2015 at 01:28:11AM -0500, Michael Roth wrote: > This interface is used to fetch an OF device-tree nodes that describes a > newly-attached device to guest. It is called multiple times to walk the > device-tree node and fetch individual properties into a 'workarea'/buffer > provided b

Re: [Qemu-devel] [PATCH v8 12/16] spapr_pci: add dynamic-reconfiguration option for spapr-pci-host-bridge

2015-04-28 Thread David Gibson
On Wed, Apr 22, 2015 at 01:28:16AM -0500, Michael Roth wrote: > This option enables/disables PCI hotplug for a particular PHB. > > Also add machine compatibility code to disable it by default for machine > types prior to pseries-2.4. > > Signed-off-by: Michael Roth > Reviewed-by: David Gibson >

Re: [Qemu-devel] [PATCH v8 11/16] spapr: add pseries-2.4 machine type

2015-04-28 Thread David Gibson
On Wed, Apr 22, 2015 at 01:28:15AM -0500, Michael Roth wrote: > Initially this is identifical to pseries-2.3. Subsequent patches will > use it to mask new 2.4 features by default. > > Signed-off-by: Michael Roth So, I've seen slightly different patches to add pseries-2.4 machine type in at least

Re: [Qemu-devel] [PATCH v8 14/16] pci: make pci_bar useable outside pci.c

2015-04-28 Thread David Gibson
On Wed, Apr 22, 2015 at 01:28:18AM -0500, Michael Roth wrote: > We need to work with PCI BARs to generate OF properties > during PCI hotplug for sPAPR guests. > > Signed-off-by: Michael Roth > Reviewed-by: David Gibson > Cc: m...@redhat.com Michael Tsirkin, Interested to see your comment on th

[Qemu-devel] [PATCH 08/27] block/parallels: mark parallels format driver as zero inited

2015-04-28 Thread Denis V. Lunev
>From the guest point of view unallocated blocks are zeroed. Signed-off-by: Denis V. Lunev CC: Roman Kagan CC: Kevin Wolf CC: Stefan Hajnoczi --- block/parallels.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/parallels.c b/block/parallels.c index 138e618..ae64ce5 100644 --- a/blo

[Qemu-devel] [PATCH v4 0/27] write/create for Parallels images with reasonable performance

2015-04-28 Thread Denis V. Lunev
This patchset provides an ability to create of/write to Parallels images and some testing of the new code. Readings and writings are optimized out and I expect the same or slightly better performance as qcow2. Changes from v4: - parallels format driver marked as bdrv_has_zero_init_1 - added missed

[Qemu-devel] [PATCH 05/27] block/parallels: add get_block_status

2015-04-28 Thread Denis V. Lunev
From: Roman Kagan Implement VFS method for get_block_status to Parallels format driver. qemu_co_mutex_lock is not necessary yet (the driver is read-only) but will be necessary very soon when write will be supported. Signed-off-by: Roman Kagan Reviewed-by: Denis V. Lunev Signed-off-by: Denis V

[Qemu-devel] [PATCH 02/27] block/parallels: rename parallels_header to ParallelsHeader

2015-04-28 Thread Denis V. Lunev
this follows QEMU coding convention Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan Reviewed-by: Stefan Hajnoczi CC: Kevin Wolf --- block/parallels.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/block/parallels.c b/block/parallels.c index 4f9cd8d..dca0df6

[Qemu-devel] [PATCH 07/27] block/parallels: replace magic constants 4, 64 with proper sizeofs

2015-04-28 Thread Denis V. Lunev
simple purification.. Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan Reviewed-by: Stefan Hajnoczi CC: Kevin Wolf --- block/parallels.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/block/parallels.c b/block/parallels.c index f3ffece..138e618 100644 --- a/

[Qemu-devel] [PATCH 01/27] iotests, parallels: quote TEST_IMG in 076 test to be path-safe

2015-04-28 Thread Denis V. Lunev
suggested by Jeff Cody Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan Reviewed-by: Stefan Hajnoczi CC: Kevin Wolf --- tests/qemu-iotests/076 | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/qemu-iotests/076 b/tests/qemu-iotests/076 index ed2be35..01

[Qemu-devel] [PATCH 16/27] block/parallels: keep BAT bitmap data in little endian in memory

2015-04-28 Thread Denis V. Lunev
This will allow to use this data as buffer to BAT update directly without any intermediate buffers. Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan Reviewed-by: Stefan Hajnoczi CC: Kevin Wolf --- block/parallels.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-)

[Qemu-devel] [PATCH 03/27] block/parallels: switch to bdrv_read

2015-04-28 Thread Denis V. Lunev
From: Roman Kagan Switch the .bdrv_read method implementation from using bdrv_pread() to bdrv_read() on the underlying file, since the latter is subject to i/o throttling while the former is not. Besides, since bdrv_read() operates in sectors rather than bytes, adjust the helper functions to do

[Qemu-devel] [PATCH 22/27] block/parallels: improve image reading performance

2015-04-28 Thread Denis V. Lunev
Try to perform IO for the biggest continuous block possible. The performance for sequential read is increased from 220 Mb/sec to 360 Mb/sec for continous image on my SSD HDD. Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan Reviewed-by: Stefan Hajnoczi CC: Kevin Wolf --- block/parallels

[Qemu-devel] [PATCH 13/27] parallels: change copyright information in the image header

2015-04-28 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan Reviewed-by: Stefan Hajnoczi CC: Kevin Wolf --- block/parallels.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/block/parallels.c b/block/parallels.c index 15f6cb3..f615f44 100644 --- a/block/parallels.c +++ b/bl

[Qemu-devel] [PATCH 09/27] block/parallels: _co_writev callback for Parallels format

2015-04-28 Thread Denis V. Lunev
Support write on Parallels images. The code is almost the same as one in the previous patch implemented scatter-gather IO for read. Signed-off-by: Denis V. Lunev CC: Roman Kagan CC: Kevin Wolf CC: Stefan Hajnoczi --- block/parallels.c | 90 +

[Qemu-devel] [PATCH 06/27] block/parallels: provide _co_readv routine for parallels format driver

2015-04-28 Thread Denis V. Lunev
Main approach is taken from qcow2_co_readv. The patch drops coroutine lock for the duration of IO operation and peforms normal scatter-gather IO using standard QEMU backend. The patch also adds comment about locking considerations in the driver. Signed-off-by: Denis V. Lunev CC: Roman Kagan CC

[Qemu-devel] [PATCH 25/27] block/parallels: add prealloc-mode and prealloc-size open paramemets

2015-04-28 Thread Denis V. Lunev
This is preparational commit for tweaks in Parallels image expansion. The idea is that enlarge via truncate by one data block is slow. It would be much better to use fallocate via bdrv_write_zeroes and expand by some significant amount at once. Original idea with sequential file writing to the end

[Qemu-devel] [PATCH 04/27] block/parallels: read up to cluster end in one go

2015-04-28 Thread Denis V. Lunev
From: Roman Kagan Teach parallels_read() to do reads in coarser granularity than just a single sector: if requested, read up to the cluster end in one go. Signed-off-by: Roman Kagan Reviewed-by: Denis V. Lunev Signed-off-by: Denis V. Lunev Reviewed-by: Stefan Hajnoczi CC: Kevin Wolf --- bl

[Qemu-devel] [PATCH 11/27] block/parallels: support parallels image creation

2015-04-28 Thread Denis V. Lunev
Do not even care to create WithoutFreeSpace image, it is obsolete. Always create WithouFreSpacExt one. The code also does not spend a lot of efforts to fill cylinders and heads fields, they are not used actually in a real life neither in QEMU nor in Parallels products. Signed-off-by: Denis V. Lun

[Qemu-devel] [PATCH 14/27] block/parallels: rename catalog_ names to bat_

2015-04-28 Thread Denis V. Lunev
BAT means 'block allocation table'. Thus this name is clean and shorter on writing. Some obvious formatting fixes in the old code were made to make checkpatch happy. Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan Reviewed-by: Stefan Hajnoczi CC: Kevin Wolf --- block/parallels.c | 58

[Qemu-devel] [PATCH 19/27] block/parallels: implement parallels_check method of block driver

2015-04-28 Thread Denis V. Lunev
The check is very simple at the moment. It calculates necessary stats and fix only the following errors: - space leak at the end of the image. This would happens due to preallocation - clusters outside the image are zeroed. Nothing else could be done here Signed-off-by: Denis V. Lunev Reviewed-

[Qemu-devel] [PATCH 12/27] iotests, parallels: test for newly created parallels image via qemu-img

2015-04-28 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan Reviewed-by: Stefan Hajnoczi CC: Kevin Wolf --- tests/qemu-iotests/131 | 68 ++ tests/qemu-iotests/131.out | 24 tests/qemu-iotests/group | 1 + 3 files changed, 93 insert

[Qemu-devel] [PATCH 27/27] block/parallels: improve image writing performance further

2015-04-28 Thread Denis V. Lunev
Try to perform IO for the biggest continuous block possible. All blocks abscent in the image are accounted in the same type and preallocation is made for all of them at once. The performance for sequential write is increased from 200 Mb/sec to 235 Mb/sec on my SSD HDD. Signed-off-by: Denis V. Lun

[Qemu-devel] [PATCH 15/27] block/parallels: create bat2sect helper

2015-04-28 Thread Denis V. Lunev
deduplicate copy/paste arithmetcs Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan Reviewed-by: Stefan Hajnoczi CC: Kevin Wolf --- block/parallels.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/block/parallels.c b/block/parallels.c index 16fbdf4..1540

[Qemu-devel] [PATCH 10/27] iotests, parallels: test for write into Parallels image

2015-04-28 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan Reviewed-by: Stefan Hajnoczi CC: Kevin Wolf --- tests/qemu-iotests/076 | 5 + tests/qemu-iotests/076.out | 10 ++ 2 files changed, 15 insertions(+) diff --git a/tests/qemu-iotests/076 b/tests/qemu-iotests/076 index 013997

[Qemu-devel] [PATCH 23/27] block/parallels: create bat_entry_off helper

2015-04-28 Thread Denis V. Lunev
calculate offset of the BAT entry in the image file. Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan Reviewed-by: Stefan Hajnoczi CC: Kevin Wolf --- block/parallels.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/block/parallels.c b/block/parallels

Re: [Qemu-devel] [PATCH v5 13/20] hw/acpi/aml-build: Add ToUUID macro

2015-04-28 Thread Shannon Zhao
On 2015/4/28 14:54, Igor Mammedov wrote: > On Wed, 15 Apr 2015 21:25:02 +0800 > Shannon Zhao wrote: > >> From: Shannon Zhao >> >> Add ToUUID macro, this is useful for generating PCIe ACPI table. >> >> Signed-off-by: Shannon Zhao >> Signed-off-by: Shannon Zhao >> --- >> hw/acpi/aml-build.c

[Qemu-devel] [PATCH 20/27] block/parallels: implement incorrect close detection

2015-04-28 Thread Denis V. Lunev
The software driver must set inuse field in Parallels header to 0x746F6E59 when the image is opened in read-write mode. The presence of this magic in the header on open forces image consistency check. There is an unfortunate trick here. We can not check for inuse in parallels_check as this will ha

[Qemu-devel] [PATCH 17/27] block/parallels: read parallels image header and BAT into single buffer

2015-04-28 Thread Denis V. Lunev
This metadata cache would allow to properly batch BAT updates to disk in next patches. These updates will be properly aligned to avoid read-modify-write transactions on block level. Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan Reviewed-by: Stefan Hajnoczi CC: Kevin Wolf --- block/pa

[Qemu-devel] [PATCH 21/27] iotests, parallels: check for incorrectly closed image in tests

2015-04-28 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan Reviewed-by: Stefan Hajnoczi CC: Kevin Wolf --- tests/qemu-iotests/131 | 9 + tests/qemu-iotests/131.out | 17 + 2 files changed, 26 insertions(+) diff --git a/tests/qemu-iotests/131 b/tests/qemu-iotests/131 i

[Qemu-devel] [PATCH 18/27] block/parallels: move parallels_open/probe to the very end of the file

2015-04-28 Thread Denis V. Lunev
This will help to avoid forward declarations for upcoming parallels_check Some very obvious formatting fixes were made to the moved code to make checkpatch happy. Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan Reviewed-by: Stefan Hajnoczi CC: Kevin Wolf --- block/parallels.c | 191 ++

[Qemu-devel] [PATCH 24/27] block/parallels: delay writing to BAT till bdrv_co_flush_to_os

2015-04-28 Thread Denis V. Lunev
The idea is that we do not need to immediately sync BAT to the image as from the guest point of view there is a possibility that IO is lost even in the physical controller until flush command was finished. bdrv_co_flush_to_os is exactly the right place for this purpose. Technically the patch uses

[Qemu-devel] [PATCH 26/27] block/parallels: optimize linear image expansion

2015-04-28 Thread Denis V. Lunev
Plain image expansion spends a lot of time to update image file size. This seriously affects the performance. The following simple test qemu_img create -f parallels -o cluster_size=64k ./1.hds 64G qemu_io -n -c "write -P 0x11 0 1024M" ./1.hds could be improved if the format driver will pre-allo

[Qemu-devel] [PATCH] xhci: set timer to retry xfers

2015-04-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-xhci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index ba15ae0..2af3dd6 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -2224,6 +2224,8 @@ static void xhci_kick_ep(XHCIState *xhci, unsigned int

Re: [Qemu-devel] [PATCH V7 08/16] virtio: introduce bus specific queue limit

2015-04-28 Thread Cornelia Huck
On Tue, 28 Apr 2015 09:14:07 +0200 "Michael S. Tsirkin" wrote: > On Tue, Apr 28, 2015 at 02:13:20PM +0800, Jason Wang wrote: > > > > > > On Tue, Apr 28, 2015 at 1:13 PM, Michael S. Tsirkin wrote: > > >On Tue, Apr 28, 2015 at 11:14:04AM +0800, Jason Wang wrote: > > >> On Mon, Apr 27, 2015 a

Re: [Qemu-devel] [PATCH v5 13/20] hw/acpi/aml-build: Add ToUUID macro

2015-04-28 Thread Shannon Zhao
On 2015/4/28 14:54, Igor Mammedov wrote: > btw: > whole thing might be simpler if an intermediate conversion is avoided, > just pack buffer as in spec byte by byte: > > /* format: aabbccdd-eeff-gghh-iijj-kkllmmnnoopp */ > assert(strlen(uuid) == ...); > build_append_byte(var->buf, HEX2BYTE(uuid[3])

Re: [Qemu-devel] [PATCH v2 4/7] vmport_rpc: Add QMP access to vmport_rpc object.

2015-04-28 Thread Paolo Bonzini
On 28/04/2015 00:46, Don Slutz wrote: > This adds one new inject command: > > inject-vmport-action > > And three guest info commands: > > vmport-guestinfo-set > vmport-guestinfo-get > query-vmport-guestinfo > > More details in qmp-commands.hx > > Signed-off-by: Don Slutz > --- > hw/misc/vm

Re: [Qemu-devel] [PATCH v5 13/20] hw/acpi/aml-build: Add ToUUID macro

2015-04-28 Thread Igor Mammedov
On Tue, 28 Apr 2015 15:46:22 +0800 Shannon Zhao wrote: > On 2015/4/28 14:54, Igor Mammedov wrote: > > On Wed, 15 Apr 2015 21:25:02 +0800 > > Shannon Zhao wrote: > > > >> From: Shannon Zhao > >> > >> Add ToUUID macro, this is useful for generating PCIe ACPI table. > >> > >> Signed-off-by: Shann

Re: [Qemu-devel] [PATCH V7 08/16] virtio: introduce bus specific queue limit

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 10:04:15AM +0200, Cornelia Huck wrote: > On Tue, 28 Apr 2015 09:14:07 +0200 > "Michael S. Tsirkin" wrote: > > > On Tue, Apr 28, 2015 at 02:13:20PM +0800, Jason Wang wrote: > > > > > > > > > On Tue, Apr 28, 2015 at 1:13 PM, Michael S. Tsirkin > > > wrote: > > > >On Tue,

Re: [Qemu-devel] [RFC 00/10] MultiThread TCG.

2015-04-28 Thread Frederic Konrad
Hi Emilio, On 27/04/2015 19:06, Emilio G. Cota wrote: Hi Fred, On Wed, Apr 22, 2015 at 14:26:14 +0200, Frederic Konrad wrote: git clone g...@git.greensocs.com:fkonrad/mttcg.git -b multi_tcg_v4 I've tried to run buildroot's vexpress-a9 with this, but unfortunately it gets stuck before showing

Re: [Qemu-devel] [PATCH v3 2/2] virtio-scsi: Move DEFINE_VIRTIO_SCSI_FEATURES to virtio-scsi

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 03:28:51PM +0800, Shannon Zhao wrote: > On 2015/4/28 15:15, Michael S. Tsirkin wrote: > > On Tue, Apr 28, 2015 at 02:30:17PM +0800, Shannon Zhao wrote: > >> On 2015/4/28 13:55, Michael S. Tsirkin wrote: > >>> Pong. > >>> You responded to Cornelia's comments on patch 1/2 > >>

Re: [Qemu-devel] [PATCH RFC v7 7/7] qemu-iotests-s390x-fix-test-130

2015-04-28 Thread Kevin Wolf
Am 28.04.2015 um 04:59 hat tu bo geschrieben: > Hi Kevin: > > On 04/27/2015 07:34 PM, Kevin Wolf wrote: > > Am 27.04.2015 um 13:24 hat Max Reitz geschrieben: > > On 27.04.2015 09:15, tu bo wrote: > > Hi Max: > > On 04/24/2015 01:07 AM, Max Reitz wrote: > >

[Qemu-devel] [PATCH v3] acpi: add acpi_send_gpe_event() to rise sci for hotplug

2015-04-28 Thread Zhu Guihua
Add a new API named acpi_send_gpe_event() to send hotplug SCI. This API can be used by pci, cpu and memory hotplug. This patch is rebased on pci branch in mst's tree. git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git Signed-off-by: Zhu Guihua --- v3: -rebase on pci branch in mst's tree -use t

Re: [Qemu-devel] [PATCH V6 for-2.3 09/26] hw/pci: move pci bus related code to separate files

2015-04-28 Thread Marcel Apfelbaum
On 04/28/2015 10:31 AM, Markus Armbruster wrote: Paolo Bonzini writes: On 27/04/2015 13:14, Michael S. Tsirkin wrote: + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. The file you are moving this from is G

Re: [Qemu-devel] [PATCH v6 15/36] qapi: Document new 'alternate' meta-type

2015-04-28 Thread Markus Armbruster
Eric Blake writes: > The next patch will quit special-casing "'union':'Foo', > 'discriminator':{}" and instead use "'alternate':'Foo'". > > Separating docs from implementation makes it easier to focus > on wording without holding up code. In particular, making > alternate a separate type makes f

Re: [Qemu-devel] [PATCH V6 for-2.3 09/26] hw/pci: move pci bus related code to separate files

2015-04-28 Thread Marcel Apfelbaum
On 04/28/2015 11:30 AM, Michael S. Tsirkin wrote: On Mon, Apr 27, 2015 at 03:26:44PM +0300, Marcel Apfelbaum wrote: On 04/27/2015 02:14 PM, Michael S. Tsirkin wrote: On Thu, Mar 19, 2015 at 08:52:44PM +0200, Marcel Apfelbaum wrote: @@ -2414,7 +1945,6 @@ static const TypeInfo pci_device_type_in

Re: [Qemu-devel] [PATCH V6 for-2.3 09/26] hw/pci: move pci bus related code to separate files

2015-04-28 Thread Michael S. Tsirkin
On Mon, Apr 27, 2015 at 03:26:44PM +0300, Marcel Apfelbaum wrote: > On 04/27/2015 02:14 PM, Michael S. Tsirkin wrote: > >On Thu, Mar 19, 2015 at 08:52:44PM +0200, Marcel Apfelbaum wrote: > >>@@ -2414,7 +1945,6 @@ static const TypeInfo pci_device_type_info = { > >> > >> static void pci_register_typ

Re: [Qemu-devel] [PATCH v3] acpi: add acpi_send_gpe_event() to rise sci for hotplug

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 04:24:02PM +0800, Zhu Guihua wrote: > Add a new API named acpi_send_gpe_event() to send hotplug SCI. > This API can be used by pci, cpu and memory hotplug. > > This patch is rebased on pci branch in mst's tree. > git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git > > Signe

Re: [Qemu-devel] [PATCH V6 for-2.3 12/26] hw/pci: introduce TYPE_PCI_MAIN_HOST_BRIDGE interface

2015-04-28 Thread Marcel Apfelbaum
On 04/27/2015 11:54 PM, Michael S. Tsirkin wrote: On Mon, Apr 27, 2015 at 04:04:38PM +0300, Marcel Apfelbaum wrote: On 04/27/2015 03:48 PM, Michael S. Tsirkin wrote: On Mon, Apr 27, 2015 at 03:30:01PM +0300, Marcel Apfelbaum wrote: On 04/27/2015 02:24 PM, Michael S. Tsirkin wrote: On Thu, Mar

Re: [Qemu-devel] [PATCH v8 14/16] pci: make pci_bar useable outside pci.c

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 05:31:03PM +1000, David Gibson wrote: > On Wed, Apr 22, 2015 at 01:28:18AM -0500, Michael Roth wrote: > > We need to work with PCI BARs to generate OF properties > > during PCI hotplug for sPAPR guests. > > > > Signed-off-by: Michael Roth > > Reviewed-by: David Gibson > >

Re: [Qemu-devel] [PATCH V6 for-2.3 13/26] hw/pci-host: introduce TYPE_PCI_HOST_BRIDGE_SNOOPED interface

2015-04-28 Thread Marcel Apfelbaum
On 04/27/2015 05:45 PM, Michael S. Tsirkin wrote: On Mon, Apr 27, 2015 at 04:01:16PM +0300, Marcel Apfelbaum wrote: On 04/27/2015 03:14 PM, Michael S. Tsirkin wrote: On Thu, Mar 19, 2015 at 08:52:48PM +0200, Marcel Apfelbaum wrote: TYPE_PCI_HOST_BRIDGE_SNOOPED is a special case of host bridge

Re: [Qemu-devel] [PATCH] pci: Clean up error reporting in pci_nic_init()

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 09:26:47AM +0200, Thomas Huth wrote: > On Mon, 27 Apr 2015 10:55:41 -0700 > Peter Crosthwaite wrote: > > > On Mon, Apr 27, 2015 at 10:51 AM, Thomas Huth wrote: > > > The error reporting in pci_nic_init() is quite erratic: Some errors > > > are printed directly with error_

Re: [Qemu-devel] [PATCH v5 19/20] hw/arm/virt-acpi-build: Add PCIe controller in ACPI DSDT table

2015-04-28 Thread Igor Mammedov
On Wed, 15 Apr 2015 21:25:08 +0800 Shannon Zhao wrote: > From: Shannon Zhao > > Add PCIe controller in ACPI DSDT table, so the guest can detect > the PCIe. > > Signed-off-by: Shannon Zhao > Signed-off-by: Shannon Zhao > --- > hw/arm/virt-acpi-build.c | 152 > +++

Re: [Qemu-devel] [PATCH v6 16/36] qapi: Use 'alternate' to replace anonymous union

2015-04-28 Thread Markus Armbruster
Eric Blake writes: > Previous patches have led up to the point where I create the > new meta-type "'alternate':'Foo'". See the previous patches > for documentation; I intentionally split as much work into > earlier patches to minimize the size of this patch, but a lot > of it is churn due to tes

Re: [Qemu-devel] [PATCH V6 for-2.3 13/26] hw/pci-host: introduce TYPE_PCI_HOST_BRIDGE_SNOOPED interface

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 11:39:42AM +0300, Marcel Apfelbaum wrote: > On 04/27/2015 05:45 PM, Michael S. Tsirkin wrote: > >On Mon, Apr 27, 2015 at 04:01:16PM +0300, Marcel Apfelbaum wrote: > >>On 04/27/2015 03:14 PM, Michael S. Tsirkin wrote: > >>>On Thu, Mar 19, 2015 at 08:52:48PM +0200, Marcel Apfe

Re: [Qemu-devel] [PATCH v5 19/20] hw/arm/virt-acpi-build: Add PCIe controller in ACPI DSDT table

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 10:42:25AM +0200, Igor Mammedov wrote: > On Wed, 15 Apr 2015 21:25:08 +0800 > Shannon Zhao wrote: > > > From: Shannon Zhao > > > > Add PCIe controller in ACPI DSDT table, so the guest can detect > > the PCIe. > > > > Signed-off-by: Shannon Zhao > > Signed-off-by: Shann

Re: [Qemu-devel] [PATCH v2] sysbus: add irq_routing_notifier

2015-04-28 Thread Paolo Bonzini
On 27/04/2015 19:43, Peter Crosthwaite wrote: > To reduce verbosity, I suggest making object_set_link_property() a > visible API, then RYO link setters can call it surrounded by custom > behavior e.g: > > foo_object_set_bar_property(...) > { > pre_set_link_side_effects(); > object_set_li

Re: [Qemu-devel] [PATCH v3] acpi: add acpi_send_gpe_event() to rise sci for hotplug

2015-04-28 Thread Zhu Guihua
On 04/28/2015 04:52 PM, Igor Mammedov wrote: On Tue, 28 Apr 2015 16:24:02 +0800 Zhu Guihua wrote: Add a new API named acpi_send_gpe_event() to send hotplug SCI. This API can be used by pci, cpu and memory hotplug. This patch is rebased on pci branch in mst's tree. git://git.kernel.org/pub/sc

Re: [Qemu-devel] [RFC 00/10] MultiThread TCG.

2015-04-28 Thread Paolo Bonzini
On 27/04/2015 19:06, Emilio G. Cota wrote: > Note that I'm running with -smp 1. My guess is that the iothread > is starved, since patch 472f4003 "Drop global lock during TCG code execution" > removes from the iothread the ability to kick CPU threads. In theory that shouldn't be necessary anymore

[Qemu-devel] [PATCH 0/3] trivial patches

2015-04-28 Thread arei.gonglei
From: Gonglei These trivial patches are collected by me during qemu 2.3 hard-freeze time, which spoted by coverity. Please ack or review if possible, thanks. Gonglei (3): target-mips: fix memory leak xhci: remove unused code vhost-user: remove superfluous '\n' around error_report() hw/m

[Qemu-devel] [PATCH 3/3] vhost-user: remove superfluous '\n' around error_report()

2015-04-28 Thread arei.gonglei
From: Gonglei Signed-off-by: Gonglei --- hw/virtio/vhost-user.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c index aefe0bb..e7ab829 100644 --- a/hw/virtio/vhost-user.c +++ b/hw/virtio/vhost-user.c @@

[Qemu-devel] [PATCH 2/3] xhci: remove unused code

2015-04-28 Thread arei.gonglei
From: Gonglei Value from xfer->packet.ep is assigned to ep here, but that stored value is not used before it is overwritten. Remove it. Cc: Gerd Hoffmann Signed-off-by: Gonglei --- hw/usb/hcd-xhci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index

[Qemu-devel] [PATCH 1/3] target-mips: fix memory leak

2015-04-28 Thread arei.gonglei
From: Gonglei Coveristy reports that variable prom_buf/params_buf going out of scope leaks the storage it points to. Cc: Aurelien Jarno Cc: Leon Alrae Signed-off-by: Gonglei --- hw/mips/mips_fulong2e.c | 1 + hw/mips/mips_malta.c| 1 + hw/mips/mips_r4k.c | 1 + 3 files changed, 3 in

Re: [Qemu-devel] [PATCH v5 19/20] hw/arm/virt-acpi-build: Add PCIe controller in ACPI DSDT table

2015-04-28 Thread Shannon Zhao
On 2015/4/28 16:47, Michael S. Tsirkin wrote: > On Tue, Apr 28, 2015 at 10:42:25AM +0200, Igor Mammedov wrote: >> On Wed, 15 Apr 2015 21:25:08 +0800 >> Shannon Zhao wrote: >> >>> From: Shannon Zhao >>> >>> Add PCIe controller in ACPI DSDT table, so the guest can detect >>> the PCIe. >>> >>> Signe

Re: [Qemu-devel] [PATCH v5 13/20] hw/acpi/aml-build: Add ToUUID macro

2015-04-28 Thread Shannon Zhao
On 2015/4/28 16:15, Igor Mammedov wrote: >>> btw: >>> > > whole thing might be simpler if an intermediate conversion is avoided, >>> > > just pack buffer as in spec byte by byte: >>> > > >>> > > /* format: aabbccdd-eeff-gghh-iijj-kkllmmnnoopp */ >>> > > assert(strlen(uuid) == ...); >>> > > build_a

[Qemu-devel] [PATCH 1/3] qdev: pass the check callback to qdev_init_gpio_out_named

2015-04-28 Thread Eric Auger
qdev_init_gpio_out_named takes a new argument corresponding to the check callback passed to object_property_add_link. In qdev_init_gpio_out this callback is set to the dummy object_property_allow_set_link. This will allow qdev_init_gpio_out_named callers to specialize this callback, typically sysb

[Qemu-devel] [PATCH 0/3] Extend check callback usability for irq connect notifier

2015-04-28 Thread Eric Auger
The VFIO platform device gets connected to the platform bus on a machine init done notifier. Only at that point irqfd can be setup. An irq connect notifier would be helpful to do that job. Instead of adding a new callback at sysbus or qdev level, this series proposes to use the property check() cal

[Qemu-devel] [PATCH 3/3] sysbus: add irq_set_hook

2015-04-28 Thread Eric Auger
Add a new callback in the SysBusDeviceClass. This callback now can be overriden by devices inheriting from sysbus. By default the callback is set to the dummy object_property_allow_set_link callback. Signed-off-by: Eric Auger --- hw/core/sysbus.c| 8 +++- include/hw/sysbus.h | 1 + 2 fil

[Qemu-devel] [PATCH 2/3] qdev: check callback takes Object **target as third argument

2015-04-28 Thread Eric Auger
Check callback now takes as third argument an Object **. In object_set_link_property, we pass the property child as argument. We also assign the *child before the check call so that enhanced check can be performed in the callback. In case the check fails, the old value is restored and ref count is

Re: [Qemu-devel] [PATCH v3] acpi: add acpi_send_gpe_event() to rise sci for hotplug

2015-04-28 Thread Igor Mammedov
On Tue, 28 Apr 2015 16:24:02 +0800 Zhu Guihua wrote: > Add a new API named acpi_send_gpe_event() to send hotplug SCI. > This API can be used by pci, cpu and memory hotplug. > > This patch is rebased on pci branch in mst's tree. > git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git > > Signed-off

Re: [Qemu-devel] [PATCH v3 2/2] virtio-scsi: Move DEFINE_VIRTIO_SCSI_FEATURES to virtio-scsi

2015-04-28 Thread Peter Maydell
On 28 April 2015 at 09:18, Michael S. Tsirkin wrote: > On Tue, Apr 28, 2015 at 03:28:51PM +0800, Shannon Zhao wrote: >> On 2015/4/28 15:15, Michael S. Tsirkin wrote: >> > My question would be, why just net and scsi? >> > Does not the same apply to all devices? >> > >> >> The virtio-blk has been ch

Re: [Qemu-devel] [PULL 0/5] spice patch queue.

2015-04-28 Thread Peter Maydell
On 27 April 2015 at 12:07, Gerd Hoffmann wrote: > Hi, > > Here is the spice patch queue, carrying a bunch of minor > patches piled up during the freeze. > > My spice patch queue is empty now, if I happened to have > missed anything please resend. > > please pull, > Gerd > > The following chang

Re: [Qemu-devel] [PATCH v2] microblaze: fix memory leak

2015-04-28 Thread Gonglei
On 2015/3/30 1:09, Michael Tokarev wrote: > 28.03.2015 10:46, Gonglei wrote: > [] >>> Can this go through -trivial? >>> >> It's ok, but I don't know if -trivial branch maintainer has a plan to send a >> pull request >> for rc2. > > I do have plan to send a pull request, but this thing is ugly. T

[Qemu-devel] [PATCH v4] acpi: add acpi_send_gpe_event() to rise sci for hotplug

2015-04-28 Thread Zhu Guihua
Add a new API named acpi_send_gpe_event() to send hotplug SCI. This API can be used by pci, cpu and memory hotplug. This patch is rebased on pci branch in mst's tree. git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git Signed-off-by: Zhu Guihua --- v4: -rename struct AcpiHotplugStatus to AcpiGP

Re: [Qemu-devel] [PATCH v5 13/20] hw/acpi/aml-build: Add ToUUID macro

2015-04-28 Thread Igor Mammedov
On Tue, 28 Apr 2015 16:52:19 +0800 Shannon Zhao wrote: > On 2015/4/28 16:15, Igor Mammedov wrote: > >>> btw: > >>> > > whole thing might be simpler if an intermediate conversion is avoided, > >>> > > just pack buffer as in spec byte by byte: > >>> > > > >>> > > /* format: aabbccdd-eeff-gghh-iijj

Re: [Qemu-devel] [PATCH V2] vhost: logs sharing

2015-04-28 Thread Michael S. Tsirkin
On Fri, Apr 10, 2015 at 05:33:35PM +0800, Jason Wang wrote: > Currently we allocate one vhost log per vhost device. This is sub > optimal when: > > - Guest has several device with vhost as backend > - Guest has multiqueue devices > > In the above cases, we can avoid the memory allocation by shari

Re: [Qemu-devel] [PATCH v2] Strip brackets from vnc host

2015-04-28 Thread Gerd Hoffmann
On Mo, 2015-04-27 at 17:03 +0200, Ján Tomko wrote: > Commit v2.2.0-1530-ge556032 vnc: switch to inet_listen_opts > bypassed the use of inet_parse in inet_listen, making literal > IPv6 addresses enclosed in brackets fail: > > qemu-kvm: -vnc [::1]:0: Failed to start VNC server on `(null)': > address

Re: [Qemu-devel] [PATCH v5 13/20] hw/acpi/aml-build: Add ToUUID macro

2015-04-28 Thread Shannon Zhao
On 2015/4/28 17:35, Igor Mammedov wrote: > On Tue, 28 Apr 2015 16:52:19 +0800 > Shannon Zhao wrote: > >> On 2015/4/28 16:15, Igor Mammedov wrote: > btw: >>> whole thing might be simpler if an intermediate conversion is avoided, >>> just pack buffer as in spec byte by byte: >>> >>>

Re: [Qemu-devel] [PATCH 06/27] block/parallels: provide _co_readv routine for parallels format driver

2015-04-28 Thread Roman Kagan
On Tue, Apr 28, 2015 at 10:46:39AM +0300, Denis V. Lunev wrote: > Main approach is taken from qcow2_co_readv. > > The patch drops coroutine lock for the duration of IO operation and > peforms normal scatter-gather IO using standard QEMU backend. > > The patch also adds comment about locking consi

Re: [Qemu-devel] [PATCH 08/27] block/parallels: mark parallels format driver as zero inited

2015-04-28 Thread Roman Kagan
On Tue, Apr 28, 2015 at 10:46:41AM +0300, Denis V. Lunev wrote: > From the guest point of view unallocated blocks are zeroed. > > Signed-off-by: Denis V. Lunev > CC: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > block/parallels.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-

Re: [Qemu-devel] [PATCH v5 19/20] hw/arm/virt-acpi-build: Add PCIe controller in ACPI DSDT table

2015-04-28 Thread Igor Mammedov
On Tue, 28 Apr 2015 17:06:00 +0800 Shannon Zhao wrote: > On 2015/4/28 16:47, Michael S. Tsirkin wrote: > > On Tue, Apr 28, 2015 at 10:42:25AM +0200, Igor Mammedov wrote: > >> On Wed, 15 Apr 2015 21:25:08 +0800 > >> Shannon Zhao wrote: > >> > >>> From: Shannon Zhao > >>> > >>> Add PCIe controlle

Re: [Qemu-devel] [PATCH V2] vhost: logs sharing

2015-04-28 Thread Jason Wang
On Tue, Apr 28, 2015 at 5:37 PM, Michael S. Tsirkin wrote: On Fri, Apr 10, 2015 at 05:33:35PM +0800, Jason Wang wrote: Currently we allocate one vhost log per vhost device. This is sub optimal when: - Guest has several device with vhost as backend - Guest has multiqueue devices In

Re: [Qemu-devel] [PATCH 1/1] apic_common: improve readability of apic_reset_common

2015-04-28 Thread Paolo Bonzini
On 07/04/2015 15:53, Denis V. Lunev wrote: > Replace call of cpu_is_bsp(s->cpu) which really returns > !!(s->apicbase & MSR_IA32_APICBASE_BSP) > with directly collected value. Due to this the tracepoint > trace_cpu_get_apic_base((uint64_t)s->apicbase); > will not be hit anymore in apic_rese

Re: [Qemu-devel] [RFC PATCH 2/2] spapr: populate ibm,loc-code

2015-04-28 Thread David Gibson
On Wed, Apr 22, 2015 at 04:05:34PM +0530, Nikunj A Dadhania wrote: > Each hardware instance has a platform unique location code. The OF > device tree that describes a part of a hardware entity must include > the “ibm,loc-code” property with a value that represents the location > code for that hard

Re: [Qemu-devel] [RFC PATCH 1/2] spapr: enumerate and add PCI device tree

2015-04-28 Thread David Gibson
On Wed, Apr 22, 2015 at 04:05:33PM +0530, Nikunj A Dadhania wrote: > All the PCI enumeration and device node creation was off-loaded to > SLOF. With PCI hotplug support, code needed to be added to add device > node. This creates multiple copy of the code one in SLOF and other in > hotplug code. To

Re: [Qemu-devel] [PATCH V6 for-2.3 13/26] hw/pci-host: introduce TYPE_PCI_HOST_BRIDGE_SNOOPED interface

2015-04-28 Thread Marcel Apfelbaum
On 04/28/2015 11:43 AM, Michael S. Tsirkin wrote: On Tue, Apr 28, 2015 at 11:39:42AM +0300, Marcel Apfelbaum wrote: On 04/27/2015 05:45 PM, Michael S. Tsirkin wrote: On Mon, Apr 27, 2015 at 04:01:16PM +0300, Marcel Apfelbaum wrote: On 04/27/2015 03:14 PM, Michael S. Tsirkin wrote: On Thu, Mar

Re: [Qemu-devel] [PATCH V2] vhost: logs sharing

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 05:58:28PM +0800, Jason Wang wrote: > > > On Tue, Apr 28, 2015 at 5:37 PM, Michael S. Tsirkin wrote: > >On Fri, Apr 10, 2015 at 05:33:35PM +0800, Jason Wang wrote: > >> Currently we allocate one vhost log per vhost device. This is sub > >> optimal when: > >> - Guest has s

Re: [Qemu-devel] [PULL 00/17] target-arm queue

2015-04-28 Thread Peter Maydell
On 27 April 2015 at 16:20, Peter Maydell wrote: > 2.4 is not officially open yet (I'm waiting for Michael to post > the actual 2.3 release announcement) but this is lined up > ready, since I'd like to get the memory attributes patches in > sooner rather than later to reduce the risk of conflicts.

  1   2   3   4   >