[Qemu-devel] Ping: [PATCH] xen/pass-through: ROM BAR handling adjustments

2015-05-31 Thread Jan Beulich
Ping? >>> On 15.05.15 at 14:41, wrote: > Expecting the ROM BAR to be written with an all ones value when sizing > the region is wrong - the low bit has another meaning (enable/disable) > and bits 1..10 are reserved. The PCI spec also mandates writing all > ones to just the address portion of the

[Qemu-devel] Ping: [PATCH] xen/pass-through: fold host PCI command register writes

2015-05-31 Thread Jan Beulich
Ping? >>> On 15.05.15 at 14:46, wrote: > The code introduced to address XSA-126 allows simplification of other > code in xen_pt_initfn(): All we need to do is update "cmd" suitably, > as it'll be written back to the host register near the end of the > function anyway. > > Signed-off-by: Jan Beul

[Qemu-devel] [Bug 1460523] [NEW] target-arm/op_helper.c:424: bad assert

2015-05-31 Thread dcb
Public bug reported: /home/dcb/qemu/trunk/qemu/target-arm/op_helper.c: In function ‘helper_access_check_cp_reg’: /home/dcb/qemu/trunk/qemu/target-arm/op_helper.c:424:52: error: comparison of constant ‘3’ with boolean expression is always false [-Werror=bool-compare] assert(!arm_is_secur

Re: [Qemu-devel] [PATCH] Use Aff1 with mpidr

2015-05-31 Thread Pavel Fedin
Hi! > I think we should take Igor's comment into account. The CPUS_PER_CLUSTER > should not be a > constant, and maybe should be initialized in arm_cpu_initfn and aarch64_{a53|a57}_initfn, as > psci need to know it. Yes, of course. Just replace a #define with something like: int cpus_per_clu

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

2015-05-31 Thread Jason Wang
On 06/01/2015 02:12 AM, Michael S. Tsirkin wrote: > On Tue, May 26, 2015 at 01:54:09AM -0400, Jason Wang wrote: >> We allocate one vhost log per vhost device. This is sub optimal when: >> >> - Guest has several device with vhost as backend >> - Guest has multiqueue devices >> >> Since each vhost

Re: [Qemu-devel] [PATCH 4/7] hw/acpi/aml-build: Add aml_gpio_int() term

2015-05-31 Thread Shannon Zhao
On 2015/6/1 2:21, Michael S. Tsirkin wrote: > On Sun, May 31, 2015 at 08:13:37PM +0200, Michael S. Tsirkin wrote: >> On Tue, May 12, 2015 at 12:24:13PM +0800, shannon.z...@linaro.org wrote: >>> From: Shannon Zhao >>> >>> Signed-off-by: Shannon Zhao >>> Signed-off-by: Shannon Zhao >>> --- >>>

Re: [Qemu-devel] [PATCH V1] cadence_gem: Fix Rx buffer size field mask

2015-05-31 Thread Peter Crosthwaite
On Thu, May 28, 2015 at 11:22 PM, Sai Pavan Boddu wrote: > This patch corrects the Rx buffer size field mask to mask bits 23 to 16 > > Signed-off-by: Sai Pavan Boddu > Reviewed-by: Alistair Francis Matches Xilinx UG585 documentation. Reviewed-by: Peter Crosthwaite Can this go via the trivial

Re: [Qemu-devel] [RFC] extensions to the -m memory option

2015-05-31 Thread Peter Crosthwaite
On Sun, May 31, 2015 at 5:14 PM, Liviu Ionescu wrote: > >> On 01 Jun 2015, at 02:44, Peter Crosthwaite >> wrote: >> >> ... I would stay away from Stellaris as much as possible for this >> framework type stuff as it is a legacy pre-qdev machine. > > ok > >> Alistair >> straightened out many of th

Re: [Qemu-devel] [PATCH 11/34] block: Allow references for backing files

2015-05-31 Thread Wen Congyang
On 05/27/2015 08:31 PM, Kevin Wolf wrote: > Am 21.05.2015 um 07:47 hat Wen Congyang geschrieben: >> On 05/09/2015 01:21 AM, Kevin Wolf wrote: >>> For bs->file, using references to existing BDSes has been possible for a >>> while already. This patch enables the same for bs->backing_hd. >> >> 1. We r

Re: [Qemu-devel] [Qemu-block] [PATCH] mirror: Skip block_job_defer_to_main_loop if already in the main context

2015-05-31 Thread Fam Zheng
On Fri, 05/29 13:37, Stefan Hajnoczi wrote: > On Fri, May 29, 2015 at 10:22:13AM +0800, Fam Zheng wrote: > > mirror_exit does the replacing, which requires source and target to be > > in sync, unfortunately we can't guarantee that before we have a complete > > block pause mechanism. So for non-data

Re: [Qemu-devel] [PATCH COLO-Frame v5 00/29] COarse-grain LOck-stepping(COLO) Virtual Machines for Non-stop Service

2015-05-31 Thread Wen Congyang
On 05/29/2015 04:42 PM, Dr. David Alan Gilbert wrote: > * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: >> On 2015/5/29 9:29, Wen Congyang wrote: >>> On 05/29/2015 12:24 AM, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: > This is the 5th vers

Re: [Qemu-devel] [RFC] extensions to the -m memory option

2015-05-31 Thread Liviu Ionescu
> On 01 Jun 2015, at 02:44, Peter Crosthwaite > wrote: > > ... I would stay away from Stellaris as much as possible for this > framework type stuff as it is a legacy pre-qdev machine. ok > Alistair > straightened out many of the mistakes in Stellaris in the STM32F work > which is a much bette

Re: [Qemu-devel] [RFC] extensions to the -m memory option

2015-05-31 Thread Peter Crosthwaite
On Sun, May 31, 2015 at 3:59 PM, Liviu Ionescu wrote: > >> On 01 Jun 2015, at 01:10, Peter Crosthwaite >> wrote: >> >> ... If >> there is an ARM doc specifying this (separate from ARM ARM M profile >> doc) then let me know, cause this will very easily justify the change >> you just made. That sa

Re: [Qemu-devel] [RFC] extensions to the -m memory option

2015-05-31 Thread Liviu Ionescu
> On 01 Jun 2015, at 01:10, Peter Crosthwaite > wrote: > > ... If > there is an ARM doc specifying this (separate from ARM ARM M profile > doc) then let me know, cause this will very easily justify the change > you just made. That said, a critical mass of manufacturers doing the > same thing ma

Re: [Qemu-devel] [RFC] extensions to the -m memory option

2015-05-31 Thread Liviu Ionescu
> On 01 Jun 2015, at 01:27, Peter Crosthwaite > wrote: > >> my branch is publicly available from SourceForge >> (https://sourceforge.net/p/gnuarmeclipse/qemu/ci/gnuarmeclipse-dev/tree/), > > I got 404d on that. hmmm... SourceForge is less and less reliable... > Do you have a github or a git

Re: [Qemu-devel] [RFC] extensions to the -m memory option

2015-05-31 Thread Peter Crosthwaite
> -Original Message- > From: Liviu Ionescu [mailto:i...@livius.net] > Sent: Sunday, May 31, 2015 3:24 PM > To: Peter Crosthwaite > Cc: Peter Maydell; Igor Mammedov; QEMU Developers; Alistair Francis > Subject: Re: [Qemu-devel] [RFC] extensions to the -m memory option > > > > On 01 Jun 201

Re: [Qemu-devel] [RFC] extensions to the -m memory option

2015-05-31 Thread Liviu Ionescu
> On 01 Jun 2015, at 01:10, Peter Crosthwaite > wrote: > > I think we are getting close to the point where we need to see some > WIP code to get a better idea. Want to send what you have so far as an > RFC patchset? my branch is publicly available from SourceForge (https://sourceforge.net/p/g

Re: [Qemu-devel] [RFC] extensions to the -m memory option

2015-05-31 Thread Peter Crosthwaite
On Sun, May 31, 2015 at 1:59 PM, Liviu Ionescu wrote: > >> On 31 May 2015, at 21:45, Peter Crosthwaite >> wrote: >> >> On Sun, May 31, 2015 at 7:05 AM, Liviu Ionescu wrote: >>> On 30 May 2015, at 12:39, Peter Crosthwaite wrote: On Fri, May 29, 2015 at 2:49 PM, Liviu Ionesc

Re: [Qemu-devel] [RFC] extensions to the -m memory option

2015-05-31 Thread Liviu Ionescu
> On 31 May 2015, at 21:45, Peter Crosthwaite > wrote: > > On Sun, May 31, 2015 at 7:05 AM, Liviu Ionescu wrote: >> >>> On 30 May 2015, at 12:39, Peter Crosthwaite >>> wrote: >>> >>> On Fri, May 29, 2015 at 2:49 PM, Liviu Ionescu wrote: however the question remains: in this nicely la

Re: [Qemu-devel] [PATCH 03/29] display: enable DIRTY_MEMORY_VGA tracking explicitly

2015-05-31 Thread Mark Cave-Ayland
On 26/05/15 12:56, Paolo Bonzini wrote: > On 26/05/2015 13:52, Peter Maydell wrote: >> On 26 May 2015 at 12:24, Paolo Bonzini wrote: Peter, Mark, Aurelien, can you review and ack this patch? >> Could you provide some explanation/documentation of when a >> display device needs to set DIRTY_ME

[Qemu-devel] [PATCH 4/4] macio: remove remainder_len DBDMA_io property

2015-05-31 Thread Mark Cave-Ayland
Since the block alignment code is now effectively independent of the DMA implementation, this variable is no longer required and can be removed. Signed-off-by: Mark Cave-Ayland --- hw/ide/macio.c | 13 - include/hw/ppc/mac_dbdma.h |1 - 2 files changed, 14 deletions

[Qemu-devel] [PATCH 3/4] macio: update comment/constants to reflect the new code

2015-05-31 Thread Mark Cave-Ayland
With the offset/len functions taking care of all of the alignment mapping in isolation from the DMA tranasaction, many comments are now unnecessary. Remove these and tidy up a few constants at the same time. Signed-off-by: Mark Cave-Ayland --- hw/ide/macio.c | 46 +-

[Qemu-devel] [PATCH 2/4] macio: switch pmac_dma_write() over to new offset/len implementation

2015-05-31 Thread Mark Cave-Ayland
In particular, this fixes a bug whereby chains of overlapping head/tail chains would incorrectly write over each other's remainder cache. This is the access pattern used by OS X/Darwin and fixes an issue with a corrupt Darwin installation in my local tests. While we are here, rename the DBDMA_io s

[Qemu-devel] [PATCH 1/4] macio: switch pmac_dma_read() over to new offset/len implementation

2015-05-31 Thread Mark Cave-Ayland
For better handling of unaligned block device accesses. Signed-off-by: Mark Cave-Ayland --- hw/ide/macio.c | 102 ++-- 1 file changed, 40 insertions(+), 62 deletions(-) diff --git a/hw/ide/macio.c b/hw/ide/macio.c index 585a27b..f1ac001 10064

[Qemu-devel] [PATCH 0/4] macio: change DMA methods over to offset/len implementation

2015-05-31 Thread Mark Cave-Ayland
This patchset follows on from my recent work on fixing issues with the macio controller, and remodels the new pmac_dma_read() and pmac_dma_write() functions in a similar manner to the unaligned block functions. With this in place, long chains of overlapping unaligned requests as used by OS X/Darwi

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

2015-05-31 Thread Mark Cave-Ayland
On 22/05/15 19:20, John Snow wrote: > As a post-script, can Darwin/PPC use a different mechanism for ATA at > all, or is macio the sole ATA interface we support here? > > I want to see if I can pinpoint when a "good" bath and when a bad path > diverges with respect to the disk contents ... > > O

[Qemu-devel] [PULL 55/57] acpi: add aml_while() term

2015-05-31 Thread Michael S. Tsirkin
From: Marcel Apfelbaum Add encoding for ACPI DefWhile Opcode. Reviewed-by: Shannon Zhao Reviewed-by: Igor Mammedov Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + 1 file changed, 1 insertion(+) diff -

[Qemu-devel] [PULL 53/57] acpi: add aml_shiftright() term

2015-05-31 Thread Michael S. Tsirkin
From: Marcel Apfelbaum Add encoding for ACPI DefShiftRight Opcode. Reviewed-by: Igor Mammedov Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Shannon Zhao --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 10

[Qemu-devel] [PULL 37/57] virtio-s390: introduce virtio_s390_device_plugged()

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang This patch introduce a virtio-s390 specific device_plugged() function and doing the number of virtqueue validation inside. Cc: Alexander Graf Cc: Richard Henderson Signed-off-by: Jason Wang Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/s390x/s390

[Qemu-devel] [PULL 33/57] virtio: introduce virtio_get_num_queues()

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang This patch introduces virtio_get_num_queues() which iterates the vqs array and return the number of virtqueues used by device. Signed-off-by: Jason Wang Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/virtio/virtio.h | 1 + hw/virtio/virtio.

[Qemu-devel] [PULL 29/57] virtio-ccw: Don't advertise VIRTIO_F_BAD_FEATURE

2015-05-31 Thread Michael S. Tsirkin
From: Cornelia Huck This was copied from virtio-pci, but it doesn't make much sense for ccw, as it doesn't have to handle the broken implementations this bit is supposed to deal with. Remove it. Signed-off-by: Cornelia Huck Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin ---

[Qemu-devel] [PULL 28/57] virtio: move host_features

2015-05-31 Thread Michael S. Tsirkin
From: Cornelia Huck Move host_features from the individual transport proxies into the virtio device. Transports may continue to add feature bits during device plugging. This should it make easier to offer different sets of host features for virtio-1/transitional support. Tested-by: Shannon Zhao

[Qemu-devel] [PULL 26/57] pc: Generate init functions with a macro

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost All pc-i440fx and pc-q35 init functions simply call the corresponding compat function and then call the main init function. Use a macro to generate that code. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/pc

[Qemu-devel] [PULL 57/57] virtio-mmio: ioeventfd support

2015-05-31 Thread Michael S. Tsirkin
From: Ying-Shiuan Pan set_host_notifier and set_guest_notifiers supported by virtio-mmio now. Most code copied from virtio-pci. This makes it possible to use vhost-net with virtio-mmio, improving performance by about 30%. The kvm-arm does not yet support irqfd, need to fix the hard-coded part a

[Qemu-devel] [PULL 25/57] piix: Eliminate pc_init_pci()

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost The function is not needed anymore, we can simply call pc_init1() directly. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/pc_piix.c | 31 +-- 1 file changed, 13 insertions(+), 18

[Qemu-devel] [PULL 54/57] acpi: add aml_increment() term

2015-05-31 Thread Michael S. Tsirkin
From: Marcel Apfelbaum Add encoding for ACPI DefIncrement Opcode. Reviewed-by: Shannon Zhao Reviewed-by: Igor Mammedov Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 8 ++

[Qemu-devel] [PULL 21/57] pc: Don't use QEMUMachine anymore

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost Now that we have a DEFINE_PC_MACHINE helper macro that just requires an initialization function, it is trivial to convert them to register a QOM machine class directly, instead of using QEMUMachine. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off

[Qemu-devel] [PULL 20/57] pc: Move compat_props setting inside *_machine_options() functions

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost This will simplify the DEFINE_PC_MACHINE macro, and will help us to implement reuse of PC_COMPAT_* macros through class_init function reuse, in the future. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/i3

[Qemu-devel] [PULL 48/57] TPM2 ACPI table support

2015-05-31 Thread Michael S. Tsirkin
From: Stefan Berger Add a TPM2 ACPI table if a TPM 2 is used in the backend. Also add an SSDT for the TPM 2. Rename tpm_find() to tpm_get_version() and have this function return the version of the TPM found, TPMVersion_Unspec if no TPM is found. Use the version number to build version specific A

Re: [Qemu-devel] [RFC] extensions to the -m memory option

2015-05-31 Thread Peter Crosthwaite
On Sun, May 31, 2015 at 7:05 AM, Liviu Ionescu wrote: > >> On 30 May 2015, at 12:39, Peter Crosthwaite >> wrote: >> >> On Fri, May 29, 2015 at 2:49 PM, Liviu Ionescu wrote: >>> however the question remains: in this nicely layered model, what command >>> line options would be more appropriate t

[Qemu-devel] [PULL 18/57] pc: Define machines using a DEFINE_PC_MACHINE macro

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost This will automatically generate the existing QEMUMachine structs based on the *_MACHINE_OPTIONS macros, and automatically add registration code for them. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/i38

[Qemu-devel] [PULL 42/57] i386/pc_q35: don't insist on board FDC if there's no default floppy

2015-05-31 Thread Michael S. Tsirkin
From: Laszlo Ersek The "no_floppy = 1" machine class setting causes "default_floppy" in main() to become zero. Consequently, default_drive() will not call drive_add() and drive_new() for IF_FLOPPY, index=0, meaning that no default floppy drive will be created for the virtual machine. In that case

[Qemu-devel] [PULL 50/57] acpi: add aml_lless() term

2015-05-31 Thread Michael S. Tsirkin
From: Marcel Apfelbaum Add encoding for ACPI DefLLess Opcode. Reviewed-by: Shannon Zhao Reviewed-by: Igor Mammedov Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 9 ++

[Qemu-devel] [PULL 56/57] hw/acpi/aml-build: Fix memory leak

2015-05-31 Thread Michael S. Tsirkin
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Igor Mammedov --- hw/acpi/aml-build.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index

[Qemu-devel] [PULL 41/57] i386/pc: '-drive if=floppy' should imply a board-default FDC

2015-05-31 Thread Michael S. Tsirkin
From: Laszlo Ersek Even if board code decides not to request the creation of the FDC (keyed off board-level factors, to be determined later), we should create the FDC nevertheless if the user passes '-drive if=floppy' on the command line. Otherwise '-drive if=floppy' would break without explicit

[Qemu-devel] [PULL 17/57] pc: Define MACHINE_OPTIONS macros consistently for all machines

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost Define a MACHINE_OPTIONS macro for each PC machine, and move every field inside the QEMUMachine structs to the macros, except for name, init, and compat_props. This also ensures that all MACHINE_OPTIONS inherit the fields from the next version, so their definitions carry on

[Qemu-devel] [PULL 52/57] acpi: add aml_shiftleft() term

2015-05-31 Thread Michael S. Tsirkin
From: Marcel Apfelbaum Add encoding for ACPI DefShiftLeft Opcode. Reviewed-by: Igor Mammedov Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Shannon Zhao --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 10

[Qemu-devel] [PULL 49/57] acpi: add aml_add() term

2015-05-31 Thread Michael S. Tsirkin
From: Marcel Apfelbaum Add encoding for ACPI DefAdd Opcode. Reviewed-by: Igor Mammedov Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Shannon Zhao --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 10 ++

[Qemu-devel] [PULL 35/57] virtio-ccw: validate the number of queues against bus limitation

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang Cc: Cornelia Huck Cc: Christian Borntraeger Cc: Richard Henderson Cc: Alexander Graf Signed-off-by: Jason Wang Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/s390x/virtio-ccw.c | 9 + 1 file changed, 9 insertions(+) diff --git a/hw/s390x

[Qemu-devel] [PULL 16/57] piix: Define PC_COMPAT_0_10

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost Move compat_props from pc-0.10 to the macro, to make it consistent with the other machines. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/pc_piix.c | 47 +-- 1 fil

[Qemu-devel] [PULL 51/57] acpi: add aml_index() term

2015-05-31 Thread Michael S. Tsirkin
From: Marcel Apfelbaum Add encoding for ACPI DefIndex Opcode. Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Shannon Zhao --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 10 ++ 2 files changed, 11

[Qemu-devel] [PULL 46/57] Extend TPM TIS interface to support TPM 2

2015-05-31 Thread Michael S. Tsirkin
From: Stefan Berger Following the recent upgrade to version 1.3, extend the TPM TIS interface with capabilities introduced for support of a TPM 2. TPM TIS for TPM 2 introduced the following extensions beyond the TPM TIS 1.3 (used for TPM 1.2): - A new 32bit interface Id register was introduced.

[Qemu-devel] [PULL 32/57] virtio: device_plugged() can fail

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang This patch passes error pointer to transport specific device_plugged() callback. Through this way, device_plugged() can do some transport specific check and fail. This will be uesd by following patches that check the number of virtqueues against the transport limitation. Cc: Cor

[Qemu-devel] [PULL 14/57] piix: Move pc-0.13 virtio-9p-pci compat to PC_COMPAT_0_13

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost The compat property was added by commit 9dbcca5aa13cb9ab40788ac4c56bc227d94ca920, and the pc-0.12 and older machine-types were not changed because virtio-9p-pci was introduced on QEMU 0.13 (commit 9f10751365b26b13b8a9b67e0e90536ae3d282df). The only problem is that this break

[Qemu-devel] [PULL 47/57] tpm: Probe for connected TPM 1.2 or TPM 2

2015-05-31 Thread Michael S. Tsirkin
From: Stefan Berger In the TPM passthrough backend driver, modify the probing code so that we can check whether a TPM 1.2 or TPM 2 is being used and adapt the behavior of the TPM TIS accordingly. Move the code that tested for a TPM 1.2 into tpm_utils.c and extend it with test for probing for TPM

[Qemu-devel] [PULL 44/57] acpi: Simplify printing to dynamic string

2015-05-31 Thread Michael S. Tsirkin
From: Markus Armbruster build_append_namestringv() and aml_string() first calculate the resulting string's length with vsnprintf(NULL, ...), then allocate, then print for real. Simply use g_strdup_vprintf() or g_vasprintf() instead. Signed-off-by: Markus Armbruster Reviewed-by: Michael S. Tsir

[Qemu-devel] [PULL 12/57] piix: Move pc-0.14 qxl compat properties to PC_COMPAT_0_14

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost Those properties were introduced by commit 3827cdb1c3aa17a792d1658161195b9d7173c26b. They were not duplicated into pc-0.13 and older because 0.14 was the first QEMU version supporting qxl. The only problem is that this breaks the PC_COMPAT_* nesting pattern we currently use.

[Qemu-devel] [PULL 31/57] virtio-net: adding all queues in .realize()

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang Instead of adding queues for multiqueue during feature set. This patch did this in .realize(), this will help the following patches that count the number of virtqueues used in .device_plugged() callback. Signed-off-by: Jason Wang Reviewed-by: Michael S. Tsirkin Signed-off-by:

[Qemu-devel] [PULL 45/57] Add stream ID to MSI write

2015-05-31 Thread Michael S. Tsirkin
From: Pavel Fedin GICv3 ITS distinguishes between devices by using hardwired device IDs passed on the bus. This patch implements passing these IDs in qemu. SMMU is also known to use stream IDs, therefore this addition can also be useful for implementing platforms with SMMU. Signed-off-by: Pave

[Qemu-devel] [PULL 43/57] i386: drop FDC in pc-q35-2.4+ if neither it nor floppy drives are wanted

2015-05-31 Thread Michael S. Tsirkin
From: Laszlo Ersek It is Very annoying to carry forward an outdatEd coNtroller with a mOdern Machine type. Hence, let us not instantiate the FDC when all of the following apply: - the machine type is pc-q35-2.4 or later, - "-device isa-fdc" is not passed on the command line (nor in the config

[Qemu-devel] [PULL 10/57] spapr: Use HW_COMPAT_* inside SPAPR_COMPAT_* macros

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost SPAPR_COMPAT_2_1 will need to include both HW_COMPAT_2_2 and HW_COMPAT_2_1, so include HW_COMPAT_2_1 inside SPAPR_COMPAT_2_1 and HW_COMPAT_2_2 inside SPAPR_COMPAT_2_2. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- h

[Qemu-devel] [PULL 27/57] pc: acpi: fix pvpanic for buggy guests

2015-05-31 Thread Michael S. Tsirkin
From: Radim Krčmář In the old times, we always had pvpanic in ACPI and a _STA method told the guest not to use it. Automatic generation dropped the _STA method as the specification says that missing _STA means enabled and working. Some guests (Linux) had buggy drivers and this change made them u

[Qemu-devel] [PULL 36/57] virtio-s390: introduce virito s390 queue limit

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang Cc: Alexander Graf Cc: Richard Henderson Signed-off-by: Jason Wang Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/s390x/s390-virtio-bus.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/s390x/s390-virtio-bus.c b/hw/s390

[Qemu-devel] [PULL 40/57] i386/pc: pc_basic_device_init(): delegate FDC creation request

2015-05-31 Thread Michael S. Tsirkin
From: Laszlo Ersek This patch introduces no observable change, but it allows the callers of pc_basic_device_init(), ie. pc_init1() and pc_q35_init(), to request (or not request) the creation of the FDC explicitly. At the moment both callers pass constant create_fdctrl=true (hence no observable c

[Qemu-devel] [PULL 09/57] pc: Define PC_COMPAT_2_[123] macros

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost Once we start adding compat code for pc-2.3, the usage of HW_COMPAT_2_1 in pc-*-2.2 won't be enough, as it also has to include PC_COMPAT_2_3 inside it. To ensure that, define PC_COMPAT_2_3, PC_COMPAT_2_2, and PC_COMPAT_2_1 macros. Signed-off-by: Eduardo Habkost Reviewed-by

[Qemu-devel] [PULL 23/57] machine: Remove unused fields from QEMUMachine

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost This removes the following fields from QEMUMachine: family, alias, reset, hot_add_cpu, units_per_default_bus, no_serial, no_parallel, use_virtcon, use_sclp, no_floppy, no_cdrom, default_display, compat_props, and hw_version. The only users of those fields were already conve

[Qemu-devel] [PULL 39/57] virtio: increase the queue limit to 1024

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang Increase the queue limit to 1024. But virtio-ccw and s390-virtio won't support this, this is done through failing device_plugged() for those two transports if the number of virtqueues is greater than 64. Signed-off-by: Jason Wang Reviewed-by: Michael S. Tsirkin Signed-off-by:

[Qemu-devel] [PULL 30/57] virtio: move VIRTIO_F_NOTIFY_ON_EMPTY into core

2015-05-31 Thread Michael S. Tsirkin
From: Cornelia Huck Nearly all transports have been offering VIRTIO_F_NOTIFY_ON_EMPTY, s390-virtio being the exception. There's no reason why it shouldn't offer it as well, though (handling is done in core anyway), so let's move it to the common virtio features. While we're changing it anyway, f

[Qemu-devel] [PULL 07/57] spapr: Move commas inside SPAPR_COMPAT_* macros

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost Changing the convention to include commas inside the macros will allow macros containing empty lists to be defined and used without compilation errors. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/ppc/spapr.c |

[Qemu-devel] [PULL 22/57] pc: Remove qemu_register_pc_machine() function

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost The helper is not needed anymore, as the PC machine classes are registered using QOM directly. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/i386/pc.h | 2 -- hw/i386/pc.c | 45 --

[Qemu-devel] [PULL 38/57] virtio: rename VIRTIO_PCI_QUEUE_MAX to VIRTIO_QUEUE_MAX

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang VIRTIO_PCI_QUEUE_MAX is not only used for pci, so rename it be generic. Cc: Amit Shah Cc: Paolo Bonzini Signed-off-by: Jason Wang Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/virtio/virtio.h | 2 +- hw/char/virtio-serial-bus.c | 2 +-

[Qemu-devel] [PULL 24/57] piix: Add kvmclock_enabled, pci_enabled globals

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost This looks like a step backwards, but it will allow pc-0.1[0123] and isapc to follow the same compat+init pattern used by the other machine-types, allowing us to generate all init function using the same macro later. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. T

[Qemu-devel] [PULL 06/57] pc: Move commas inside PC_COMPAT_* macros

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost Changing the convention to include commas inside the macros will allow macros containing empty lists to be defined and used without compilation errors. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/i386/p

[Qemu-devel] [PULL 34/57] virtio-ccw: introduce ccw specific queue limit

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang Cc: Alexander Graf Cc: Cornelia Huck Cc: Christian Borntraeger Cc: Richard Henderson Signed-off-by: Jason Wang Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/s390x/s390_flic.h | 5 - hw/s390x/s390-virtio-ccw.c | 2 +- hw/s390x/vir

[Qemu-devel] [PULL 13/57] piix: Move pc-0.11 drive version compat props to PC_COMPAT_0_11

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost The current code setting ide-drive.ver and scsi-disk.ver on pc-0.11 breaks the PC_COMPAT_* nesting pattern we currently use. As those variables are overwritten in pc-0.10 too, they can be inherited by pc-0.10 with no side-effects at all. Cc: Gerd Hoffmann Signed-off-by: E

[Qemu-devel] [PULL 19/57] pc: Convert *_MACHINE_OPTIONS macros into functions

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost By now the new functions will get QEMUMachine as argument, but they will be later converted to initialize a MachineClass struct directly. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/i386/pc.h | 42

[Qemu-devel] [PULL 04/57] pc: Replace tab with spaces

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost Coding style change only. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/i386/pc.h | 12 ++-- hw/i386/pc_piix.c| 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/hw

[Qemu-devel] [PULL 11/57] spapr: define SPAPR_COMPAT_2_3

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost Don't add the pseries-2.3 machine yet, but define the corresponding SPAPR_COMPAT macro to make sure both pseries-2.2 and pseries-2.1 will inherit HW_COMPAT_2_3. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/ppc/s

[Qemu-devel] [PULL 15/57] piix: Move pc-0.1[23] rombar compat props to PC_COMPAT_0_13

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost The VGA and vmware-svga rombar compat properties were added by commit 281a26b15b4adcecb8604216738975abd754bea8, but only to pc-0.13 and pc-0.12. This breaks the PC_COMPAT_* nesting pattern we currently follow. The new variables will now be inherited by pc-0.11 and older, bu

[Qemu-devel] [PULL 02/57] hw/virtio/virtio-pci: use alias property for virtio-balloon-pci

2015-05-31 Thread Michael S. Tsirkin
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Cornelia Huck Reviewed-by: Paolo Bonzini --- hw/virtio/virtio-pci.c | 40 ++-- 1 file changed, 6 ins

[Qemu-devel] [PULL 03/57] hw/s390x/virtio-ccw: use alias property for virtio-balloon-ccw

2015-05-31 Thread Michael S. Tsirkin
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Cornelia Huck Reviewed-by: Paolo Bonzini --- hw/s390x/virtio-ccw.c | 39 ++- 1 file changed, 6 inser

[Qemu-devel] [PULL 05/57] hw: Move commas inside HW_COMPAT_2_1 macro

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost Changing the convention to include commas inside the macros will allow macros containing empty lists to be defined and used without compilation errors. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/compat

[Qemu-devel] [PULL 08/57] hw: Define empty HW_COMPAT_2_[23] macros

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost Now we can make everything consistent and define the macros even if they are still empty. Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/compat.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/i

[Qemu-devel] [PULL 00/57] pc, pci, tpm, virtio enhancements and fixes

2015-05-31 Thread Michael S. Tsirkin
The following changes since commit 97af820f539efe80b87615a04f9de11ea585f725: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20150529' into staging (2015-05-29 17:10:57 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags

[Qemu-devel] [PULL 01/57] hw/virtio/virtio-balloon: move adding property to virtio_balloon_instance_init

2015-05-31 Thread Michael S. Tsirkin
From: Shannon Zhao This is in preparation for using alias property in virtio-balloon-pci and virtio-balloon-ccw. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Cornelia Huck Reviewed-by: Paolo Bonzini -

Re: [Qemu-devel] VFIO use of HOST_PAGE_ALIGN

2015-05-31 Thread Peter Crosthwaite
On Sun, May 31, 2015 at 6:34 AM, Alexey Kardashevskiy wrote: > On 05/27/2015 01:22 AM, Alex Williamson wrote: >> >> [cc +alexey] >> >> On Mon, 2015-05-25 at 00:48 -0700, Peter Crosthwaite wrote: >>> >>> Hi Alex and all, >>> >>> I am working on a patch series to enable multiple CPU architectures to

Re: [Qemu-devel] [PATCH 4/7] hw/acpi/aml-build: Add aml_gpio_int() term

2015-05-31 Thread Michael S. Tsirkin
On Sun, May 31, 2015 at 08:13:37PM +0200, Michael S. Tsirkin wrote: > On Tue, May 12, 2015 at 12:24:13PM +0800, shannon.z...@linaro.org wrote: > > From: Shannon Zhao > > > > Signed-off-by: Shannon Zhao > > Signed-off-by: Shannon Zhao > > --- > > hw/acpi/aml-build.c | 60 > > ++

Re: [Qemu-devel] [PATCH 1/1] Add support for PCI Enhanced Allocation "BARs"

2015-05-31 Thread Michael S. Tsirkin
On Wed, May 13, 2015 at 10:29:42AM -0700, Sean O. Stalley wrote: > On Wed, May 13, 2015 at 08:09:46AM +0200, Michael S. Tsirkin wrote: > > On Tue, May 12, 2015 at 02:23:07PM -0700, Sean O. Stalley wrote: > > > On Tue, May 12, 2015 at 11:33:49AM +0200, Michael S. Tsirkin wrote: > > > > On Mon, May 1

Re: [Qemu-devel] [PATCH v3] i386: Introduce ARAT CPU feature

2015-05-31 Thread Michael S. Tsirkin
On Mon, May 25, 2015 at 04:47:49PM +0200, Jan Kiszka wrote: > From: Jan Kiszka > > ARAT signals that the APIC timer does not stop in power saving states. > As our APICs are emulated, it's fine to expose this feature to guests, > at least when asking for KVM host features or with CPU types that >

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

2015-05-31 Thread Michael S. Tsirkin
On Tue, May 26, 2015 at 01:54:09AM -0400, Jason Wang wrote: > We allocate one vhost log per vhost device. This is sub optimal when: > > - Guest has several device with vhost as backend > - Guest has multiqueue devices > > Since each vhost device will allocate and use their private log, this > cou

Re: [Qemu-devel] [PATCH 4/7] hw/acpi/aml-build: Add aml_gpio_int() term

2015-05-31 Thread Michael S. Tsirkin
On Tue, May 12, 2015 at 12:24:13PM +0800, shannon.z...@linaro.org wrote: > From: Shannon Zhao > > Signed-off-by: Shannon Zhao > Signed-off-by: Shannon Zhao > --- > hw/acpi/aml-build.c | 60 > + > include/hw/acpi/aml-build.h | 16

Re: [Qemu-devel] [PATCH V7 23/24] apci: fix PXB behaviour if used with unsupported BIOS

2015-05-31 Thread Michael S. Tsirkin
On Mon, May 25, 2015 at 06:34:01PM +0300, Marcel Apfelbaum wrote: > PXB does not work with unsupported bioses, but should > not interfere with normal OS operation. > We don't ship them anymore, but it's reasonable > to keep the work-around until we update the bios in qemu. We already did, did we n

Re: [Qemu-devel] [PATCH v3 4/6] Introduce condition to notifiy waiters of completed command

2015-05-31 Thread Michael S. Tsirkin
Typo in subject. On Tue, May 26, 2015 at 05:33:42PM -0400, Stefan Berger wrote: > Introduce a lock and a condition to notify anyone waiting for the completion > of the execution of a TPM command by the backend (thread). The backend > uses the condition to signal anyone waiting for command completi

Re: [Qemu-devel] [PATCH v3 3/6] Support Physical Presence Interface Spec

2015-05-31 Thread Michael S. Tsirkin
On Tue, May 26, 2015 at 05:33:41PM -0400, Stefan Berger wrote: > For automated management of a TPM device, implement the TCG Physical Presence > Interface Specification that allows a root user on Linux (for example) to set > an opcode for a sequence of TPM operations that the BIOS is supposed to >

Re: [Qemu-devel] [PATCH v3 0/6] Extend TPM support with a QEMU-external TPM

2015-05-31 Thread Michael S. Tsirkin
On Tue, May 26, 2015 at 05:33:38PM -0400, Stefan Berger wrote: > The following series of patches extends TPM support with an > external TPM that offers a Linux CUSE (character device in userspace) > interface. This TPM lets each VM access its own private vTPM. > The CUSE TPM supports suspend/resume

Re: [Qemu-devel] [v7][PATCH 03/10] piix: create host bridge to passthrough

2015-05-31 Thread Michael S. Tsirkin
On Thu, Mar 19, 2015 at 09:01:27AM +0800, Chen, Tiejun wrote: > On 2015/3/18 18:21, Gerd Hoffmann wrote: > >On Mi, 2015-03-18 at 17:06 +0800, Tiejun Chen wrote: > >>Implement a pci host bridge specific to passthrough. Actually > >>this just inherits the standard one. And we also just expose > >>a m

Re: [Qemu-devel] [PATCH V4 4/4] fw_cfg: insert fw_cfg file blobs via qemu cmdline

2015-05-31 Thread Michael S. Tsirkin
On Wed, Apr 29, 2015 at 11:21:53AM -0400, Gabriel L. Somlo wrote: > Allow user supplied files to be inserted into the fw_cfg > device before starting the guest. Since fw_cfg_add_file() > already disallows duplicate fw_cfg file names, qemu will > exit with an error message if the user supplies multi

Re: [Qemu-devel] [PATCH 00/31] target-i386: SMM improvements and partial support under KVM

2015-05-31 Thread Michael S. Tsirkin
On Mon, May 11, 2015 at 03:48:46PM +0200, Paolo Bonzini wrote: > These patches implement almost everything that is needed for SMM > support in OVMF and KVM. The only missing bit is support for > SMRAM regions in KVM, but it need not block review of these ones, > and possibly inclusion of the first

Re: [Qemu-devel] [PATCH 15/31] target-i386: use memory API to implement SMRAM

2015-05-31 Thread Michael S. Tsirkin
On Mon, May 11, 2015 at 03:49:01PM +0200, Paolo Bonzini wrote: > Remove cpu_smm_register and cpu_smm_update. Instead, each CPU > address space gets an extra region which is an alias of > /machine/smram. This extra region is enabled or disabled > as the CPU enters/exits SMM. > > Signed-off-by: Pa

Re: [Qemu-devel] [RFC] extensions to the -m memory option

2015-05-31 Thread Liviu Ionescu
> On 30 May 2015, at 12:39, Peter Crosthwaite > wrote: > > On Fri, May 29, 2015 at 2:49 PM, Liviu Ionescu wrote: >> however the question remains: in this nicely layered model, what command >> line options would be more appropriate to overwrite the MCU hard-wired >> ram/flash sizes? >> > >

  1   2   >