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 11, 2015

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 jan.kis...@siemens.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Cornelia Huck cornelia.h...@de.ibm.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang jasow...@redhat.com 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 jasow...@redhat.com

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

2015-05-31 Thread Michael S. Tsirkin
From: Markus Armbruster arm...@redhat.com 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

[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 stef...@linux.vnet.ibm.com 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

[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 mark.cave-ayl...@ilande.co.uk --- hw/ide/macio.c | 13 - include/hw/ppc/mac_dbdma.h |1 -

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com 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 ehabk...@redhat.com Reviewed-by: Michael S. Tsirkin

[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 ler...@redhat.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com The function is not needed anymore, we can simply call pc_init1() directly. Signed-off-by: Eduardo Habkost ehabk...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/i386/pc_piix.c | 31

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

2015-05-31 Thread Michael S. Tsirkin
From: Ying-Shiuan Pan yingshiuan@gmail.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com 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 ehabk...@redhat.com

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

2015-05-31 Thread Michael S. Tsirkin
From: Marcel Apfelbaum mar...@redhat.com Add encoding for ACPI DefIncrement Opcode. Reviewed-by: Shannon Zhao zhaoshengl...@huawei.com Reviewed-by: Igor Mammedov imamm...@redhat.com Signed-off-by: Marcel Apfelbaum mar...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by:

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] [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 minimal real

[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 jasow...@redhat.com VIRTIO_PCI_QUEUE_MAX is not only used for pci, so rename it be generic. Cc: Amit Shah amit.s...@redhat.com Cc: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Jason Wang jasow...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by:

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com 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 ehabk...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com The helper is not needed anymore, as the PC machine classes are registered using QOM directly. Signed-off-by: Eduardo Habkost ehabk...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com ---

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com 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 ehabk...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com

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

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang jasow...@redhat.com 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

[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 ehabk...@redhat.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Stefan Berger stef...@linux.vnet.ibm.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com Move compat_props from pc-0.10 to the macro, to make it consistent with the other machines. Signed-off-by: Eduardo Habkost ehabk...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com ---

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

2015-05-31 Thread Michael S. Tsirkin
From: Marcel Apfelbaum mar...@redhat.com Add encoding for ACPI DefIndex Opcode. Signed-off-by: Marcel Apfelbaum mar...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com Reviewed-by: Shannon Zhao shannon.z...@linaro.org ---

[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 mark.cave-ayl...@ilande.co.uk --- 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

[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 mark.cave-ayl...@ilande.co.uk --- hw/ide/macio.c | 102 ++-- 1 file changed, 40 insertions(+), 62 deletions(-) diff --git a/hw/ide/macio.c

[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

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 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 multiple

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] [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

[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 ehabk...@redhat.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com 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 ehabk...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by:

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com Coding style change only. Signed-off-by: Eduardo Habkost ehabk...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- include/hw/i386/pc.h | 12 ++-- hw/i386/pc_piix.c| 2 +- 2

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

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang jasow...@redhat.com Cc: Alexander Graf ag...@suse.de Cc: Cornelia Huck cornelia.h...@de.ibm.com Cc: Christian Borntraeger borntrae...@de.ibm.com Cc: Richard Henderson r...@twiddle.net Signed-off-by: Jason Wang jasow...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com

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

2015-05-31 Thread Michael S. Tsirkin
From: Stefan Berger stef...@linux.vnet.ibm.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com 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 ehabk...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com

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 i...@livius.net wrote: On 30 May 2015, at 12:39, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Fri, May 29, 2015 at 2:49 PM, Liviu Ionescu i...@livius.net wrote: however the question remains: in this nicely layered model, what

[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

[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 shannon.z...@linaro.org This is in preparation for using alias property in virtio-balloon-pci and virtio-balloon-ccw. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org Reviewed-by: Michael S. Tsirkin m...@redhat.com

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: Paolo

[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 ehabk...@redhat.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Pavel Fedin p.fe...@samsung.com 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.

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

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang jasow...@redhat.com 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 jasow...@redhat.com

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

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang jasow...@redhat.com 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 jasow...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin

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

2015-05-31 Thread Michael S. Tsirkin
From: Cornelia Huck cornelia.h...@de.ibm.com 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 cornelia.h...@de.ibm.com Reviewed-by: Michael

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 shannon.z...@linaro.org Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org

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

2015-05-31 Thread Michael S. Tsirkin
From: Marcel Apfelbaum mar...@redhat.com Add encoding for ACPI DefAdd Opcode. Reviewed-by: Igor Mammedov imamm...@redhat.com Signed-off-by: Marcel Apfelbaum mar...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com Reviewed-by: Shannon

[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 jasow...@redhat.com Cc: Cornelia Huck cornelia.h...@de.ibm.com Cc: Christian Borntraeger borntrae...@de.ibm.com Cc: Richard Henderson r...@twiddle.net Cc: Alexander Graf ag...@suse.de Signed-off-by: Jason Wang jasow...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com

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

2015-05-31 Thread Michael S. Tsirkin
From: Marcel Apfelbaum mar...@redhat.com Add encoding for ACPI DefShiftLeft Opcode. Reviewed-by: Igor Mammedov imamm...@redhat.com Signed-off-by: Marcel Apfelbaum mar...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com Reviewed-by:

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

2015-05-31 Thread Michael S. Tsirkin
From: Cornelia Huck cornelia.h...@de.ibm.com 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.

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com 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 ehabk...@redhat.com Reviewed-by: Michael S. Tsirkin

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 ... Or if you

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 could

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 shannon.z...@linaro.org Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org --- hw/acpi/aml-build.c | 60

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 not?

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 a...@ozlabs.ru 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 run

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com 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 ehabk...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com

[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 shannon.z...@linaro.org Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com Now we can make everything consistent and define the macros even if they are still empty. Signed-off-by: Eduardo Habkost ehabk...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com ---

[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 ler...@redhat.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang jasow...@redhat.com Cc: Alexander Graf ag...@suse.de Cc: Richard Henderson r...@twiddle.net Signed-off-by: Jason Wang jasow...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/s390x/s390-virtio-bus.c | 6 --

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Radim Krčmář rkrc...@redhat.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com 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

[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 ler...@redhat.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Marcel Apfelbaum mar...@redhat.com Add encoding for ACPI DefLLess Opcode. Reviewed-by: Shannon Zhao zhaoshengl...@huawei.com Reviewed-by: Igor Mammedov imamm...@redhat.com Signed-off-by: Marcel Apfelbaum mar...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by:

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

2015-05-31 Thread Michael S. Tsirkin
From: Shannon Zhao shannon.z...@linaro.org Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com Reviewed-by: Igor Mammedov imamm...@redhat.com ---

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

2015-05-31 Thread Michael S. Tsirkin
From: Jason Wang jasow...@redhat.com This patch introduce a virtio-s390 specific device_plugged() function and doing the number of virtqueue validation inside. Cc: Alexander Graf ag...@suse.de Cc: Richard Henderson r...@twiddle.net Signed-off-by: Jason Wang jasow...@redhat.com Reviewed-by:

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

2015-05-31 Thread Michael S. Tsirkin
From: Marcel Apfelbaum mar...@redhat.com Add encoding for ACPI DefShiftRight Opcode. Reviewed-by: Igor Mammedov imamm...@redhat.com Signed-off-by: Marcel Apfelbaum mar...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com Reviewed-by:

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 peter.crosthwa...@xilinx.com wrote: On Sun, May 31, 2015 at 7:05 AM, Liviu Ionescu i...@livius.net wrote: On 30 May 2015, at 12:39, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Fri, May 29, 2015 at 2:49 PM, Liviu Ionescu

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 2015, at

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 i...@livius.net wrote: On 01 Jun 2015, at 01:10, Peter Crosthwaite peter.crosthwa...@xilinx.com 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

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-dataplane

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 reference to an

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 i...@livius.net wrote: On 01 Jun 2015, at 02:44, Peter Crosthwaite peter.crosthwa...@xilinx.com 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

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 shannon.z...@linaro.org Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com

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 i...@livius.net wrote: On 31 May 2015, at 21:45, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Sun, May 31, 2015 at 7:05 AM, Liviu Ionescu i...@livius.net wrote: On 30 May 2015, at 12:39, Peter Crosthwaite

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 version of COLO,

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 peter.crosthwa...@xilinx.com 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

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 peter.crosthwa...@xilinx.com 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

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 peter.crosthwa...@xilinx.com 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

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 sai.pavan.bo...@xilinx.com wrote: This patch corrects the Rx buffer size field mask to mask bits 23 to 16 Signed-off-by: Sai Pavan Boddu saip...@xilinx.com Reviewed-by: Alistair Francis alistair.fran...@xilinx.com Matches Xilinx UG585

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 peter.crosthwa...@xilinx.com 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

[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 ehabk...@redhat.com 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

[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 shannon.z...@linaro.org Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com 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 ehabk...@redhat.com Reviewed-by: Michael S. Tsirkin

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

2015-05-31 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com 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 ehabk...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com

[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 ler...@redhat.com 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

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

2015-05-31 Thread Michael S. Tsirkin
From: Marcel Apfelbaum mar...@redhat.com Add encoding for ACPI DefWhile Opcode. Reviewed-by: Shannon Zhao zhaoshengl...@huawei.com Reviewed-by: Igor Mammedov imamm...@redhat.com Signed-off-by: Marcel Apfelbaum mar...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by:

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 pbonz...@redhat.com 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

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 device will

[Qemu-devel] [RFC v2 02/34] cpu-exec: Purge all uses of CPU_GET_ENV

2015-05-31 Thread Peter Crosthwaite
Remove un-needed usages of CPU_GET_ENV by converting the APIs to use CPUState pointers and retrieving the env_ptr as minimally needed. FIXME: apply target-foo change pattern to all archs. Signed-off-by: Peter Crosthwaite crosthwaite.pe...@gmail.com --- cpu-exec.c | 28

[Qemu-devel] [RFC v2 08/34] translate-all: Move tcg_handle_interrupt to -common

2015-05-31 Thread Peter Crosthwaite
Move this function to common code. It has no arch specific dependencies. Prepares support for multi-arch where the translate-all interface needs to be virtualised. One less thing to virtualise. Signed-off-by: Peter Crosthwaite crosthwaite.pe...@gmail.com --- translate-all.c| 30

[Qemu-devel] [RFC v2 00/34] Multi Architecture System Emulation

2015-05-31 Thread Peter Crosthwaite
** Note: Very different to V1 ** Hi All, This is target-multi, a system-mode build that can support multiple cpu-types. Two architectures are initially converted. Microblaze and ARM. Step by step conversion in done for each. A microblaze is added to Xilinx Zynq platform as a test case. This

[Qemu-devel] [RFC v2 01/34] cpu-defs: Move CPU_TEMP_BUF_NLONGS to tcg

2015-05-31 Thread Peter Crosthwaite
The usages of this define are pure TCG and there is no architecture specific variation of the value. Localise it to the TCG engine to remove another architecture agnostic piece from cpu-defs.h. This follows on from a28177820a868eafda8fab007561cc19f41941f4 where temp_buf was moved out of the

[Qemu-devel] [RFC v2 05/34] translate: Listify tcg_exec_init

2015-05-31 Thread Peter Crosthwaite
Create a global list of tcg_exec_init functions that is populated at startup. Multiple translation engines can register an init function and all will be called on the master call to tcg_exec_init. Introduce a new module, translate-common. This is a common-obj for translation functionality such as

  1   2   >