Re: [Qemu-devel] [PATCH] add 1394 OHCI device

2016-04-05 Thread Ladi Prosek
Thank you Sameeh & Itamar! Peter, it looks like there are people who care about this device and are willing to maintain it. Would it be enough to merge the patch? CC Alexander who may be interested as well. Thanks, Ladi On Mon, Apr 4, 2016 at 4:30 PM, Itamar Tal wrote: > Hi all, > > That's the

Re: [Qemu-devel] [PULL 1/3] ppc: Rework POWER7 & POWER8 exception model

2016-04-05 Thread Cédric Le Goater
On 04/05/2016 05:25 AM, David Gibson wrote: > On Tue, Apr 05, 2016 at 12:19:50PM +1000, Benjamin Herrenschmidt wrote: >> On Tue, 2016-04-05 at 12:17 +1000, David Gibson wrote: >>> From: Cédric Le Goater >>> >>> From: Benjamin Herrenschmidt >>> >>> This patch fixes the current AIL implementation f

Re: [Qemu-devel] [Nbd] [PATCH v2] doc: Add NBD_CMD_BLOCK_STATUS extension

2016-04-05 Thread Alex Bligh
On 5 Apr 2016, at 00:08, Wouter Verhelst wrote: > > if bit 0 in the latter field is set, that means the block is allocated > on the original device > if bit 1 is set, that means the block is allocated on the first-level > snapshot > if bit 2 is set, that means the block is allocated on the se

Re: [Qemu-devel] [Nbd] [PATCH v2] doc: Add NBD_CMD_BLOCK_STATUS extension

2016-04-05 Thread Wouter Verhelst
On Mon, Apr 04, 2016 at 05:32:34PM -0600, Eric Blake wrote: > On 04/04/2016 05:08 PM, Wouter Verhelst wrote: > > On Mon, Apr 04, 2016 at 10:54:02PM +0300, Denis V. Lunev wrote: > >> saying about dirtiness, we would soon come to the fact, that > >> we can have several dirtiness states regarding diff

Re: [Qemu-devel] [PATCH] tests: ignore test-logging

2016-04-05 Thread Changlong Xie
On 04/05/2016 02:35 PM, Changlong Xie wrote: Commit 3514552e added a new test, but did not mark it for exclusion in .gitignore. Signed-off-by: Changlong Xie --- tests/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/.gitignore b/tests/.gitignore index b7bf13e..898a35f 100

Re: [Qemu-devel] [PATCH v4.1] Add optionrom compatible with fw_cfg DMA version

2016-04-05 Thread Gerd Hoffmann
On Mo, 2016-04-04 at 16:21 +0100, Richard W.M. Jones wrote: > On Mon, Apr 04, 2016 at 04:02:04PM +0100, Stefan Hajnoczi wrote: > > (1) initrd loading is broken, kernel complains it finds only gibberish: > > > > [0.934582] Unpacking initramfs... > > [1.166983] Initramfs unpacking fail

Re: [Qemu-devel] [PATCH] spapr: Don't set the TM ibm, pa-features bit in PR KVM mode

2016-04-05 Thread Alexey Kardashevskiy
On 04/05/2016 02:09 PM, David Gibson wrote: On Tue, Apr 05, 2016 at 12:12:01PM +1000, Paul Mackerras wrote: On Mon, Apr 04, 2016 at 09:09:28PM +1000, Anton Blanchard wrote: We don't support transactional memory in PR KVM, so don't tell the OS that we do. This assumes PR KVM won't ever support

Re: [Qemu-devel] [PATCH 02/10] compiler.h: add QEMU_CACHELINE + QEMU_ALIGN() + QEMU_CACHELINE_ALIGNED

2016-04-05 Thread Peter Maydell
On 5 April 2016 at 06:30, Emilio G. Cota wrote: > I'm assuming windows compilers don't support this attribute. Our windows compiler is gcc, so I would expect it to support attribute aligned, and a quick grep through the sources shows we already use it in several places. > +#define QEMU_CACHELINE

Re: [Qemu-devel] [PATCH] add 1394 OHCI device

2016-04-05 Thread Peter Maydell
On 5 April 2016 at 08:01, Ladi Prosek wrote: > Thank you Sameeh & Itamar! > > Peter, it looks like there are people who care about this device and > are willing to maintain it. Would it be enough to merge the patch? I have no objections to the patch particularly, but I would prefer it if you can

Re: [Qemu-devel] Why is SeaBIOS used with -kernel?

2016-04-05 Thread Richard W.M. Jones
On Tue, Apr 05, 2016 at 06:38:36AM +0200, Kevin Wolf wrote: > Am 01.04.2016 um 13:20 hat Richard W.M. Jones geschrieben: > > > > My patch, plus the configuration and comments from your patch, > > combined. Plus I tested it with libguestfs boot-analysis and it works > > and is still fast. > > > >

Re: [Qemu-devel] [PULL 0/3] Travis updates

2016-04-05 Thread Peter Maydell
On 4 April 2016 at 18:45, Alex Bennée wrote: > The following changes since commit e31f0451876aa7ada74d60304aa241506a383797: > > net: fix missing include of qapi/error.h in netmap.c (2016-04-04 15:01:14 > +0100) > > are available in the git repository at: > > https://github.com/stsquad/qemu.gi

Re: [Qemu-devel] Why is SeaBIOS used with -kernel?

2016-04-05 Thread Kevin Wolf
Am 05.04.2016 um 10:04 hat Richard W.M. Jones geschrieben: > On Tue, Apr 05, 2016 at 06:38:36AM +0200, Kevin Wolf wrote: > > Am 01.04.2016 um 13:20 hat Richard W.M. Jones geschrieben: > > > > > > My patch, plus the configuration and comments from your patch, > > > combined. Plus I tested it with

Re: [Qemu-devel] [ RFC Patch v4 1/3] virtio-net rsc: add a new host offload(rsc) feature bit

2016-04-05 Thread Michael S. Tsirkin
On Tue, Apr 05, 2016 at 10:05:17AM +0800, Jason Wang wrote: > > > On 04/04/2016 03:25 AM, w...@redhat.com wrote: > > From: Wei Xu > > > > A new feature bit 'VIRTIO_NET_F_GUEST_RSC' is introduced to support WHQL > > Receive-Segment-Offload test, this feature will coalesce tcp packets in > > IPv4/

Re: [Qemu-devel] [PULL 0/5] target-arm queue

2016-04-05 Thread Peter Maydell
On 4 April 2016 at 17:43, Peter Maydell wrote: > ARM changes for rc1: a small set of bugfixes which didn't quite > make rc0, mostly. > > thanks > -- PMM > > > The following changes since commit c40e13e106243a6798b7b02b4d7de5ff6c9be128: > > bsd-user: add necessary includes to fix warnings (2016-0

Re: [Qemu-devel] [PATCH v2] filter-buffer: fix segfault when starting qemu with status=off property

2016-04-05 Thread Jason Wang
On 04/05/2016 11:43 AM, zhanghailiang wrote: > After commit 338d3f, we support 'status' property for filter object. > The segfault can be triggered by starting qemu with 'status=off' property > for filter, when the s->incoming_queue is NULL, we reference it directly > in qemu_net_queue_flush() wh

Re: [Qemu-devel] [PATCH] fw_cfg: RQFN rules, documentation

2016-04-05 Thread Michael S. Tsirkin
On Mon, Apr 04, 2016 at 07:14:48PM +0200, Laszlo Ersek wrote: > On 04/04/16 17:57, Michael S. Tsirkin wrote: > > >> ... My question is, do we need the "opt/" prefix at all (for the future, > >> i.e., the non-historical cases)? > >> Looking at the last discussion, I > >> believe we converged on: >

Re: [Qemu-devel] [PULL 0/3] Travis updates

2016-04-05 Thread Alex Bennée
Peter Maydell writes: > On 4 April 2016 at 18:45, Alex Bennée wrote: >> The following changes since commit e31f0451876aa7ada74d60304aa241506a383797: >> >> net: fix missing include of qapi/error.h in netmap.c (2016-04-04 15:01:14 >> +0100) >> >> are available in the git repository at: >> >>

Re: [Qemu-devel] [PATCH 00/10] tb hash improvements

2016-04-05 Thread Alex Bennée
Emilio G. Cota writes: > This patchset is derived from my ongoing work on MTTCG, but does > not depend on it and brings improvements that we can already > benefit from. It applies cleanly on the current master and > is checkpatch-clean. > > The key goal is to make the TB hash table faster, and w

Re: [Qemu-devel] [PATCH 1/1] virtio-balloon: reset the statistic timer to load device

2016-04-05 Thread Denis V. Lunev
On 03/29/2016 05:18 PM, Denis V. Lunev wrote: On 03/29/2016 05:07 PM, Michael S. Tsirkin wrote: On Tue, Mar 29, 2016 at 05:00:49PM +0300, Denis V. Lunev wrote: From: Pavel Butsykin If before loading snapshot we had set the timer of statistics, then after applying snapshot the expiry time wo

Re: [Qemu-devel] [PATCH 02/10] compiler.h: add QEMU_CACHELINE + QEMU_ALIGN() + QEMU_CACHELINE_ALIGNED

2016-04-05 Thread Paolo Bonzini
On 05/04/2016 07:30, Emilio G. Cota wrote: > I'm assuming windows compilers don't support this attribute. They actually do. :) Paolo > Signed-off-by: Emilio G. Cota > --- > include/qemu/compiler.h | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/include/qemu/compiler.h b

Re: [Qemu-devel] [PATCH 01/10] translate-all: add missing fold of tb_ctx into tcg_ctx

2016-04-05 Thread Paolo Bonzini
On 05/04/2016 07:30, Emilio G. Cota wrote: > Since 5e5f07e08 "TCG: Move translation block variables > to new context inside tcg_ctx: tb_ctx" on Feb 1 2013, compilation > of usermode + TB_DEBUG_CHECK has been broken. Fix it. > > Signed-off-by: Emilio G. Cota > --- > translate-all.c | 3 ++- > 1

Re: [Qemu-devel] [PATCH 05/10] include: add spinlock wrapper

2016-04-05 Thread Paolo Bonzini
On 05/04/2016 07:30, Emilio G. Cota wrote: > Wrap pthread_spin on POSIX, or QemuMutex on Windows. > > AFAIK there are is no off-the-shelf spinlock implementation for > Windows, so we'll just use QemuMutex. It's much simpler to use a simple test-and-set spinlock. GitHub is down, but this should

Re: [Qemu-devel] [PATCH v2] doc: Add NBD_CMD_BLOCK_STATUS extension

2016-04-05 Thread Stefan Hajnoczi
On Mon, Apr 04, 2016 at 10:39:10AM -0600, Eric Blake wrote: > +To provide such class of information, the `BLOCK_STATUS` extension > +adds a new `NBD_CMD_BLOCK_STATUS` command which returns a list of > +ranges with their respective states. This extension is not available > +unless the client also n

Re: [Qemu-devel] [PATCH v2] firmware: qemu_fw_cfg.c: hold ACPI global lock during device access

2016-04-05 Thread Michael S. Tsirkin
On Thu, Mar 17, 2016 at 09:33:40AM -0400, Gabriel L. Somlo wrote: > On Wed, Mar 16, 2016 at 06:57:01PM +0200, Michael S. Tsirkin wrote: > > On Tue, Mar 08, 2016 at 01:30:50PM -0500, Gabriel Somlo wrote: > > > Allowing for the future possibility of implementing AML-based > > > (i.e., firmware-trigge

Re: [Qemu-devel] [PATCH 08/10] qht: QEMU's fast, resizable and scalable Hash Table

2016-04-05 Thread Paolo Bonzini
On 05/04/2016 07:30, Emilio G. Cota wrote: > +static void qht_bucket_reset(struct qht_bucket *b) > +{ > +qemu_spinlock_lock(&b->lock); > +seqlock_write_begin(&b->sequence); > +__qht_bucket_reset(b); No __ names, please use names like qht_bucket_reset_locked. "_locked" doesn't make mu

Re: [Qemu-devel] [PATCH 00/10] tb hash improvements

2016-04-05 Thread Paolo Bonzini
On 05/04/2016 07:30, Emilio G. Cota wrote: > This patchset is derived from my ongoing work on MTTCG, but does > not depend on it and brings improvements that we can already > benefit from. It applies cleanly on the current master and > is checkpatch-clean. > > The key goal is to make the TB hash

Re: [Qemu-devel] [PATCH 7/9] virtio-scsi: use aio handler for data plane

2016-04-05 Thread Fam Zheng
On Fri, 04/01 15:19, Paolo Bonzini wrote: > In addition to handling IO in vcpu thread and in io thread, dataplane > introduces yet another mode: handling it by aio. > > This reuses the same handler as previous modes, which triggers races as > these were not designed to be reentrant. > > Use a sep

Re: [Qemu-devel] [PATCH v2 0/9] virtio: aio handler API

2016-04-05 Thread Fam Zheng
On Fri, 04/01 15:19, Paolo Bonzini wrote: > This version fixes some commit messages, is based on qemu.git master > and adds Cornelia's Reviewed-by tags. There are no code changes apart > from context. Apart from the nic-picks in patch 7, for patches 1-7: Reviewed-by: Fam Zheng > > Michael S.

[Qemu-devel] [RFC v2] virtio-crypto specification

2016-04-05 Thread Gonglei (Arei)
Dear all, I'm so sorry for the late version 2 and appreciate the good comments came from Cornelia and Michael. Changes from v1: - Drop the feature bit definaion for each algorithm, and using config space instead [Cornelia] - Add multiqueue support and add corresponding feature bit - Update

[Qemu-devel] [PULL v2 0/3] Travis updates (without changelog entries)

2016-04-05 Thread Alex Bennée
The following changes since commit e31f0451876aa7ada74d60304aa241506a383797: net: fix missing include of qapi/error.h in netmap.c (2016-04-04 15:01:14 +0100) are available in the git repository at: https://github.com/stsquad/qemu.git tags/travis-pull-05042016 for you to fetch changes up to

Re: [Qemu-devel] Why is SeaBIOS used with -kernel?

2016-04-05 Thread Richard W.M. Jones
> > OK so this reminds me of the second problem. How to detect what > > bioses are available, given a qemu binary. It would be nice if qemu > > had an option like: > > > > qemu -bios \? I didn't really think this one through. The extra time taken (in the link loader) to run the above query c

Re: [Qemu-devel] [PATCH] fw_cfg: RQFN rules, documentation

2016-04-05 Thread Laszlo Ersek
On 04/05/16 10:35, Michael S. Tsirkin wrote: > On Mon, Apr 04, 2016 at 07:14:48PM +0200, Laszlo Ersek wrote: >> On 04/04/16 17:57, Michael S. Tsirkin wrote: >> ... My question is, do we need the "opt/" prefix at all (for the future, i.e., the non-historical cases)? Looking at the las

[Qemu-devel] [PATCH 7/7] qemu-iotests: iotests.py: get rid of __all__

2016-04-05 Thread Sascha Silbe
The __all__ list contained a typo for as long as the iotests module existed. That typo prevented "from iotests import *" (which is the only case where iotests.__all__ is used at all) from ever working. The names used by iotests are highly prone to name collisions, so importing them all uncondition

[Qemu-devel] [PATCH 1/7] qemu-iotests: check: don't place files with predictable names in /tmp

2016-04-05 Thread Sascha Silbe
Placing files with predictable or even hard-coded names in /tmp is a security risk and can prevent or disturb operation on a multi-user machine. Place them inside the "scratch" directory instead, as we already do for most other test-related files. Signed-off-by: Sascha Silbe Reviewed-by: Bo Tu -

[Qemu-devel] [PATCH 2/7] qemu-iotests: fix 051 on non-PC architectures

2016-04-05 Thread Sascha Silbe
Commit 61de4c68 [block: Remove BDRV_O_CACHE_WB] updated the reference output for PCs, but neglected to do the same for the generic reference output file. Fix 051 on all non-PC architectures by applying the same change to the generic output file. Fixes: 61de4c68 ("block: Remove BDRV_O_CACHE_WB") Si

[Qemu-devel] [PATCH 4/7] qemu-iotests: 148: properly skip test if quorum support is missing

2016-04-05 Thread Sascha Silbe
qemu-iotests test case 148 already had some code for skipping the test if quorum support is missing, but it didn't work in all cases. TestQuorumEvents.setUp() gets run before the actual test class (which contains the skipping code) and tries to start qemu with a drive using the quorum driver. For s

[Qemu-devel] [PATCH 3/7] qemu-iotests: iotests.VM: remove qtest socket on error

2016-04-05 Thread Sascha Silbe
On error, VM.launch() cleaned up the monitor unix socket, but left the qtest unix socket behind. This caused the remaining sub-tests to fail with EADDRINUSE: +== +ERROR: testQuorum (__main__.TestFifoQuorumEvents) +

[Qemu-devel] [PATCH 5/7] qemu-iotests: 068: don't require KVM

2016-04-05 Thread Sascha Silbe
None of the other test cases explicitly enable KVM and there's no obvious reason for 068 to require it. Drop this so all test cases can be executed in environments where KVM is not available (e.g. because the user doesn't have sufficient permissions to access /dev/kvm). Signed-off-by: Sascha Silbe

[Qemu-devel] [PATCH 0/7] next round of qemu-iotests fixes

2016-04-05 Thread Sascha Silbe
With these fixes, qemu-iotests complete successfully on my test systems (s390x, x86_64) when used with QCOW2 or raw image formats. These are purely bug fixes for tests and most are trivial, so they should be safe even for hard freeze. Sascha Silbe (7): qemu-iotests: check: don't place files wi

Re: [Qemu-devel] Why is SeaBIOS used with -kernel?

2016-04-05 Thread Kevin Wolf
Am 05.04.2016 um 11:19 hat Richard W.M. Jones geschrieben: > > > OK so this reminds me of the second problem. How to detect what > > > bioses are available, given a qemu binary. It would be nice if qemu > > > had an option like: > > > > > > qemu -bios \? > > I didn't really think this one thr

Re: [Qemu-devel] [Nbd] [PATCH v2] doc: Add NBD_CMD_BLOCK_STATUS extension

2016-04-05 Thread Markus Pargmann
Hi, On Monday 04 April 2016 10:39:10 Eric Blake wrote: > With the availability of sparse storage formats, it is often needed > to query status of a particular range and read only those blocks of > data that are actually present on the block device. > > To provide such information, the patch adds

[Qemu-devel] [PATCH 6/7] qemu-iotests: 141: reduce likelihood of race condition on systems with fast IO

2016-04-05 Thread Sascha Silbe
On systems with fast IO, qemu-io may write more than 1 MiB before receiving the block-job-cancel command, causing the test case to fail. 141 is inherently racy, but we can at least reduce the likelihood of the job completing before the cancel command arrives by bumping the size of the data getting

Re: [Qemu-devel] powerpc: Clear user CPU feature bits if TM is disabled at runtime

2016-04-05 Thread Michael Ellerman
On Mon, 2016-04-04 at 11:11:12 UTC, Paul Mackerras via Linuxppc-dev wrote: > In check_cpu_pa_features() we check a number of bits in the Shouldn't we be clearing the user feature there too? The ibm_pa_features array and the logic in scan_features() knows to flip the cpu_user_features bits, it was

[Qemu-devel] [PATCH] MAINTAINERS: Add Fam Zheng as a co-maintainer of block I/O path

2016-04-05 Thread Fam Zheng
As agreed with Stefan, I'm listing myself a co-maintainer of block I/O path and assist with the maintainership. Signed-off-by: Fam Zheng --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9277fbf..d261412 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

Re: [Qemu-devel] [Nbd] [PATCH v2] doc: Allow NBD_CMD_FLAG_NO_HOLE during NBD_CMD_WRITE

2016-04-05 Thread Markus Pargmann
Hi, On Monday 04 April 2016 16:15:43 Eric Blake wrote: > qemu already has an existing server implementation option that will > explicitly search the payload of NBD_CMD_WRITE for large blocks of > zeroes, and punch holes in the underlying file. For old clients > that don't know how to use the new

Re: [Qemu-devel] [PATCH] crypto: fix nettle config check for running pbkdf test

2016-04-05 Thread Paolo Bonzini
On 04/04/2016 17:24, Daniel P. Berrange wrote: > The pbkdf test is being built based on a check for CONFIG_NETTLE. > As of fff2f982ab6ac0dd2b641d30303f72270a019f28, it should be > instead checking CONFIG_NETTLE_KDF > > Reported-by: "Dr. David Alan Gilbert" > Reported-by: Bruce Rogers > Signed-

Re: [Qemu-devel] [PATCH v2] block: Fix bdrv_drain in coroutine

2016-04-05 Thread Stefan Hajnoczi
On Tue, Apr 05, 2016 at 09:27:39AM +0800, Fam Zheng wrote: > On Mon, 04/04 12:57, Stefan Hajnoczi wrote: > > On Fri, Apr 01, 2016 at 09:57:38PM +0800, Fam Zheng wrote: > > > +BdrvCoDrainData data; > > > + > > > +assert(qemu_in_coroutine()); > > > +data = (BdrvCoDrainData) { > > > +

[Qemu-devel] [PULL 03/15] memory: fix segv on qemu_ram_free(block=0x0)

2016-04-05 Thread Paolo Bonzini
From: Marc-André Lureau Since f1060c55bf1377b4, the pointer is directly passed to qemu_ram_free(). However, on initialization failure, it may be called with a NULL pointer. Return immediately in this case. This fixes a SEGV when memory initialization failed, for example permission denied on open

[Qemu-devel] [PULL 04/15] target-i386: do not pass MSR_TSC_AUX to KVM ioctls if CPUID bit is not set

2016-04-05 Thread Paolo Bonzini
KVM does not let you read or write this MSR if the corresponding CPUID bit is not set. This in turn causes MSRs that come after MSR_TSC_AUX to be ignored by KVM_SET_MSRS. One visible symptom is that s3.flat from kvm-unit-tests fails with CPUs that do not have RDTSCP, because the SMBASE is not res

[Qemu-devel] [PULL 01/15] update Linux headers to 4.6

2016-04-05 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- include/standard-headers/asm-x86/hyperv.h | 4 +- include/standard-headers/linux/input.h | 1 + include/standard-headers/linux/types.h | 5 +- include/standard-headers/linux/virtio_balloon.h | 2 +- include/standard-headers/linux/virtio

[Qemu-devel] [PULL 11/15] nbd: don't request FUA on FLUSH

2016-04-05 Thread Paolo Bonzini
From: Eric Blake The NBD protocol does not clearly document what will happen if a client sends NBD_CMD_FLAG_FUA on NBD_CMD_FLUSH. Historically, both the qemu and upstream NBD servers silently ignored that flag, but that feels a bit risky. Meanwhile, the qemu NBD client unconditionally sends the

[Qemu-devel] [PULL 00/15] Misc changes for QEMU 2.6.0-rc1

2016-04-05 Thread Paolo Bonzini
The following changes since commit 92741fc4b6cbf7a8f6cce45e9a468d5637a4ff6a: Merge remote-tracking branch 'remotes/thibault/tags/samuel-thibault' into staging (2016-03-31 11:52:44 +0100) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-upstream for you to

[Qemu-devel] [PULL 02/15] target-i386/kvm: Hyper-V VMBus hypercalls blank handlers

2016-04-05 Thread Paolo Bonzini
From: Andrey Smetanin Add Hyper-V VMBus hypercalls blank handlers which just returns error code - HV_STATUS_INVALID_HYPERCALL_CODE. This is required when the synthetic interrupt controller is active. Fixes: 50efe82c3c27195162dd8df273eadd77d8aecad3 Signed-off-by: Andrey Smetanin Reviewed-by: Rom

[Qemu-devel] [PULL 05/15] target-i386: assert that KVM_GET/SET_MSRS can set all requested MSRs

2016-04-05 Thread Paolo Bonzini
This would have caught the bug in the previous patch. Signed-off-by: Paolo Bonzini --- target-i386/kvm.c | 34 ++ 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 19e2d94..799fdfa 100644 --- a/target-i386/k

[Qemu-devel] [PULL 13/15] include/qemu/atomic: add compile time asserts

2016-04-05 Thread Paolo Bonzini
From: Alex Bennée To be safely portable no atomic access should be trying to do more than the natural word width of the host. The most common abuse is trying to atomically access 64 bit values on a 32 bit host. This patch adds some QEMU_BUILD_BUG_ON to the __atomic instrinsic paths to create a b

[Qemu-devel] [PULL 09/15] char: ensure all clients are in non-blocking mode

2016-04-05 Thread Paolo Bonzini
From: "Daniel P. Berrange" Only some callers of tcp_chr_new_client are putting the socket client into non-blocking mode. Move the call to qio_channel_set_blocking() into the tcp_chr_new_client method to guarantee that all code paths set non-blocking mode Reported-by: Andrew Baumann Reported-by:

[Qemu-devel] [PULL 06/15] checkpatch: add target_ulong to typelist

2016-04-05 Thread Paolo Bonzini
From: Cédric Le Goater In some occasions, a patch [1] can start with a hunk containing a simple type cast. At the time annotate_values() is run, the type is unknown and the cast type is misinterpreted as a identifier, resulting in an error if it is followed with a negative value: ERROR:

[Qemu-devel] [PULL 12/15] cpus: don't use atomic_read for vm_clock_warp_start

2016-04-05 Thread Paolo Bonzini
From: Alex Bennée As vm_clock_warp_start is a 64 bit value this causes problems for the compiler trying to come up with a suitable atomic operation on 32 bit hosts. Because the variable is protected by vm_clock_seqlock, we check its value inside a seqlock critical section. Signed-off-by: Alex Be

[Qemu-devel] [PULL 08/15] char: fix broken EAGAIN retry on OS-X due to errno clobbering

2016-04-05 Thread Paolo Bonzini
From: "Daniel P. Berrange" Some of the chardev I/O paths really want to write the complete data buffer even though the channel is in non-blocking mode. To achieve this they look for EAGAIN and g_usleep() for 100ms. Unfortunately the code is set to check errno == EAGAIN a second time, after the g_

[Qemu-devel] [PULL 07/15] util: retry getaddrinfo if getting EAI_BADFLAGS with AI_V4MAPPED

2016-04-05 Thread Paolo Bonzini
From: "Daniel P. Berrange" The FreeBSD header files define the AI_V4MAPPED but its implementation of getaddrinfo() always returns an error when that flag is set. eg address resolution failed for localhost:9000: Invalid value for ai_flags There are also reports of the same problem on OS-X 10.6

[Qemu-devel] [PULL 14/15] nbd: Fix poor debug message

2016-04-05 Thread Paolo Bonzini
From: Eric Blake The client sends messages to the server, not itself. Signed-off-by: Eric Blake Message-Id: <1459459222-8637-3-git-send-email-ebl...@redhat.com> Signed-off-by: Paolo Bonzini --- nbd/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbd/client.c b/nbd

[Qemu-devel] [PULL 10/15] doc/memory: update MMIO section

2016-04-05 Thread Paolo Bonzini
From: Cao jin There is no memory_region_io(). And remove a stray '-'. Signed-off-by: Cao jin Message-Id: <1459507677-16662-1-git-send-email-caoj.f...@cn.fujitsu.com> Signed-off-by: Paolo Bonzini --- docs/memory.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/m

[Qemu-devel] [PULL 15/15] net: fix missing include of qapi/error.h in netmap.c

2016-04-05 Thread Paolo Bonzini
From: "Daniel P. Berrange" The netmap.c file fails to build on FreeBSD with net/netmap.c:95:9: warning: implicit declaration of function 'error_setg_errno' is invalid in C99 [-Wimplicit-function-declaration] error_setg_errno(errp, errno, "Failed to nm_open() %s", ^ net/netmap.c:432:9:

[Qemu-devel] [PULL v1 0/2] QCrypto fixes for 2.6.0-rc1

2016-04-05 Thread Daniel P. Berrange
The following changes since commit 1dbc7cc9b91ba229ec958418bef483364f06fe72: Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.6-20160405' into staging (2016-04-05 09:32:35 +0100) are available in the git repository at: git://github.com/berrange/qemu tags/pull-qcrypto-

Re: [Qemu-devel] [PULL 10/15] doc/memory: update MMIO section

2016-04-05 Thread Cao jin
On 04/05/2016 05:50 PM, Paolo Bonzini wrote: From: Cao jin There is no memory_region_io(). And remove a stray '-'. Signed-off-by: Cao jin Message-Id: <1459507677-16662-1-git-send-email-caoj.f...@cn.fujitsu.com> Signed-off-by: Paolo Bonzini --- docs/memory.txt | 4 ++-- 1 file changed, 2

[Qemu-devel] [PULL v1 2/2] crypto: fix nettle config check for running pbkdf test

2016-04-05 Thread Daniel P. Berrange
The pbkdf test is being built based on a check for CONFIG_NETTLE. As of fff2f982ab6ac0dd2b641d30303f72270a019f28, it should be instead checking CONFIG_NETTLE_KDF Reported-by: "Dr. David Alan Gilbert" Tested-by: Bruce Rogers Tested-by: Ed Maste Signed-off-by: Daniel P. Berrange --- tests/Makef

[Qemu-devel] [PULL v1 1/2] crypto: fix typo in docs for secret object type

2016-04-05 Thread Daniel P. Berrange
The docs for the secret object type specified the wrong number of bytes for the AES initialization vector. Signed-off-by: Daniel P. Berrange --- qemu-options.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-options.hx b/qemu-options.hx index 789d9f6..587de8f 100644 ---

Re: [Qemu-devel] powerpc: Clear user CPU feature bits if TM is disabled at runtime

2016-04-05 Thread Benjamin Herrenschmidt
On Tue, 2016-04-05 at 19:35 +1000, Michael Ellerman wrote: > Shouldn't we be clearing the user feature there too? > > The ibm_pa_features array and the logic in scan_features() knows to > flip the > cpu_user_features bits, it was just never updated to handle > cpu_user_features2. > > So it seems

Re: [Qemu-devel] [PATCH] crypto: fix nettle config check for running pbkdf test

2016-04-05 Thread Peter Maydell
On 5 April 2016 at 10:40, Paolo Bonzini wrote: > > > On 04/04/2016 17:24, Daniel P. Berrange wrote: >> The pbkdf test is being built based on a check for CONFIG_NETTLE. >> As of fff2f982ab6ac0dd2b641d30303f72270a019f28, it should be >> instead checking CONFIG_NETTLE_KDF >> >> Reported-by: "Dr. Dav

Re: [Qemu-devel] [PULL 0/3] ppc-for-2.6 queue 20160405

2016-04-05 Thread Peter Maydell
available in the git repository at: > > git://github.com/dgibson/qemu.git tags/ppc-for-2.6-20160405 > > for you to fetch changes up to efdaf797de009e194db89dcd8b171fa35181a6f2: > > vl: Move cpu_synchronize_all_states() into

Re: [Qemu-devel] [PULL v2 0/3] Travis updates (without changelog entries)

2016-04-05 Thread Peter Maydell
On 5 April 2016 at 10:17, Alex Bennée wrote: > The following changes since commit e31f0451876aa7ada74d60304aa241506a383797: > > net: fix missing include of qapi/error.h in netmap.c (2016-04-04 15:01:14 > +0100) > > are available in the git repository at: > > https://github.com/stsquad/qemu.gi

Re: [Qemu-devel] [PATCH v2] migration: skip sending ram pages released by virtio-balloon driver.

2016-04-05 Thread Jitendra Kolhe
On 3/31/2016 10:09 PM, Dr. David Alan Gilbert wrote: > * Jitendra Kolhe (jitendra.ko...@hpe.com) wrote: >> While measuring live migration performance for qemu/kvm guest, it >> was observed that the qemu doesn’t maintain any intelligence for the >> guest ram pages which are released by the guest bal

Re: [Qemu-devel] [PATCH v2 0/9] virtio: aio handler API

2016-04-05 Thread Christian Borntraeger
On 04/01/2016 03:19 PM, Paolo Bonzini wrote: > This version fixes some commit messages, is based on qemu.git master > and adds Cornelia's Reviewed-by tags. There are no code changes apart > from context. > > Michael S. Tsirkin (2): > virtio: add aio handler > virtio-blk: use aio handler for d

Re: [Qemu-devel] [PULL 10/15] doc/memory: update MMIO section

2016-04-05 Thread Paolo Bonzini
On 05/04/2016 11:59, Cao jin wrote: > Seems the patch ignore the slight modification on that memory figure, > So commit message isn`t consistent with the patch content. And actually > I missed to remove a space between 7000 and 8000, since I removed a "-" Oops, I forgot to adjust the commit mess

Re: [Qemu-devel] [PATCH 1/9] virtio-dataplane: pass assign=true to virtio_queue_aio_set_host_notifier_handler

2016-04-05 Thread Michael S. Tsirkin
On Fri, Apr 01, 2016 at 03:19:46PM +0200, Paolo Bonzini wrote: > There is no need to run the handler one last time; the device is > being reset and it is okay to drop requests that are pending in > the virtqueue. Even in the case of migration, the requests would > be processed when ioeventfd is re

Re: [Qemu-devel] [PATCH 1/9] virtio-dataplane: pass assign=true to virtio_queue_aio_set_host_notifier_handler

2016-04-05 Thread Paolo Bonzini
On 05/04/2016 12:38, Michael S. Tsirkin wrote: >> > There is no need to run the handler one last time; the device is >> > being reset and it is okay to drop requests that are pending in >> > the virtqueue. Even in the case of migration, the requests would >> > be processed when ioeventfd is re-e

Re: [Qemu-devel] [PATCH 0/4] Fix QEMU crash on vhost-user socket disconnect.

2016-04-05 Thread Michael S. Tsirkin
On Thu, Mar 31, 2016 at 09:02:01AM +0300, Ilya Maximets wrote: > On 30.03.2016 20:01, Michael S. Tsirkin wrote: > > On Wed, Mar 30, 2016 at 06:14:05PM +0300, Ilya Maximets wrote: > >> Currently QEMU always crashes in following scenario (assume that > >> vhost-user application is Open vSwitch with '

Re: [Qemu-devel] efi var store migration assert (bdrv_co_do_pwritev: Assertion `!(bs->open_flags & 0x0800)' failed.)

2016-04-05 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > > > On 01/04/2016 19:58, Dr. David Alan Gilbert wrote: > > In the continuing journeys of trying to migrate a q35 guest with ovmf, > > I've just hit this assert: > > > > qemu-system-x86_64: /root/git/qemu/block/io.c:1297: bdrv_co_do_pwritev: > > Ass

Re: [Qemu-devel] [PULL 00/15] Misc changes for QEMU 2.6.0-rc1

2016-04-05 Thread Peter Maydell
On 5 April 2016 at 10:50, Paolo Bonzini wrote: > The following changes since commit 92741fc4b6cbf7a8f6cce45e9a468d5637a4ff6a: > > Merge remote-tracking branch 'remotes/thibault/tags/samuel-thibault' into > staging (2016-03-31 11:52:44 +0100) > > are available in the git repository at: > > git

Re: [Qemu-devel] efi var store migration assert (bdrv_co_do_pwritev: Assertion `!(bs->open_flags & 0x0800)' failed.)

2016-04-05 Thread Laszlo Ersek
On 04/05/16 12:48, Dr. David Alan Gilbert wrote: > * Paolo Bonzini (pbonz...@redhat.com) wrote: >> >> >> On 01/04/2016 19:58, Dr. David Alan Gilbert wrote: >>> In the continuing journeys of trying to migrate a q35 guest with ovmf, >>> I've just hit this assert: >>> >>> qemu-system-x86_64: /root/git

Re: [Qemu-devel] [PATCH 1/9] virtio-dataplane: pass assign=true to virtio_queue_aio_set_host_notifier_handler

2016-04-05 Thread Paolo Bonzini
On 05/04/2016 12:42, Paolo Bonzini wrote: > I think you're right about this. > > Dataplane has an event_notifier_set; we should move it to > virtio_queue_aio_set_host_notifier_handler and add it to > virtio_queue_set_host_notifier_handler. I'll send v3 today. As discussed on IRC, even that wou

Re: [Qemu-devel] [PATCH v2] block: Fix bdrv_drain in coroutine

2016-04-05 Thread Fam Zheng
On Tue, 04/05 10:39, Stefan Hajnoczi wrote: > > > block/mirror.c should call bdrv_co_drain() explicitly and bdrv_drain() > > > should assert(!qemu_in_coroutine()). > > > > > > The reason why existing bdrv_read() and friends detect coroutine context > > > at runtime is because it is meant for legac

[Qemu-devel] [PATCH v3 0/2] block: Fix hang with mirroring qcow2

2016-04-05 Thread Fam Zheng
See patch 1 for the bug analysis. v3: Make bdrv_co_drain a public function and use it directly in block/mirror.c. [Stefan] Fam Zheng (2): block: Fix bdrv_drain in coroutine mirror: Replace bdrv_drain(bs) with bdrv_co_drain(bs) block/io.c| 45 +++

[Qemu-devel] [PATCH v3 1/2] block: Fix bdrv_drain in coroutine

2016-04-05 Thread Fam Zheng
Using the nested aio_poll() in coroutine is a bad idea. This patch replaces the aio_poll loop in bdrv_drain with a BH, if called in coroutine. For example, the bdrv_drain() in mirror.c can hang when a guest issued request is pending on it in qemu_co_mutex_lock(). Mirror coroutine in this case has

[Qemu-devel] [PATCH v3 2/2] mirror: Replace bdrv_drain(bs) with bdrv_co_drain(bs)

2016-04-05 Thread Fam Zheng
Suggested-by: Stefan Hajnoczi Signed-off-by: Fam Zheng --- block/mirror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/mirror.c b/block/mirror.c index f64db1a..c2cfc1a 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -650,7 +650,7 @@ static void coroutine_fn mirro

[Qemu-devel] [PATCH v4 0/5] Add param Error ** for msi_init()

2016-04-05 Thread Cao jin
v4 changelog: 1. split into 5 patches, according to comments (Marcel) 2. fix to other minor comments (Marcel) 3. most devices have msi/msix(except vmxnet3 & pvscsi) property as a switch, if it has and is switched on, then msi_init() failure should results in return directly. So in this versio

[Qemu-devel] [PATCH v4 4/5] mptsas: change .realize function name

2016-04-05 Thread Cao jin
All the other devices` .realize function name are xxx_realize, except this one Signed-off-by: Cao jin CC: Paolo Bonzini --- hw/scsi/mptsas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c index 499c146..1c18c84 100644 --- a/hw/scsi/mp

[Qemu-devel] [PATCH v4 1/5] fix some coding style problems

2016-04-05 Thread Cao jin
This patch comes along with patch "Add param Error ** for msi_init". Add more newlines to make the code block well separated; add more comments for msi_init; and fix a indentation. Signed-off-by: Cao jin CC: Dmitry Fleytman CC: Jason Wang CC: Michael S. Tsirkin --- hw/net/vmxnet3.c

[Qemu-devel] [PATCH v4 2/5] change pvscsi_init_msi() type to void

2016-04-05 Thread Cao jin
Nobody use its return value, so change the type to void Signed-off-by: Cao jin CC: Paolo Bonzini CC: Dmitry Fleytman --- hw/scsi/vmw_pvscsi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c index 9abc086..4ce3581 100644 --- a/h

[Qemu-devel] [PATCH v4 5/5] Add param Error ** for msi_init()

2016-04-05 Thread Cao jin
Add param Error **errp, and change pci_add_capability() to pci_add_capability2(), because pci_add_capability() report error, and msi_init() is widely used in realize(), so it is not suitable for realize() Also fix all the callers who should deal with the msi_init() failure but actually not. Signe

Re: [Qemu-devel] efi var store migration assert (bdrv_co_do_pwritev: Assertion `!(bs->open_flags & 0x0800)' failed.)

2016-04-05 Thread Dr. David Alan Gilbert
* Laszlo Ersek (ler...@redhat.com) wrote: > On 04/05/16 12:48, Dr. David Alan Gilbert wrote: > > * Paolo Bonzini (pbonz...@redhat.com) wrote: > >> > >> > >> On 01/04/2016 19:58, Dr. David Alan Gilbert wrote: > >>> In the continuing journeys of trying to migrate a q35 guest with ovmf, > >>> I've jus

[Qemu-devel] [PATCH v4 3/5] megasas: bugfix

2016-04-05 Thread Cao jin
msi_init returns non-zero value on both failure and success Signed-off-by: Cao jin CC: Hannes Reinecke CC: Paolo Bonzini --- hw/scsi/megasas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c index a63a581..56fb645 100644 --- a/hw/scsi/m

Re: [Qemu-devel] [PATCH v4 0/5] Add param Error ** for msi_init()

2016-04-05 Thread Michael S. Tsirkin
On Tue, Apr 05, 2016 at 07:26:37PM +0800, Cao jin wrote: > v4 changelog: > 1. split into 5 patches, according to comments (Marcel) > 2. fix to other minor comments (Marcel) > 3. most devices have msi/msix(except vmxnet3 & pvscsi) property as a switch, >if it has and is switched on, then msi_ini

Re: [Qemu-devel] efi var store migration assert (bdrv_co_do_pwritev: Assertion `!(bs->open_flags & 0x0800)' failed.)

2016-04-05 Thread Laszlo Ersek
On 04/05/16 13:25, Dr. David Alan Gilbert wrote: > * Laszlo Ersek (ler...@redhat.com) wrote: >> On 04/05/16 12:48, Dr. David Alan Gilbert wrote: >>> * Paolo Bonzini (pbonz...@redhat.com) wrote: On 01/04/2016 19:58, Dr. David Alan Gilbert wrote: > In the continuing journeys of try

[Qemu-devel] [patch v6 01/12] vfio: extract vfio_get_hot_reset_info as a single function

2016-04-05 Thread Cao jin
From: Chen Fan the function is used to get affected devices by bus reset. so here extract it, and can used for aer soon. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 66 +++ 1 file changed, 48 insertions(+), 18 deletions(-) diff --git a/h

[Qemu-devel] [patch v6 00/12] vfio-pci: pass the aer error to guest, part2

2016-04-05 Thread Cao jin
From: Chen Fan v5-v6: 1. register resume handler both qemu and kernel to ensure the reset in order. 2. fix the patches 6/12, 7/12 as Alex and MST sugguestion. v4-v5: 1. add back the common function 0 hotplug code in pci core. 2. fix a sporadic device stuck on D3 problem when do

[Qemu-devel] [patch v6 04/12] vfio: add aer support for vfio device

2016-04-05 Thread Cao jin
From: Chen Fan Calling pcie_aer_init to initilize aer related registers for vfio device, then reload physical related registers to expose device capability. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 85 --- hw/vfio/pci.h | 3 +++ 2 fil

[Qemu-devel] [patch v6 07/12] pci: add a pci_function_is_valid callback to check function if valid

2016-04-05 Thread Cao jin
From: Chen Fan PCI hotplug requires that function 0 is added last to close the slot. Since vfio supporting AER, we require that the VM bus contains the same set of devices as the host bus to support AER, we can perform an AER validation test whenever a function 0 in the VM is hot-added. Signed-

[Qemu-devel] [patch v6 03/12] vfio: add pcie extended capability support

2016-04-05 Thread Cao jin
From: Chen Fan For vfio pcie device, we could expose the extended capability on PCIE bus. due to add a new pcie capability at the tail of the chain, in order to avoid config space overwritten, we introduce a copy config for parsing extended caps. and rebuild the pcie extended config space. Signe

[Qemu-devel] [patch v6 02/12] vfio: squeeze out vfio_pci_do_hot_reset for support bus reset

2016-04-05 Thread Cao jin
From: Chen Fan squeeze out vfio_pci_do_hot_reset to do host bus reset when AER recovery. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 75 +++ 1 file changed, 44 insertions(+), 31 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c ind

  1   2   3   >