[Qemu-devel] [PULL 1/8] Postcopy: Avoid 0 length discards

2016-06-10 Thread Amit Shah
From: "Dr. David Alan Gilbert" The discard code in migration/ram.c would send request for zero length discards in the case where no discards were needed. It doesn't appear to have had any bad effect. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Denis V. Lunev Message-Id: <1463489755-3070

[Qemu-devel] [PULL 3/8] Postcopy: Add stats on page requests

2016-06-10 Thread Amit Shah
From: "Dr. David Alan Gilbert" On the source, add a count of page requests received from the destination. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Eric Blake Reviewed-by: Denis V. Lunev Message-Id: <1463489755-30703-4-git-send-email-dgilb...@redhat.com> Signed-off-by: Amit Shah ---

[Qemu-devel] [PULL 0/8] migration: fixes

2016-06-10 Thread Amit Shah
The following changes since commit 0c33682d5f29b0a4ae53bdec4c8e52e4fae37b34: target-i386: Move user-mode exception actions out of user-exec.c (2016-06-09 15:55:02 +0100) are available in the git repository at: https://git.kernel.org/pub/scm/virt/qemu/amit/migration.git tags/migration-for-2

[Qemu-devel] [PULL 6/8] Postcopy: Check for support when setting the capability

2016-06-10 Thread Amit Shah
From: "Dr. David Alan Gilbert" Knowing whether the destination host supports migration with postcopy can be tricky. The destination doesn't need the capability set, however if we set it then use the opportunity to do the test and tell the user/management layer early. Signed-off-by: Dr. David Ala

[Qemu-devel] [PULL 2/8] Migration: Split out ram part of qmp_query_migrate

2016-06-10 Thread Amit Shah
From: "Dr. David Alan Gilbert" The RAM section of qmp_query_migrate is reasonably complex and repeated 3 times. Split it out into a helper. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Eric Blake Reviwed-by: Denis V. Lunev Message-Id: <1463489755-30703-3-git-send-email-dgilb...@redhat.

[Qemu-devel] [PULL 4/8] test: Postcopy

2016-06-10 Thread Amit Shah
From: "Dr. David Alan Gilbert" This is a postcopy test (x86 only) that actually runs the guest and checks the memory contents. The test runs from an x86 boot block with the hex embedded in the test; the source for this is: ... .code16 .org 0x7c00 .file "fill.s" .text

[Qemu-devel] [PULL 7/8] migration: fix typos in qapi-schema from latest migration additions

2016-06-10 Thread Amit Shah
From: "Daniel P. Berrange" Recent migration QAPI enhancements had a few spelling mistakes and also incorrect version number in a few places. Signed-off-by: Daniel P. Berrange Reviewed-by: Eric Blake Message-Id: <1464776234-9910-2-git-send-email-berra...@redhat.com> Signed-off-by: Amit Shah --

[Qemu-devel] [PULL 5/8] tests: fix libqtest socket timeouts

2016-06-10 Thread Amit Shah
From: Andrea Arcangeli I kept getting timeouts and unix socket accept failures under high load, the patch fixes it. Signed-off-by: Andrea Arcangeli Reviewed-by: Marcel Apfelbaum Message-Id: <1463489755-30703-6-git-send-email-dgilb...@redhat.com> Signed-off-by: Amit Shah --- tests/libqtest.c

[Qemu-devel] [PULL 8/8] migration: rename functions to starting migrations

2016-06-10 Thread Amit Shah
From: "Daniel P. Berrange" Apply the following renames for starting incoming migration: process_incoming_migration -> migration_fd_process_incoming migration_set_incoming_channel -> migration_channel_process_incoming migration_tls_set_incoming_channel -> migration_tls_channel_process_incoming

Re: [Qemu-devel] [PATCH 03/10] target-i386: cpu: move xcc->kvm_required check to realize time

2016-06-10 Thread Igor Mammedov
On Thu, 9 Jun 2016 15:34:30 -0300 Eduardo Habkost wrote: > On Mon, Jun 06, 2016 at 05:16:45PM +0200, Igor Mammedov wrote: > > it will allow to drop custom cpu_x86_init() and use > > cpu_generic_init() insteadi, reducing cpu_x86_create() > > to a simple 3-liner. > > > > Signed-off-by: Igor Mammed

Re: [Qemu-devel] [PATCH v2 1/6] target-i386: cpu: consolidate calls of object_property_parse() in x86_cpu_parse_featurestr

2016-06-10 Thread Igor Mammedov
On Thu, 9 Jun 2016 13:39:34 -0600 Eric Blake wrote: > On 06/09/2016 11:29 AM, Eduardo Habkost wrote: > > On Thu, Jun 09, 2016 at 07:10:58PM +0200, Igor Mammedov wrote: > > [...] > >> + > >> +if (local_err) { > >> +error_propagate(errp, local_err); > >> } > > > > error_propag

Re: [Qemu-devel] [PATCH v2 1/6] target-i386: cpu: consolidate calls of object_property_parse() in x86_cpu_parse_featurestr

2016-06-10 Thread Igor Mammedov
On Thu, 9 Jun 2016 14:29:00 -0300 Eduardo Habkost wrote: > On Thu, Jun 09, 2016 at 07:10:58PM +0200, Igor Mammedov wrote: > [...] > > + > > +if (local_err) { > > +error_propagate(errp, local_err); > > } > > error_propagate() already ignores local_err==NULL so you don't > need

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

2016-06-10 Thread Cao jin
On 06/09/2016 11:58 PM, Markus Armbruster wrote: I had only minor stylistic remarks this time. However, the series needs a rebase already. If the conflict resolution is trivial, you may add my Yes, it is trivial. just two file name changed in commit 605d52e62: -#include "vmxnet_tx_pkt.h"

Re: [Qemu-devel] [PATCH v4 1/9] qom: API to get instance_size of a type

2016-06-10 Thread Igor Mammedov
On Fri, 10 Jun 2016 14:04:41 +1000 David Gibson wrote: > On Fri, Jun 10, 2016 at 06:29:00AM +0530, Bharata B Rao wrote: > > Add an API object_type_get_size(const char *typename) that returns the > > instance_size of the give typename. I'd rename it to object_type_get_instance_size() so it'd app

[Qemu-devel] [virtio-dev] New virtio device specification

2016-06-10 Thread Christian Pinto
Hi all, we are working on a new virtio device, namely the Signal Distribution Module (SDM). The SDM routes inter-processor signals intra and inter QEMU instances, using a user-defined communication channel. At the current state the SDM provides a local channel, for intra-QEMU signals, and a channe

Re: [Qemu-devel] [virtio-dev] New virtio device specification

2016-06-10 Thread Cornelia Huck
On Fri, 10 Jun 2016 10:01:05 +0200 Christian Pinto wrote: > I am writing to understand how to start the procedure to include this > device in > the virtio specification and get a virtio device ID assigned. The best way is to prepare some patches against the standard doc (svn tree here: https://t

[Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static

2016-06-10 Thread Luke Kim
That's great! it works for me. Thanks a lot. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/955379 Title: cmake hangs with qemu-arm-static Status in QEMU: Confirmed Status in Linaro QEMU: Confi

Re: [Qemu-devel] [PATCH v4 8/9] hmp: Add 'info hotpluggable-cpus' HMP command

2016-06-10 Thread David Gibson
On Fri, Jun 10, 2016 at 06:29:07AM +0530, Bharata B Rao wrote: > This is the HMP equivalent for QMP query-hotpluggable-cpus. > > Signed-off-by: Bharata B Rao > Reviewed-by: David Gibson This has a compile error on 32-bit host, because qapi 'int' values are actually uint64s. I've fixed it in my

Re: [Qemu-devel] [virtio-dev] New virtio device specification

2016-06-10 Thread Christian Pinto
Hello Cornelia, thanks for this clarification. I will immediately start looking into this and soon release the two patches. Best, Christian On Fri, Jun 10, 2016 at 10:15 AM, Cornelia Huck wrote: > On Fri, 10 Jun 2016 10:01:05 +0200 > Christian Pinto wrote: > > > I am writing to understand h

[Qemu-devel] [RESEND] [PATCH 0/6] virtio: refactor host notifiers

2016-06-10 Thread Cornelia Huck
Hi, this is a resend of the host notifier refactoring I last sent out on 2016/04/25. Just rebased on current master and pushed out to github.com/cohuck/qemu host-notifier-refactor. Blurb from the last posting follows: This still fixes an issue where we have no ioeventfd for a short time, but it

[Qemu-devel] [PATCH 4/6] virtio-pci: convert to ioeventfd callbacks

2016-06-10 Thread Cornelia Huck
Convert to new interface. Signed-off-by: Cornelia Huck --- hw/virtio/virtio-pci.c | 124 - 1 file changed, 41 insertions(+), 83 deletions(-) diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index bfedbbf..ca2003c 100644 --- a/hw/virtio

[Qemu-devel] [PATCH 5/6] virtio-mmio: convert to ioeventfd callbacks

2016-06-10 Thread Cornelia Huck
Convert to the new interface. Signed-off-by: Cornelia Huck --- hw/virtio/virtio-mmio.c | 128 1 file changed, 41 insertions(+), 87 deletions(-) diff --git a/hw/virtio/virtio-mmio.c b/hw/virtio/virtio-mmio.c index d4cd91f..eb84b74 100644 --- a/hw/

[Qemu-devel] [PATCH 3/6] virtio-ccw: convert to ioeventfd callbacks

2016-06-10 Thread Cornelia Huck
Use the new interface. Signed-off-by: Cornelia Huck --- hw/s390x/virtio-ccw.c | 133 +- 1 file changed, 45 insertions(+), 88 deletions(-) diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c index 2b68e5e..2feb6dc 100644 --- a/hw/s390x/virti

[Qemu-devel] [PATCH 1/6] virtio-bus: common ioeventfd infrastructure

2016-06-10 Thread Cornelia Huck
Introduce a set of ioeventfd callbacks on the virtio-bus level that can be implemented by the individual transports. At the virtio-bus level, do common handling for host notifiers (which is actually most of it). Two things of note: - When setting the host notifier, we only switch from/to the gen

[Qemu-devel] [PATCH 2/6] virtio-bus: have callers tolerate new host notifier api

2016-06-10 Thread Cornelia Huck
Have vhost and dataplane use the new api for transports that have been converted. Signed-off-by: Cornelia Huck --- hw/block/dataplane/virtio-blk.c | 14 +++--- hw/scsi/virtio-scsi-dataplane.c | 20 +++- hw/virtio/vhost.c | 20 3 files ch

Re: [Qemu-devel] [PATCH] ui: fix regression in printing VNC host/port on startup

2016-06-10 Thread Gerd Hoffmann
On Mi, 2016-06-08 at 11:42 +0100, Daniel P. Berrange wrote: > If VNC is chosen as the compile time default display backend, > QEMU will print the host/port it listens on at startup. > Previously this would look like > > VNC server running on '::1:5900' > > but in 04d2529da27db512dcbd5e99d0e26d3

Re: [Qemu-devel] [PATCH V3] block/iscsi: allow caching of the allocation map

2016-06-10 Thread Peter Lieven
Am 30.05.2016 um 08:33 schrieb Peter Lieven: > Am 25.05.2016 um 01:10 schrieb Eric Blake: >> On 05/24/2016 02:40 AM, Peter Lieven wrote: >>> until now the allocation map was used only as a hint if a cluster >>> is allocated or not. If a block was not allocated (or Qemu had >>> no info about the all

[Qemu-devel] [PATCH 6/6] virtio-bus: remove old set_host_notifier callback

2016-06-10 Thread Cornelia Huck
All users have been converted to the new ioevent callbacks. Signed-off-by: Cornelia Huck --- hw/block/dataplane/virtio-blk.c | 12 ++-- hw/scsi/virtio-scsi-dataplane.c | 19 --- hw/virtio/vhost.c | 13 + include/hw/virtio/virtio-bus.h | 1 - 4

Re: [Qemu-devel] [PATCH] ui/console-gl: Add support for big endian display surfaces

2016-06-10 Thread Gerd Hoffmann
On Mo, 2016-06-06 at 22:01 +0200, Thomas Huth wrote: > This is required for running QEMU on big endian hosts (like > PowerPC machines) that use RGB instead of BGR byte ordering. Added to ui patch queue. thanks, Gerd

[Qemu-devel] [PATCH v8 2/4] ipmi: Add SMBIOS table entry

2016-06-10 Thread minyard
From: Corey Minyard Add an IPMI table entry to the SMBIOS. Signed-off-by: Corey Minyard Acked-by: Michael S. Tsirkin --- hw/smbios/Makefile.objs | 2 + hw/smbios/no_smbios_type_38.c | 14 + hw/smbios/smbios.c| 2 + hw/smbios/smbios_type_38.c| 117 +++

[Qemu-devel] [PATCH v8 1/4] smbios: Move table build tools into an include file.

2016-06-10 Thread minyard
From: Corey Minyard This will let things in other files (like IPMI) build SMBIOS tables. Signed-off-by: Corey Minyard --- hw/smbios/smbios.c | 70 -- hw/smbios/smbios_build.h | 87 2 files changed, 93 in

[Qemu-devel] [PATCH v8 3/4] acpi: Add IPMI table entries

2016-06-10 Thread minyard
From: Corey Minyard Use the ACPI table construction tools to create an ACPI entry for IPMI. This adds a function called build_acpi_ipmi_devices to add an DSDT entry for IPMI if IPMI is compiled in and an IPMI device exists. It also adds a dummy function if IPMI is not compiled in. This conform

Re: [Qemu-devel] [PATCH] gtk: fix vte version check

2016-06-10 Thread Gerd Hoffmann
On Mi, 2016-06-08 at 21:43 +, Olaf Hering wrote: > vte_terminal_set_encoding takes 3 args since 0.38.0. > This fixes commit fba958c6 ("gtk: implement set_echo") Added to ui patch queue. thanks, Gerd

[Qemu-devel] [PATCH v8 4/4] bios: Add tests for the IPMI ACPI and SMBIOS entries

2016-06-10 Thread minyard
From: Corey Minyard Signed-off-by: Corey Minyard --- tests/acpi-test-data/pc/DSDT.ipmikcs | Bin 0 -> 5575 bytes tests/acpi-test-data/q35/DSDT.ipmibt | Bin 0 -> 8340 bytes tests/bios-tables-test.c | 60 --- 3 files changed, 56 insertions(+), 4 delet

[Qemu-devel] [PATCH v8 0/4] Add IPMI to firmware tables

2016-06-10 Thread minyard
Since I haven't received any more feedback in a while... Changes from v7: * Added the proper license and author header to the smbios.h file, a copy of what was in the smbios.c file * Fixed the name of the function in the change header for the change that added the IPMI table entries (patch 3

[Qemu-devel] [PATCH v8 03/17] change pvscsi_init_msi() type to void

2016-06-10 Thread Cao jin
Nobody use its return value, so change the type to void. cc: Paolo Bonzini cc: Markus Armbruster cc: Marcel Apfelbaum Reviewed-by: Markus Armbruster Acked-by: Dmitry Fleytman Reviewed-by: Marcel Apfelbaum Signed-off-by: Cao jin --- hw/scsi/vmw_pvscsi.c | 4 +--- 1 file changed, 1 insertio

[Qemu-devel] [PATCH v8 00/17] Add param Error ** for msi_init()

2016-06-10 Thread Cao jin
v8 changelog: 1. address all stylistic remarks (Markus) 2. add two new patches(16&17) which I missed in last round, shoot the unnecessary internal msi flag. 3. rebase on the upstream, fix trivial conflict in vmxnet3: -#include "vmxnet_tx_pkt.h" -#include "vmxnet_rx_pkt.h" +#include

[Qemu-devel] [PATCH v8 09/17] megasas: change msi/msix property type

2016-06-10 Thread Cao jin
>From bit to enum OnOffAuto. cc: Hannes Reinecke cc: Paolo Bonzini cc: Michael S. Tsirkin cc: Markus Armbruster cc: Marcel Apfelbaum Reviewed-by: Markus Armbruster Signed-off-by: Cao jin --- hw/scsi/megasas.c | 28 +++- 1 file changed, 11 insertions(+), 17 deletion

[Qemu-devel] [PATCH v8 04/17] megasas: Fix check for msi_init() failure

2016-06-10 Thread Cao jin
msi_init returns non-zero value on both failure and success. cc: Paolo Bonzini cc: Marcel Apfelbaum cc: Markus Armbruster Reviewed-by: Markus Armbruster Reviewed-by: Marcel Apfelbaum Signed-off-by: Cao jin --- hw/scsi/megasas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[Qemu-devel] [PATCH v8 13/17] megasas: remove unnecessary megasas_use_msi()

2016-06-10 Thread Cao jin
megasas overwrites user configuration when msi_init fail to flag internal msi state, which is unsuitable. megasa_use_msi() is unnecessary, we can call msi_uninit() directly when unrealize, even no need to call msi_enabled() first. cc: Hannes Reinecke cc: Paolo Bonzini cc: Markus Armbruster cc:

[Qemu-devel] [PATCH v8 06/17] usb xhci: change msi/msix property type

2016-06-10 Thread Cao jin
>From bit to enum OnOffAuto cc: Gerd Hoffmann cc: Michael S. Tsirkin cc: Markus Armbruster cc: Marcel Apfelbaum Reviewed-by: Markus Armbruster Signed-off-by: Cao jin --- hw/usb/hcd-xhci.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/hw/usb/hcd-xhci.c

[Qemu-devel] [PATCH v8 05/17] mptsas: change .realize function name

2016-06-10 Thread Cao jin
All the other devices` .realize function name are xxx_realize, except this one. cc: Paolo Bonzini cc: Markus Armbruster Reviewed-by: Markus Armbruster Reviewed-by: Marcel Apfelbaum Signed-off-by: Cao jin --- hw/scsi/mptsas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --

[Qemu-devel] [PATCH v8 08/17] mptsas: change msi property type

2016-06-10 Thread Cao jin
>From uint32 to enum OnOffAuto, and give it a shorter name. cc: Paolo Bonzini cc: Michael S. Tsirkin cc: Markus Armbruster cc: Marcel Apfelbaum Reviewed-by: Markus Armbruster Signed-off-by: Cao jin --- hw/scsi/mptsas.c | 5 +++-- hw/scsi/mptsas.h | 3 ++- 2 files changed, 5 insertions(+),

[Qemu-devel] [PATCH v8 14/17] mptsas: remove unnecessary internal msi state flag

2016-06-10 Thread Cao jin
Internal flag msi_in_use in unnecessary, msi_uninit() could be called directly, and msi_enabled() is enough to check device msi state. cc: Markus Armbruster cc: Marcel Apfelbaum cc: Paolo Bonzini cc: Michael S. Tsirkin Reviewed-by: Markus Armbruster Signed-off-by: Cao jin --- hw/scsi/mptsa

[Qemu-devel] [PATCH v8 11/17] msi_init: change return value to 0 on success

2016-06-10 Thread Cao jin
No caller use its return value as msi capability offset, also in order to make its return behaviour consistent with msix_init(). cc: Michael S. Tsirkin cc: Paolo Bonzini cc: Hannes Reinecke cc: Markus Armbruster cc: Marcel Apfelbaum Acked-by: Hannes Reinecke Reviewed-by: Markus Armbruster

[Qemu-devel] [PATCH v8 17/17] e1000e: remove unnecessary internal msi state flag

2016-06-10 Thread Cao jin
Internal big flag E1000E_USE_MSI is unnecessary, also is the helper function: e1000e_init_msi(), e1000e_cleanup_msi(), so, remove them all. cc: Dmitry Fleytman cc: Jason Wang cc: Markus Armbruster cc: Marcel Apfelbaum cc: Michael S. Tsirkin Signed-off-by: Cao jin --- hw/net/e1000e.c | 33 +

[Qemu-devel] [PATCH v8 02/17] fix some coding style problems

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

[Qemu-devel] [PULL 5/5] console: ignore ui_info updates which don't actually update something

2016-06-10 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Message-id: 1464597673-26464-1-git-send-email-kra...@redhat.com --- ui/console.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/console.c b/ui/console.c index bf38579..ce1e105 100644 --- a/ui/console.c +++ b/ui/console.c @@ -1453,16 +1453

[Qemu-devel] [PATCH v8 15/17] vmw_pvscsi: remove unnecessary internal msi state flag

2016-06-10 Thread Cao jin
Internal flag msi_used is uncesessary, msi_uninit() could be called directly, msi_enabled() is enough to check device msi state. cc: Paolo Bonzini cc: Dmitry Fleytman cc: Markus Armbruster cc: Marcel Apfelbaum cc: Michael S. Tsirkin Reviewed-by: Markus Armbruster Signed-off-by: Cao jin ---

[Qemu-devel] [PATCH v8 16/17] vmxnet3: remove unnecessary internal msi state flag

2016-06-10 Thread Cao jin
Internal flag msi_used is unnecessary, it has the same effect as msi_enabled(). msi_uninit() could be called directly without risk. cc: Dmitry Fleytman cc: Jason Wang cc: Markus Armbruster cc: Marcel Apfelbaum cc: Michael S. Tsirkin Signed-off-by: Cao jin --- hw/net/vmxnet3.c | 15 +---

[Qemu-devel] [PATCH v8 07/17] intel-hda: change msi property type

2016-06-10 Thread Cao jin
>From uint32 to enum OnOffAuto. msi_enabled() should be enough to check device msi state, and change local variant type from int to bool. cc: Gerd Hoffmann cc: Michael S. Tsirkin cc: Markus Armbruster cc: Marcel Apfelbaum Signed-off-by: Cao jin --- hw/audio/intel-hda.c | 9 + 1 file

[Qemu-devel] [PATCH v8 12/17] pci: Convert msi_init() to Error and fix callers to check it

2016-06-10 Thread Cao jin
msi_init() reports errors with error_report(), which is wrong when it's used in realize(). Fix by converting it to Error. Fix its callers to handle failure instead of ignoring it. For those callers who don't handle the failure, it might happen: when user want msi on, but he doesn't get what he w

[Qemu-devel] [PATCH v8 01/17] pci core: assert ENOSPC when add capability

2016-06-10 Thread Cao jin
ENOSPC is programming error, assert it for debugging. cc: Michael S. Tsirkin cc: Marcel Apfelbaum cc: Markus Armbruster Reviewed-by: Markus Armbruster Reviewed-by: Marcel Apfelbaum Signed-off-by: Cao jin --- hw/pci/pci.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --g

[Qemu-devel] [PULL 2/5] ui: fix regression in printing VNC host/port on startup

2016-06-10 Thread Gerd Hoffmann
From: "Daniel P. Berrange" If VNC is chosen as the compile time default display backend, QEMU will print the host/port it listens on at startup. Previously this would look like VNC server running on '::1:5900' but in 04d2529da27db512dcbd5e99d0e26d333f16efcc the ':' was accidentally replaced w

[Qemu-devel] [PULL 3/5] gtk: fix vte version check

2016-06-10 Thread Gerd Hoffmann
From: Olaf Hering vte_terminal_set_encoding takes 3 args since 0.38.0. This fixes commit fba958c6 ("gtk: implement set_echo") Signed-off-by: Olaf Hering Message-id: 20160608214352.32669-1-o...@aepfle.de Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[Qemu-devel] [PATCH v8 10/17] pci bridge dev: change msi property type

2016-06-10 Thread Cao jin
>From bit to enum OnOffAuto. cc: Michael S. Tsirkin cc: Markus Armbruster cc: Marcel Apfelbaum Reviewed-by: Markus Armbruster Signed-off-by: Cao jin --- hw/pci-bridge/pci_bridge_dev.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/hw/pci-bridge/pci_bridge_

[Qemu-devel] [PATCH v9 04/10] softfloat: For Mips only, correct order in pickNaNMulAdd()

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic Only for Mips platform, and only for cases when snan_bit_is_one is 0, correct the order of argument comparisons in pickNaNMulAdd(). For more info, see [1], page 53, section "3.5.3 NaN Propagation". [1] "MIPS Architecture for Programmers Volume IV-j: The MIPS32 SIMD

[Qemu-devel] [PATCH v9 03/10] softfloat: For Mips only, correct default NaN values

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic Only for Mips platform, and only for cases when snan_bit_is_one is 0, correct default NaN values (in their 16-, 32-, and 64-bit flavors). For more info, see [1], page 84, Table 6.3 "Value Supplied When a New Quiet NaN Is Created", and [2], page 52, Table 3.7 "Default Na

[Qemu-devel] [PATCH v9 00/10] IEEE 754-2008 support for Mips

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic v8 -> v9: - patches 1 and 2 slightly reorganized to separate real changes from cleanup changes more clearly - unnecessary changes removed from patches 5 and 9 - changes related to FS bit moved to a separate patch (patch 10) - mail recipients for individu

[Qemu-devel] [PATCH v9 06/10] target-mips: Activate IEEE 754-2008 signaling NaN bit meaning for MSA

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic Function msa_reset() is updated so that flag snan_bit_is_one is properly set to 0. By applying this patch, a number of incorrect MSA behaviors that require IEEE 754-2008 compliance will be fixed. Those are behaviors that (up to the moment of applying this patch) did not

Re: [Qemu-devel] [PULL 0/8] migration: fixes

2016-06-10 Thread Peter Maydell
On 10 June 2016 at 08:00, Amit Shah wrote: > The following changes since commit 0c33682d5f29b0a4ae53bdec4c8e52e4fae37b34: > > target-i386: Move user-mode exception actions out of user-exec.c > (2016-06-09 15:55:02 +0100) > > are available in the git repository at: > > https://git.kernel.org/p

[Qemu-devel] [PATCH v9 02/10] softfloat: Clean code format in fpu/softfloat-specialize.h

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic fpu/softfloat-specialize.h is the most critical file in SoftFloat library, since it handles numerous differences between platforms in relation to floating point arithmetics. This patch makes the code in this file more consistent format-wise, and hopefully easier to debug

[Qemu-devel] [PULL 4/5] ui/console-gl: Add support for big endian display surfaces

2016-06-10 Thread Gerd Hoffmann
From: Thomas Huth This is required for running QEMU on big endian hosts (like PowerPC machines) that use RGB instead of BGR byte ordering. Ticket: https://bugs.launchpad.net/qemu/+bug/1581796 Signed-off-by: Thomas Huth Message-id: 1465243261-26731-1-git-send-email-th...@redhat.com Signed-off-by

[Qemu-devel] [PATCH v9 08/10] target-mips: Add nan2008 flavor of ..

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic New set of helpers for handling nan2008-syle versions of instructions .., for Mips R6. All involved instructions have float operand and integer result. Their core functionality is implemented via invocations of appropriate SoftFloat functions. The problematic cases are

[Qemu-devel] [PATCH v9 09/10] target-mips: Implement FCR31's R/W bitmask and related functionalities

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic This patch implements read and write access rules for Mips floating point control and status register (FCR31). The change can be divided into following parts: - Add fields that will keep FCR31's R/W bitmask in procesor definitions and processor float_status structure.

[Qemu-devel] [PULL 1/5] vnc: drop unused depth arg for set_pixel_format

2016-06-10 Thread Gerd Hoffmann
Spotted by Coverity. Cc: Paolo Bonzini Signed-off-by: Gerd Hoffmann Message-id: 1465204725-31562-1-git-send-email-kra...@redhat.com --- ui/vnc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ui/vnc.c b/ui/vnc.c index c862fdc..942cfb9 100644 --- a/ui/vnc.c +++ b/ui/vn

Re: [Qemu-devel] [PATCH v6 8/9] target-mips: Add nan2008 flavor of ..

2016-06-10 Thread Aleksandar Markovic
I referred to SoftFloat library in QEMU code, and the case "Operand is smaller than INT_MIN" is different between SoftFloat and Mips-B, while the case "Operand is a NaN" is different between SoftFloat and Mips-A. Aleksandar From: Maciej Rozycki Sent: Tues

[Qemu-devel] [PATCH v9 10/10] target-mips: Add FCR31's FS bit definition

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic Add preprocessor definition of FCR31's FS bit, and update related code for setting this bit. Signed-off-by: Aleksandar Markovic --- target-mips/cpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target-mips/cpu.h b/target-mips/cpu.h index 7c81

[Qemu-devel] [PULL 0/5] ui: misc bug fixes

2016-06-10 Thread Gerd Hoffmann
repository at: git://git.kraxel.org/qemu tags/pull-ui-20160610-1 for you to fetch changes up to 1185fde40c3ba02406665b9ee0743270c526be26: console: ignore ui_info updates which don't actually update something (2016-06-10 11:16:18

[Qemu-devel] Troubleshooting migrations wiki page

2016-06-10 Thread Dr. David Alan Gilbert
Hi, I've put together a wiki page on troubleshooting failed migrations; see: http://wiki.qemu.org/Features/Migration/Troubleshooting Dave -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK

[Qemu-devel] [PATCH v9 01/10] softfloat: Implement run-time-configurable meaning of signaling NaN bit

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic This patch modifies SoftFloat library so that it can be configured in run-time in relation to the meaning of signaling NaN bit, while, at the same time, strictly preserving its behavior on all existing platforms. Background: In floating-point calculations, there is a n

[Qemu-devel] [PATCH v9 05/10] linux-user: Update preprocessor constants for Mips-specific e_flags bits

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic Missing values EF_MIPS_FP64 and EF_MIPS_NAN2008 added. Reviewed-by: Leon Alrae Signed-off-by: Thomas Schwinge Signed-off-by: Maciej W. Rozycki Signed-off-by: Aleksandar Markovic --- include/elf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/elf.h b

[Qemu-devel] [PATCH v9 07/10] target-mips: Add abs2008 flavor of .

2016-06-10 Thread Aleksandar Markovic
From: Aleksandar Markovic Updated handling of instructions .. Note that legacy (pre-abs2008) ABS and NEG instructions are arithmetic (and, therefore, any NaN operand causes signaling invalid operation), while abs2008 ones are non-arithmetic, always and only changing the sign bit, even for NaN-lik

Re: [Qemu-devel] [PATCH v6 8/9] target-mips: Add nan2008 flavor of ..

2016-06-10 Thread Maciej W. Rozycki
On Fri, 10 Jun 2016, Aleksandar Markovic wrote: > I referred to SoftFloat library in QEMU code, and the case "Operand is > smaller than INT_MIN" is different between SoftFloat and Mips-B, while > the case "Operand is a NaN" is different between SoftFloat and Mips-A. Ah, but then you just can a

Re: [Qemu-devel] [PATCH] hw/timer: Add value matching support to aspeed_timer

2016-06-10 Thread Peter Maydell
On 10 June 2016 at 01:59, Andrew Jeffery wrote: > On Thu, 2016-06-09 at 19:15 +0100, Peter Maydell wrote: >> On 27 May 2016 at 06:08, Andrew Jeffery wrote: >> > >> > Value matching allows Linux to boot with CONFIG_NO_HZ_IDLE=y on the >> > palmetto-bmc machine. Two match registers are provided for

Re: [Qemu-devel] [Xen-devel] [PULL 3/4] xen: add pvUSB backend

2016-06-10 Thread Gerd Hoffmann
On Di, 2016-06-07 at 10:35 +0200, Olaf Hering wrote: > On Mon, May 23, Gerd Hoffmann wrote: > > > +++ b/hw/usb/Makefile.objs > > +common-obj-$(CONFIG_XEN_BACKEND) += xen-usb.o > > +++ b/hw/usb/xen-usb.c > > +usb_bus_new(&usbif->bus, sizeof(usbif->bus), &xen_usb_bus_ops, > > xen_sysdev); > >

[Qemu-devel] [PATCH v5 1/6] Postcopy: Avoid 0 length discards

2016-06-10 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" The discard code in migration/ram.c would send request for zero length discards in the case where no discards were needed. It doesn't appear to have had any bad effect. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Denis V. Lunev --- migration/ram.c | 4 +++

[Qemu-devel] [PATCH v5 5/6] tests: fix libqtest socket timeouts

2016-06-10 Thread Dr. David Alan Gilbert (git)
From: Andrea Arcangeli I kept getting timeouts and unix socket accept failures under high load, the patch fixes it. Signed-off-by: Andrea Arcangeli Reviewed-by: Marcel Apfelbaum --- tests/libqtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libqtest.c b/tests/l

[Qemu-devel] [PATCH v5 3/6] Postcopy: Add stats on page requests

2016-06-10 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" On the source, add a count of page requests received from the destination. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Eric Blake Reviewed-by: Denis V. Lunev --- hmp.c | 4 include/migration/migration.h | 2 ++ migration/migr

[Qemu-devel] [PATCH v5 0/6] postcopy (& 1 test) patch for 2.7

2016-06-10 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Hi, This is a small set of postcopy changes, the largest of which is an x86 test for postcopy. Andrea's libqtest change came about from running my test under very heavy load. The test includes a self contained migration workload that rapidly changes RAM in a pre

[Qemu-devel] [PATCH v5 2/6] Migration: Split out ram part of qmp_query_migrate

2016-06-10 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" The RAM section of qmp_query_migrate is reasonably complex and repeated 3 times. Split it out into a helper. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Eric Blake Reviwed-by: Denis V. Lunev --- migration/migration.c | 57 ---

[Qemu-devel] [PATCH v5 6/6] Postcopy: Check for support when setting the capability

2016-06-10 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Knowing whether the destination host supports migration with postcopy can be tricky. The destination doesn't need the capability set, however if we set it then use the opportunity to do the test and tell the user/management layer early. Signed-off-by: Dr. David Ala

Re: [Qemu-devel] [PATCH v6 05/13] register: QOMify

2016-06-10 Thread Peter Maydell
On 12 May 2016 at 23:46, Alistair Francis wrote: > From: Peter Crosthwaite > > QOMify registers as a child of TYPE_DEVICE. This allows registers to > define GPIOs. > > Define an init helper that will do QOM initialisation. You should just squash this down into patch 2. > Signed-off-by: Peter Cr

[Qemu-devel] [PATCH v5 4/6] test: Postcopy

2016-06-10 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" This is a postcopy test (x86 only) that actually runs the guest and checks the memory contents. The test runs from an x86 boot block with the hex embedded in the test; the source for this is: ... .code16 .org 0x7c00 .file "fill.s" .text

Re: [Qemu-devel] [PATCH v6 06/13] register: Add block initialise helper

2016-06-10 Thread Peter Maydell
On 12 May 2016 at 23:46, Alistair Francis wrote: > From: Peter Crosthwaite > > Add a helper that will scan a static RegisterAccessInfo Array > and populate a container MemoryRegion with registers as defined. > > Signed-off-by: Peter Crosthwaite > Signed-off-by: Alistair Francis > --- > The reas

Re: [Qemu-devel] [PATCH v6 04/13] register: Define REG and FIELD macros

2016-06-10 Thread Peter Maydell
On 12 May 2016 at 23:46, Alistair Francis wrote: > From: Peter Crosthwaite > > Define some macros that can be used for defining registers and fields. > > The REG32 macro will define A_FOO, for the byte address of a register > as well as R_FOO for the uint32_t[] register number (A_FOO / 4). > > Th

[Qemu-devel] [PATCH v3 1/2] Make avx2 configure test work with -O2

2016-06-10 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" When configured with --extra-cflags=-O2 gcc optimised out the test and the readelf failed the check leaving avx2 disabled. Signed-off-by: Dr. David Alan Gilbert --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configur

[Qemu-devel] [PATCH v3 0/2] AVX2 configure fixes

2016-06-10 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Hi, This pair of patches fixes a couple of issues that we found during test. The first is that the configure test is pessimistic when compiled with -O2, the second is that the explicit 4.9 gcc test is a bit coarse; I've removed that test but beefed up the ./config

[Qemu-devel] [PATCH v3 2/2] avx2 configure: Use primitives in test

2016-06-10 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Use the avx2 primitives during the test, thus making sure that the compiler and assembler could actually use avx2. This also detects the failure case on gcc 4.8.x with -save-temps and avoids the need for the gcc version check in cutils. Signed-off-by: Dr. David Al

Re: [Qemu-devel] [PATCH v6 07/13] dma: Add Xilinx Zynq devcfg device model

2016-06-10 Thread Peter Maydell
On 12 May 2016 at 23:46, Alistair Francis wrote: > Add a minimal model for the devcfg device which is part of Zynq. > This model supports DMA capabilities and interrupt generation. > > Signed-off-by: Peter Crosthwaite > Signed-off-by: Alistair Francis > --- > V5: > - Corrections to the device m

Re: [Qemu-devel] [PATCH v6 08/13] xilinx_zynq: Connect devcfg to the Zynq machine model

2016-06-10 Thread Peter Maydell
On 12 May 2016 at 23:46, Alistair Francis wrote: > From: Peter Crosthwaite > > Signed-off-by: Peter Crosthwaite > Signed-off-by: Alistair Francis > --- > V4: > - Small corrections to the device model logic > > hw/arm/xilinx_zynq.c | 8 > 1 file changed, 8 insertions(+) > > diff --git

Re: [Qemu-devel] [PATCH 03/10] target-i386: cpu: move xcc->kvm_required check to realize time

2016-06-10 Thread Eduardo Habkost
On Fri, Jun 10, 2016 at 09:15:44AM +0200, Igor Mammedov wrote: > On Thu, 9 Jun 2016 15:34:30 -0300 > Eduardo Habkost wrote: > > > On Mon, Jun 06, 2016 at 05:16:45PM +0200, Igor Mammedov wrote: > > > it will allow to drop custom cpu_x86_init() and use > > > cpu_generic_init() insteadi, reducing cp

[Qemu-devel] [PULL 0/8] migration: fixes

2016-06-10 Thread Amit Shah
The following changes since commit 0c33682d5f29b0a4ae53bdec4c8e52e4fae37b34: target-i386: Move user-mode exception actions out of user-exec.c (2016-06-09 15:55:02 +0100) are available in the git repository at: https://git.kernel.org/pub/scm/virt/qemu/amit/migration.git tags/migration-for-

[Qemu-devel] [PULL 4/8] Migration: Split out ram part of qmp_query_migrate

2016-06-10 Thread Amit Shah
From: "Dr. David Alan Gilbert" The RAM section of qmp_query_migrate is reasonably complex and repeated 3 times. Split it out into a helper. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Eric Blake Reviwed-by: Denis V. Lunev Message-Id: <146776-23286-3-git-send-email-dgilb...@redhat.

[Qemu-devel] [PULL 3/8] Postcopy: Avoid 0 length discards

2016-06-10 Thread Amit Shah
From: "Dr. David Alan Gilbert" The discard code in migration/ram.c would send request for zero length discards in the case where no discards were needed. It doesn't appear to have had any bad effect. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Denis V. Lunev Message-Id: <146776-2328

[Qemu-devel] [PATCH] target-i386: Remove assert(kvm_enabled()) from host_x86_cpu_initfn()

2016-06-10 Thread Eduardo Habkost
The code will be changed to allow creation of the CPU object and report kvm_required errors only at realizefn, so we need to make the instance_init function more flexible. Signed-off-by: Eduardo Habkost --- I am applying this before "Move xcc->kvm_required check to realize time" to avoid triggeri

[Qemu-devel] [PULL 8/8] Postcopy: Check for support when setting the capability

2016-06-10 Thread Amit Shah
From: "Dr. David Alan Gilbert" Knowing whether the destination host supports migration with postcopy can be tricky. The destination doesn't need the capability set, however if we set it then use the opportunity to do the test and tell the user/management layer early. Signed-off-by: Dr. David Ala

[Qemu-devel] [PULL 5/8] Postcopy: Add stats on page requests

2016-06-10 Thread Amit Shah
From: "Dr. David Alan Gilbert" On the source, add a count of page requests received from the destination. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Eric Blake Reviewed-by: Denis V. Lunev Message-Id: <146776-23286-4-git-send-email-dgilb...@redhat.com> Signed-off-by: Amit Shah ---

[Qemu-devel] [PULL 1/8] migration: fix typos in qapi-schema from latest migration additions

2016-06-10 Thread Amit Shah
From: "Daniel P. Berrange" Recent migration QAPI enhancements had a few spelling mistakes and also incorrect version number in a few places. Signed-off-by: Daniel P. Berrange Reviewed-by: Eric Blake Message-Id: <1464776234-9910-2-git-send-email-berra...@redhat.com> Signed-off-by: Amit Shah --

Re: [Qemu-devel] [PATCH 07/10] target-sparc: cpu: use sparc_cpu_parse_features() directly

2016-06-10 Thread Eduardo Habkost
On Wed, Jun 08, 2016 at 01:30:11PM -0300, Eduardo Habkost wrote: > On Mon, Jun 06, 2016 at 05:16:49PM +0200, Igor Mammedov wrote: > > make SPARC target use sparc_cpu_parse_features() directly > > so it won't get in the way of switching other propertified > > targets to handling features as global p

  1   2   3   >