[Qemu-devel] [PULL 3/3] vfio-pci: Reset workaround for AMD Bonaire and Hawaii GPUs

2015-04-28 Thread Alex Williamson
Somehow these GPUs manage not to respond to a PCI bus reset, removing our primary mechanism for resetting graphics cards. The result is that these devices typically work well for a single VM boot. If the VM is rebooted or restarted, the guest driver is not able to init the card from the dirty sta

Re: [Qemu-devel] [PULL 00/76] Block patches

2015-04-28 Thread Peter Maydell
On 28 April 2015 at 15:59, Kevin Wolf wrote: > The following changes since commit 84cbd63f87c1d246f51ec8eee5367a5588f367fd: > > Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into > staging (2015-04-28 12:22:20 +0100) > > are available in the git repository at: > > > gi

Re: [Qemu-devel] [PATCH v4 0/2] virtio: Move host features to backends

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 04:35:16PM +0200, Michael S. Tsirkin wrote: > On Tue, Apr 28, 2015 at 03:24:19PM +0200, Cornelia Huck wrote: > > On Tue, 28 Apr 2015 14:16:40 +0100 > > Peter Maydell wrote: > > > > > On 28 April 2015 at 14:13, Michael S. Tsirkin wrote: > > > > The patches look correct to

[Qemu-devel] [Bug 1449687] [NEW] block migration of qcow2 VMs copies all empty space

2015-04-28 Thread Andrew Bogott
Public bug reported: I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10. I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original ima

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

2015-04-28 Thread Peter Crosthwaite
On Tue, Apr 28, 2015 at 2:18 AM, Eric Auger wrote: > 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

Re: [Qemu-devel] [PATCH v3 08/16] hw/intc/arm_gic: Make ICCICR/GICC_CTLR banked

2015-04-28 Thread Peter Maydell
On 27 April 2015 at 16:00, Peter Maydell wrote: > On 15 April 2015 at 17:02, Greg Bellows wrote: >> From: Fabian Aggeler >> >> ICCICR/GICC_CTLR is banked in GICv1 implementations with Security >> Extensions or in GICv2 in independent from Security Extensions. >> This makes it possible to enable

Re: [Qemu-devel] [PATCH v4 0/2] virtio: Move host features to backends

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 08:14:44PM +0200, Michael S. Tsirkin wrote: > On Tue, Apr 28, 2015 at 04:35:16PM +0200, Michael S. Tsirkin wrote: > > On Tue, Apr 28, 2015 at 03:24:19PM +0200, Cornelia Huck wrote: > > > On Tue, 28 Apr 2015 14:16:40 +0100 > > > Peter Maydell wrote: > > > > > > > On 28 Apri

Re: [Qemu-devel] [PATCH v4 0/2] virtio: Move host features to backends

2015-04-28 Thread Peter Maydell
On 28 April 2015 at 19:14, Michael S. Tsirkin wrote: > On Tue, Apr 28, 2015 at 04:35:16PM +0200, Michael S. Tsirkin wrote: >> On Tue, Apr 28, 2015 at 03:24:19PM +0200, Cornelia Huck wrote: >> > Yep, see my other reply... I'm not quite sure what's wrong with >> > event_idx on virtio-blk for s390-vi

Re: [Qemu-devel] [PATCH v4 0/2] virtio: Move host features to backends

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 08:32:51PM +0200, Michael S. Tsirkin wrote: > On Tue, Apr 28, 2015 at 08:14:44PM +0200, Michael S. Tsirkin wrote: > > On Tue, Apr 28, 2015 at 04:35:16PM +0200, Michael S. Tsirkin wrote: > > > On Tue, Apr 28, 2015 at 03:24:19PM +0200, Cornelia Huck wrote: > > > > On Tue, 28 A

Re: [Qemu-devel] [PATCH v4 0/2] virtio: Move host features to backends

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 07:34:29PM +0100, Peter Maydell wrote: > On 28 April 2015 at 19:14, Michael S. Tsirkin wrote: > > On Tue, Apr 28, 2015 at 04:35:16PM +0200, Michael S. Tsirkin wrote: > >> On Tue, Apr 28, 2015 at 03:24:19PM +0200, Cornelia Huck wrote: > >> > Yep, see my other reply... I'm no

[Qemu-devel] [PATCH] qmp-commands: Fix typo

2015-04-28 Thread John Snow
Just a trivial patch to correct a QMP example in qmp-commands.hx. Signed-off-by: John Snow --- qmp-commands.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qmp-commands.hx b/qmp-commands.hx index 213508f..d4a837c 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -2

Re: [Qemu-devel] [PATCH v5 0/4] configure: clang 3.5.0 build fixes

2015-04-28 Thread John Snow
On 03/30/2015 11:10 AM, Stefan Hajnoczi wrote: On Wed, Mar 25, 2015 at 06:57:35PM -0400, John Snow wrote: QEMU does not compile cleanly under clang 3.5.0. These patches eliminate the avalanche of warnings and make the build usable. The result is that you *should* be able to use clang 3.5.0 *wi

Re: [Qemu-devel] [PATCH v5 0/4] configure: clang 3.5.0 build fixes

2015-04-28 Thread John Snow
On 04/28/2015 03:32 PM, John Snow wrote: On 03/30/2015 11:10 AM, Stefan Hajnoczi wrote: On Wed, Mar 25, 2015 at 06:57:35PM -0400, John Snow wrote: QEMU does not compile cleanly under clang 3.5.0. These patches eliminate the avalanche of warnings and make the build usable. The result is that

Re: [Qemu-devel] [PATCH] qmp-commands: Fix typo

2015-04-28 Thread Eric Blake
On 04/28/2015 01:20 PM, John Snow wrote: > Just a trivial patch to correct a QMP example in qmp-commands.hx. > > Signed-off-by: John Snow > --- > qmp-commands.hx | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-30

Re: [Qemu-devel] [PATCH] bios-tables-test: handle false-positive smbios signature matches

2015-04-28 Thread Gabriel L. Somlo
ping ? On Tue, Mar 31, 2015 at 02:32:20PM -0400, Gabriel L. Somlo wrote: > Rather than stopping at the first match for the SMBIOS signature > ("_SM_") in the f-segment (0xF-0xF), continue scanning > until either a valid entry point table is found, or the f-segment > has been exhausted. >

Re: [Qemu-devel] [PATCH v6 02/36] qapi: Document type-safety considerations

2015-04-28 Thread Eric Blake
On 04/04/2015 10:07 PM, Eric Blake wrote: > Go into more details about the various types of valid expressions > in a qapi schema, including tweaks to document fixes being done > later in the current patch series. Also fix some stale and missing > documentation in the QMP specification. > > Signed

Re: [Qemu-devel] [PATCH] bios-tables-test: handle false-positive smbios signature matches

2015-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2015 at 03:40:37PM -0400, Gabriel L. Somlo wrote: > ping ? > > On Tue, Mar 31, 2015 at 02:32:20PM -0400, Gabriel L. Somlo wrote: > > Rather than stopping at the first match for the SMBIOS signature > > ("_SM_") in the f-segment (0xF-0xF), continue scanning > > until either

[Qemu-devel] [PATCH v2] bios-tables-test: handle false-positive smbios signature matches

2015-04-28 Thread Gabriel L. Somlo
It has been reported that sometimes the .rodata section of SeaBIOS, containing the constant string against which the SMBIOS signature ends up being compared, also falls withing the guest f-segment. In that case, the test obviously fails, unless we continue searching for the *real* smbios entry poin

Re: [Qemu-devel] [PATCH v2] bios-tables-test: handle false-positive smbios signature matches

2015-04-28 Thread Eric Blake
On 04/28/2015 01:55 PM, Gabriel L. Somlo wrote: > It has been reported that sometimes the .rodata section of SeaBIOS, > containing the constant string against which the SMBIOS signature > ends up being compared, also falls withing the guest f-segment. In s/withing/within/ > that case, the test ob

Re: [Qemu-devel] [Consult] About SPRs information

2015-04-28 Thread Chen Gang
On 4/28/15 06:04, Richard Henderson wrote: > On 04/27/2015 02:12 PM, Chen Gang wrote: >> Now, I am blocked at SPRs: "mtspr SPR_CMPEXCH_VALUE %r12", and trying to >> solve it. > > SPR_CMPEXCH_VALUE should be present in your cpu structure, should be a TCGv > like all of your other registers, and thi

Re: [Qemu-devel] [RFC 0/2] macio: split out unaligned DMA access into separate functions

2015-04-28 Thread Mark Cave-Ayland
On 17/03/15 07:23, Alexander Graf wrote: > On 09.03.15 23:24, Mark Cave-Ayland wrote: >> This patchset attempts to separate out the IDE/ATAPI logic from the unaligned >> DMA access logic for macio which provides the following benefits: >> >> 1) Reduced code complexity >> >> The existing macio IDE/

Re: [Qemu-devel] [PATCH 1/8] tls: require compiler support for __thread

2015-04-28 Thread Emilio G. Cota
On Tue, Jan 13, 2015 at 22:07:19 +, Peter Maydell wrote: > On 13 January 2015 at 20:27, Paolo Bonzini wrote: > > On 13/01/2015 21:00, Peter Maydell wrote: > >> Hmm. That's a chunk of users who are now going to have to > >> change the way they've been building QEMU. Does configure > >> at least

Re: [Qemu-devel] [RFC 0/2] macio: split out unaligned DMA access into separate functions

2015-04-28 Thread John Snow
On 04/28/2015 04:57 PM, Mark Cave-Ayland wrote: On 17/03/15 07:23, Alexander Graf wrote: On 09.03.15 23:24, Mark Cave-Ayland wrote: This patchset attempts to separate out the IDE/ATAPI logic from the unaligned DMA access logic for macio which provides the following benefits: 1) Reduced code

Re: [Qemu-devel] [RFC 0/2] macio: split out unaligned DMA access into separate functions

2015-04-28 Thread Mark Cave-Ayland
On 28/04/15 22:07, John Snow wrote: > On 04/28/2015 04:57 PM, Mark Cave-Ayland wrote: >> On 17/03/15 07:23, Alexander Graf wrote: >> >>> On 09.03.15 23:24, Mark Cave-Ayland wrote: This patchset attempts to separate out the IDE/ATAPI logic from the unaligned DMA access logic for maci

Re: [Qemu-devel] [Consult] About SPRs information

2015-04-28 Thread Chen Gang
On 4/29/15 04:19, Chen Gang wrote: > On 4/28/15 06:04, Richard Henderson wrote: >> On 04/27/2015 02:12 PM, Chen Gang wrote: >>> Now, I am blocked at SPRs: "mtspr SPR_CMPEXCH_VALUE %r12", and trying to >>> solve it. >> >> SPR_CMPEXCH_VALUE should be present in your cpu structure, should be a TCGv >>

[Qemu-devel] [PATCH] Add documentation of CPU flags for -cpu option

2015-04-28 Thread Alex Bligh
The current documentation for -cpu merely refers the user to run -cpu help, but whilst this lists the flags, it doesn't actually say how to use them. Signed-off-by: Alex Bligh --- qemu-options.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu-options.hx b/qemu-optio

Re: [Qemu-devel] [PATCH 2/7] target-mips: support Page Frame Number Extension field

2015-04-28 Thread James Hogan
On Tue, Apr 28, 2015 at 04:59:20PM +0100, Leon Alrae wrote: > Hi James, > > On 28/04/2015 14:35, James Hogan wrote: > > > > > > On 28/04/15 13:41, Leon Alrae wrote: > >> Update tlb->PFN to contain PFN concatenated with PFNX. PFNX is 0 if large > >> physical address is not supported. > >> > >> Si

Re: [Qemu-devel] [Consult] About SPRs information

2015-04-28 Thread Peter Maydell
On 28 April 2015 at 22:32, Chen Gang wrote: > The related information for cmpexch instruction: > > Description > > Compare the 8-byte contents of the CmpValue SPR with the 8-byte > value in memory at the address held in the first source register. If > the values are not equal, then n

Re: [Qemu-devel] [PATCH 6/7] target-mips: remove invalid comments in translate_init.c

2015-04-28 Thread James Hogan
On Tue, Apr 28, 2015 at 01:41:13PM +0100, Leon Alrae wrote: > Signed-off-by: Leon Alrae I think this deserves a bit more explanation. Isn't 59 bits still the true architectural limit? Cheers James > --- > target-mips/translate_init.c | 9 - > 1 file changed, 9 deletions(-) > > diff --g

Re: [Qemu-devel] [PATCH v6 07/36] qapi: Better error messages for bad enums

2015-04-28 Thread Eric Blake
On 04/04/2015 10:07 PM, Eric Blake wrote: > The previous commit demonstrated that the generator had several > flaws with less-than-perfect enums: > +++ b/tests/qapi-schema/enum-max-member.json > @@ -1,3 +1,3 @@ > -# FIXME: we should either reject user-supplied 'max', or munge the implicit > -# max

[Qemu-devel] [PULL 04/10] qtest/ahci: Add simple flush test

2015-04-28 Thread John Snow
Signed-off-by: John Snow Message-id: 1426018503-821-2-git-send-email-js...@redhat.com --- tests/ahci-test.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/tests/ahci-test.c b/tests/ahci-test.c index 6686242..4a5c788 100644 --- a/tests/ahci-test.c +++ b/tes

[Qemu-devel] [PULL 00/10] Ide patches

2015-04-28 Thread John Snow
The following changes since commit a9392bc93c8615ad1983047e9f91ee3fa8aae75f: Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (2015-04-28 16:55:03 +0100) are available in the git repository at: https://github.com/jnsnow/qemu.git tags/ide-pull-request for you to f

[Qemu-devel] [PULL 01/10] fdc: remove sparc sun4m mutations

2015-04-28 Thread John Snow
From: Hervé Poussineau They were introduced in 6f7e9aec5eb5bdfa57a9e458e391b785c283a007 and 82407d1a4035e5bfefb53ffdcb270872f813b34c and lots of bug fixes were done after that. This fixes (at least) the detection of the floppy controller on Debian 4.0r9/SPARC, and SS-5's OBP initialization rou

[Qemu-devel] [PULL 08/10] libqos: add blkdebug_prepare_script

2015-04-28 Thread John Snow
Pull this helper out of ide-test and into libqos, to be shared with ahci-test. Signed-off-by: John Snow Message-id: 1426018503-821-6-git-send-email-js...@redhat.com --- tests/ide-test.c | 23 +-- tests/libqos/libqos.c | 22 ++ tests/libqos/libqos.h |

[Qemu-devel] [PULL 02/10] qtest/ahci: add qcow2 support to ahci-test

2015-04-28 Thread John Snow
This will enable the testing of high offsets without wasting a lot of disk space, and does not impact the previous tests. mkimg and mkqcow2 are added to libqos for other tests. Signed-off-by: John Snow Acked-by: Stefan Hajnoczi Message-id: 1426274523-22661-2-git-send-email-js...@redhat.com ---

[Qemu-devel] [PULL 06/10] libqtest: add qmp_eventwait

2015-04-28 Thread John Snow
Allow the user to poll until a desired interrupt occurs. Signed-off-by: John Snow Message-id: 1426018503-821-4-git-send-email-js...@redhat.com --- tests/ide-test.c | 11 +-- tests/libqtest.c | 16 tests/libqtest.h | 20 3 files changed, 37 insertions

[Qemu-devel] [PULL 07/10] libqtest: add qmp_async

2015-04-28 Thread John Snow
Add qmp_async, which lets us send QMP commands asynchronously. This is useful when we want to send commands that will trigger event responses, but we don't know in what order to expect them. Sometimes the event responses may arrive even before the command confirmation will show up, so it is conven

[Qemu-devel] [PULL 10/10] qtest: Add assertion that required environment variable is set

2015-04-28 Thread John Snow
From: Ed Maste Signed-off-by: Ed Maste Reviewed-by: John Snow Message-id: 1427911244-22565-1-git-send-email-ema...@freebsd.org Signed-off-by: John Snow --- tests/libqtest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/libqtest.c b/tests/libqtest.c index 659a3c7..a525dc5 100644 --

[Qemu-devel] [PULL 05/10] qtest/ahci: Allow override of default CLI options

2015-04-28 Thread John Snow
Signed-off-by: John Snow Message-id: 1426018503-821-3-git-send-email-js...@redhat.com --- tests/ahci-test.c| 67 tests/libqos/libqos-pc.c | 5 tests/libqos/libqos-pc.h | 1 + 3 files changed, 51 insertions(+), 22 deletions(-) diff -

[Qemu-devel] [PULL 09/10] qtest/ahci: add flush retry test

2015-04-28 Thread John Snow
Signed-off-by: John Snow Message-id: 1426018503-821-7-git-send-email-js...@redhat.com --- tests/ahci-test.c | 44 1 file changed, 44 insertions(+) diff --git a/tests/ahci-test.c b/tests/ahci-test.c index cd7d2ce..7c23bb2 100644 --- a/tests/ahci-test.c

[Qemu-devel] [PULL 03/10] qtest/ahci: test different disk sectors

2015-04-28 Thread John Snow
Test sector offset 0, 1, and the last sector(s) in LBA28 and LBA48 modes. Signed-off-by: John Snow Acked-by: Stefan Hajnoczi Message-id: 1426274523-22661-3-git-send-email-js...@redhat.com --- tests/ahci-test.c | 68 +++-- tests/libqos/ahci.c | 1

Re: [Qemu-devel] [PULL 00/22] Memory, TCG, NBD, build system changes for 2015-04-27

2015-04-28 Thread Fam Zheng
On Tue, 04/28 16:54, Peter Maydell wrote: > On 28 April 2015 at 15:40, Paolo Bonzini wrote: > > The following changes since commit e1a5476354d396773e4c555f126d752d4ae58fa9: > > > > Open 2.4 development tree (2015-04-25 22:05:07 +0100) > > > > are available in the git repository at: > > > > git

Re: [Qemu-devel] [REBASE PATCH v5 2/2] spapr: override default ram size to 1GB

2015-04-28 Thread David Gibson
On Tue, Apr 28, 2015 at 01:32:15PM +0200, Thomas Huth wrote: > On Tue, 28 Apr 2015 12:23:26 +0530 > Nikunj A Dadhania wrote: > > > Signed-off-by: Nikunj A Dadhania > > Reviewed-by: Igor Mammedov > > --- > > hw/ppc/spapr.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/hw/ppc/s

Re: [Qemu-devel] [REBASE PATCH v5 1/2] machine: add default_ram_size to machine class

2015-04-28 Thread David Gibson
On Tue, Apr 28, 2015 at 01:30:29PM +0200, Thomas Huth wrote: > On Tue, 28 Apr 2015 12:23:25 +0530 > Nikunj A Dadhania wrote: [snip] > Looks good to me. > > Reviewed-by: Thomas Huth Same here, Reviewed-by: David Gibson -- David Gibson| I'll have my music baroque, and my c

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

2015-04-28 Thread David Gibson
On Tue, Apr 28, 2015 at 05:25:37PM +1000, Alexey Kardashevskiy wrote: > 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

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

2015-04-28 Thread David Gibson
On Tue, Apr 28, 2015 at 10:37:08AM +0200, Michael S. Tsirkin wrote: > 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 gues

Re: [Qemu-devel] [PATCH v6 11/36] qapi: Tighten checking of unions

2015-04-28 Thread Eric Blake
On 04/27/2015 12:32 PM, Eric Blake wrote: > On 04/27/2015 12:15 PM, Markus Armbruster wrote: >> Eric Blake writes: >> >>> Previous commits demonstrated that the generator had several >>> flaws with less-than-perfect unions: > >>> +++ b/tests/qapi-schema/alternate-array.json >>> @@ -1,4 +1,4 @@ >>

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

2015-04-28 Thread Alexey Kardashevskiy
On 04/22/2015 08:35 PM, 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 unify this, the patch ad

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 23:54, Michael S. Tsirkin wrote: > On Tue, Apr 28, 2015 at 05:13:10PM +0200, Igor Mammedov wrote: >>> Here I need to set the value of buffer to 1 or 0, we could >>> createbitfield, but if we want to set the value to non one or zero and >>> the BufferSize is large, how could we do? Crea

[Qemu-devel] [PATCH v4 3/7] poll: Add epoll implementation for qemu_poll

2015-04-28 Thread Fam Zheng
This implements qemu_poll with ppoll + epoll. The only complex part is qemu_poll_set_fds, which will sync up epollfd with epoll_ctl by computing the symmetric difference of previous and new fds. The ppoll is used to retain ns precision of timeout. Signed-off-by: Fam Zheng --- Makefile.objs |

[Qemu-devel] [PATCH v4 2/7] posix-aio: Use QEMU poll interface

2015-04-28 Thread Fam Zheng
The AIO handler list is only modified by aio_set_fd_handler, so we can easily add del poll fd there. Initialize a QEMUPoll and keep track of all the fds, so we don't need to rebuild a GPollFD array for g_poll in aio_poll. Signed-off-by: Fam Zheng --- aio-posix.c | 26

[Qemu-devel] [PATCH v4 1/7] poll: Introduce QEMU Poll API

2015-04-28 Thread Fam Zheng
This is abstract of underlying poll implementation. A glib implementation is included. Signed-off-by: Fam Zheng --- Makefile.objs | 2 +- include/qemu/poll.h | 40 +++ include/qemu/typedefs.h | 4 +- poll-glib.c | 130 +++

[Qemu-devel] [PATCH v4 0/7] aio: Support epoll by introducing qemu_poll abstraction

2015-04-28 Thread Fam Zheng
v4: Rebase to 2.3 and rerun tests. timerfd+epoll shows clear improvement over current master when the virtio-console device attaches more fds to the main loop: syscall high # of fd low # of fd - qemu.git(ppoll) 24

[Qemu-devel] [PATCH v4 4/7] main-loop: Replace qemu_poll_ns with qemu_poll

2015-04-28 Thread Fam Zheng
qemu_poll_set_fds + qemu_poll does the same, and when epoll is available, it is faster. Signed-off-by: Fam Zheng --- include/qemu/timer.h | 13 - main-loop.c | 35 ++- qemu-timer.c | 28 3 files changed, 30

[Qemu-devel] [PATCH v4 7/7] poll-linux: Add timerfd support

2015-04-28 Thread Fam Zheng
In qemu_poll_timerfd, we arm the timerfd with timeout_ns. The timerfd is also watched by epollfd, so that when there is no other events, epoll_wait will still return on time, even though we pass -1 (wait infinitely). Signed-off-by: Fam Zheng --- poll-linux.c | 80

[Qemu-devel] [PATCH v4 5/7] tests: Add test case for qemu_poll

2015-04-28 Thread Fam Zheng
Signed-off-by: Fam Zheng --- tests/Makefile| 2 + tests/test-poll.c | 272 ++ 2 files changed, 274 insertions(+) create mode 100644 tests/test-poll.c diff --git a/tests/Makefile b/tests/Makefile index 55aa745..d152bf5 100644 --- a/tests/

[Qemu-devel] [PATCH v4 6/7] poll-glib: Support ppoll

2015-04-28 Thread Fam Zheng
Signed-off-by: Fam Zheng --- poll-glib.c | 29 ++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/poll-glib.c b/poll-glib.c index 64fde69..23d528d 100644 --- a/poll-glib.c +++ b/poll-glib.c @@ -14,6 +14,9 @@ #include "qemu-common.h" #include "qemu/timer

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

2015-04-28 Thread Nikunj A Dadhania
Alexey Kardashevskiy writes: > On 04/22/2015 08:35 PM, 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 >

[Qemu-devel] [PATCH] mb: cpu: Renumber EXCP_* constants to close gap

2015-04-28 Thread Michael Tokarev
After removal of EXCP_NMI there's a gap in EXCP_* numbering. Let's remove it. Signed-off-by: Michael Tokarev --- Since I applied Peter's series already, without renumbering, b/c he wanted to make no code changes and that's a good plan, I send this renumbering as a separate change. Hopefully this

Re: [Qemu-devel] [PATCH target-arm 2/2] arm: cpu.h: Delete unused cpu_pc_from_tb()

2015-04-28 Thread Michael Tokarev
27.04.2015 22:06, Peter Crosthwaite wrote: > Does that mean a respin of this patch or should the tricore fix and > the comment be a follow up? Can you please resend whole thing in one change, removing single unused function from two places and updating the comment, to fit all the pieces together?

Re: [Qemu-devel] [PATCH microblaze v1 0/6] Microblaze Cleanups

2015-04-28 Thread Michael Tokarev
27.04.2015 17:47, Michael Tokarev wrote: > 26.04.2015 22:10, Peter Crosthwaite wrote: >> Hi Edgar, >> >> This is some code cleanup of Microblaze. Mainly unused code >> deletion but also code share of the defconfig (P1). > > Applied all 6 to -trivial, as is, since the whole series > does not perfor

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

2015-04-28 Thread Michael Roth
Quoting David Gibson (2015-04-28 02:23:43) > 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 individu

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

2015-04-28 Thread Michael Roth
Quoting David Gibson (2015-04-28 02:25:51) > 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 diff

Re: [Qemu-devel] [PATCH v2 0/7] Remove more unused functions

2015-04-28 Thread Michael Tokarev
28.04.2015 09:38, Thomas Huth wrote: >> Date: Mon, 27 Apr 2015 20:09:50 +0200 >> From: Stefan Weil >> >> Am 27.04.2015 um 13:27 schrieb Michael Tokarev: >>> 14.03.2015 09:19, Thomas Huth wrote: Here are some more patches to remove completely unused functions from QEMU. Please review care

Re: [Qemu-devel] [PATCH 0/6] trivial fixes

2015-04-28 Thread Michael Tokarev
27.04.2015 19:45, Emilio G. Cota wrote: > Here is a hodge-podge of fixes for issues I found while reviewing > QTAILQ callers, with a .gitignore patch as a bonus. Applied to -trivial, all except the bonus. The 5/6 one (unnecessary parentheses removal) is a bit too trivial, maybe not worh a patch,

Re: [Qemu-devel] [PATCH] i440fx-test: remove ARRAY_SIZE redefinition

2015-04-28 Thread Michael Tokarev
Applied to -trivial, thanks! So much for removing one line :) /mjt

Re: [Qemu-devel] [Qemu-trivial] [PATCH] kvm: Silence warning from valgrind

2015-04-28 Thread Michael Tokarev
27.04.2015 19:59, Thomas Huth wrote: > valgrind complains here about uninitialized bytes with the following message: > > ==17814== Syscall param ioctl(generic) points to uninitialised byte(s) > ==17814==at 0x466A780: ioctl (in /usr/lib64/power8/libc-2.17.so) > ==17814==by 0x100735B7: kvm_v

Re: [Qemu-devel] [PATCH] qmp-commands: Fix typo

2015-04-28 Thread Michael Tokarev
Applied to trivial, thank you! /mjt

Re: [Qemu-devel] [PATCH 0/4] qga added functionality - ping

2015-04-28 Thread Itamar Tal
http://patchwork.ozlabs.org/patch/456533/ http://patchwork.ozlabs.org/patch/456535/ http://patchwork.ozlabs.org/patch/456536/ http://patchwork.ozlabs.org/patch/456534/ On Tue, Mar 31, 2015 at 11:34 AM, wrote: > From: Itamar Tal > > This bundle of patches adds support for some more functionality

Re: [Qemu-devel] [Qemu-trivial] [PATCH] kvm: Silence warning from valgrind

2015-04-28 Thread Thomas Huth
On Wed, 29 Apr 2015 09:34:51 +0300 Michael Tokarev wrote: > 27.04.2015 19:59, Thomas Huth wrote: > > valgrind complains here about uninitialized bytes with the following > > message: > > > > ==17814== Syscall param ioctl(generic) points to uninitialised byte(s) > > ==17814==at 0x466A780: io

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

2015-04-28 Thread Michael Tokarev
28.04.2015 12:11, arei.gong...@huawei.com wrote: > 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

Re: [Qemu-devel] [PATCH v6 00/36] drop qapi nested structs

2015-04-28 Thread Markus Armbruster
General question first: through which tree should this go? MAINTAINERS doesn't cover the QAPI generators. Closest related stanza is QAPI (Luiz, Michael R.). Should it cover the generators? Next closest is QAPI Schema (Luiz, you, myself). For completeness: because we touch qmp_query_pci_bridge(

Re: [Qemu-devel] [PATCH] kvm: Silence warning from valgrind

2015-04-28 Thread Michael Tokarev
29.04.2015 09:43, Thomas Huth wrote: > On Wed, 29 Apr 2015 09:34:51 +0300 > Michael Tokarev wrote: [] >> Hm. So, what's the difference? The same fields are assigned the same >> values, why in first case we have some uninitialized data and in second >> case everything is initialized? Does struct

<    1   2   3   4