[Qemu-devel] [PULL 17/59] pc: acpi: memhp: drop not needed stringify(MEMORY_foo) usage

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov most of MEMORY_foo defines are not shared with ASL anymore and are used only inside of memory_hotplug_acpi_table.c, so move them there and make them strings. As result we can replace stringify(MEMORY_foo) with just MEMORY_foo, which makes code a bit cleaner. No AML change int

[Qemu-devel] [PULL 22/59] pc: acpi: cpuhp: move PRSC() method into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 2 ++ include/hw/acpi/cpu_hotplug.h | 1 + include/hw/acpi/pc-hotplug.h | 1 + hw/acpi/cpu_hotplug_acpi_table.c | 64

[Qemu-devel] [PULL 15/59] pc: acpi: factor out memhp code from build_ssdt() into separate function

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov before consolidating memhp code in memory_hotplug_acpi_table.c and for simplifying review, first factor out memhp code into new function build_memory_devices() in i386/acpi-build.c Signed-off-by: Igor Mammedov PS: no functional change, only code movement. Reviewed-by

[Qemu-devel] [PULL 20/59] pc: acpi: cpuhp: move CPMA() method into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/cpu_hotplug.h | 2 ++ hw/acpi/cpu_hotplug_acpi_table.c | 23 +++ hw/i386/acpi-build.c | 5 +++-- hw/i386/acpi-dsdt-cpu

Re: [Qemu-devel] [PATCH 1/6] virtio-net: use the backend cross-endian capabilities

2016-01-08 Thread Greg Kurz
On Thu, 7 Jan 2016 19:32:37 +0100 Laurent Vivier wrote: > Sorry for the late answer to this one, I got diverted :) > > On 07/01/2016 12:32, Greg Kurz wrote: > > When running a fully emulated device in cross-endian conditions, including > > a virtio 1.0 device offered to a big endian guest, we

[Qemu-devel] [PULL 14/59] pc: acpi: memhp: move MHPD Device into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov move remnants of MHPD device from DSDT into SSDT. i.e. Device(MHPD), _UID, _HID Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/acpi/memory_hotplug_acpi_table.c | 6 +- hw/i386/acpi-dsdt-mem-hotplug.dsl | 7

[Qemu-devel] [PULL 12/59] pc: acpi: memhp: move MHPD.MEJ0 method into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/acpi/memory_hotplug_acpi_table.c | 13 + hw/i386/acpi-dsdt-mem-hotplug.dsl | 8 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/hw/

[Qemu-devel] [PULL 21/59] pc: acpi: cpuhp: move CPST() method into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/cpu_hotplug.h | 1 + hw/acpi/cpu_hotplug_acpi_table.c | 22 ++ hw/i386/acpi-build.c | 3 ++- hw/i386/acpi-dsdt-cpu-hot

[Qemu-devel] [PULL 31/59] pc: acpi: move LPT device from DSDT to SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 36 hw/i386/acpi-dsdt-isa.dsl | 16 2 files changed, 36 insertions(+), 16 deletions(-) diff

[Qemu-devel] [PULL 19/59] pc: acpi: cpuhp: move CPEJ() method to SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/cpu_hotplug.h | 5 + hw/acpi/cpu_hotplug_acpi_table.c | 28 hw/i386/acpi-build.c | 3 ++- hw/acpi/Makefil

[Qemu-devel] [PULL 27/59] pc: acpi: move RTC device from DSDT to SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 26 ++ hw/i386/acpi-dsdt-isa.dsl | 9 - 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/hw/i386/a

[Qemu-devel] [PULL 13/59] pc: acpi: memhp: move MHPD.MCRS method into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/acpi/memory_hotplug_acpi_table.c | 92 + hw/i386/acpi-dsdt-mem-hotplug.dsl | 72 - 2 files changed, 92 in

[Qemu-devel] [PULL 08/59] pc: acpi: memhp: move MHPD.MSCN method into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/acpi/memory_hotplug_acpi_table.c | 60 + hw/i386/acpi-dsdt-mem-hotplug.dsl | 27 + 2 files changed, 61 insertions(+),

[Qemu-devel] [PULL 33/59] pc: acpi: move PIIX4 isa-bridge and pm devices into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov and also move PRQx fields declaration as it can't be split out into separate patch since fields use PCI0.ISA.P40C operation region and OperationRegion must be declared in the same table as a Field that uses it. If this condition is not statisfied Windows will BSOD ans IASL (ma

[Qemu-devel] [PULL 24/59] pc: acpi: factor out cpu hotplug code from build_ssdt() into separate function

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 174 --- 1 file changed, 94 insertions(+), 80 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386

[Qemu-devel] [PULL 29/59] pc: acpi: move MOU device from DSDT to SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 21 + hw/i386/acpi-dsdt-isa.dsl | 10 -- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/hw/i386/acpi

[Qemu-devel] [PULL 23/59] pc: acpi: cpuhp: move \_GPE._E02() into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/cpu_hotplug.h | 1 + include/hw/acpi/pc-hotplug.h | 1 - hw/acpi/cpu_hotplug_acpi_table.c | 2 +- hw/i386/acpi-build.c | 12

[Qemu-devel] [PULL 30/59] pc: acpi: move FDC0 device from DSDT to SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 40 hw/i386/acpi-dsdt-isa.dsl | 18 -- 2 files changed, 40 insertions(+), 18 deletions(-)

[Qemu-devel] [PULL 40/59] pc: acpi: piix4: acpi move PCI0 device to SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov leave Scope(\_SB) definition in DSDT so that iasl would be able to compile DSDT since we are still need definition block for table. After Q35 ASL is converted, DSDT templates will be completly replaced by AML API generated tables. Signed-off-by: Igor Mammedov Reviewed-by: Mi

[Qemu-devel] [PULL 25/59] pc: acpi: move HPET from DSDT to SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/timer/hpet.h| 1 + hw/i386/acpi-build.c | 53 ++ hw/timer/hpet.c| 2 +- hw/i386/acpi-dsdt-hpet.

[Qemu-devel] [PULL 44/59] pc: acpi: q35: move IQST() into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 26 +++--- hw/i386/q35-acpi-dsdt.dsl | 8 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/hw/i386/a

[Qemu-devel] [PULL 58/59] ivshmem: Store file descriptor for vhost-user negotiation

2016-01-08 Thread Michael S. Tsirkin
From: Tetsuya Mukawa If virtio-net driver allocates memory in ivshmem shared memory, vhost-net will work correctly, but vhost-user will not work because a fd of shared memory will not be sent to vhost-user backend. This patch fixes ivshmem to store file descriptor of shared memory. It will be use

[Qemu-devel] [PULL 28/59] pc: acpi: move KBD device from DSDT to SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 22 ++ hw/i386/acpi-dsdt-isa.dsl | 12 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/hw/i386/a

[Qemu-devel] [PULL 32/59] pc: acpi: move COM devices from DSDT to SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 48 +++ hw/i386/acpi-dsdt-isa.dsl | 52 --- hw/i386/acpi-dsdt.

[Qemu-devel] [PULL 46/59] pc: acpi: q35: move _PRT() into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 21 + hw/i386/q35-acpi-dsdt.dsl | 12 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/hw/i386/ac

[Qemu-devel] [PULL 56/59] Add VMSTATE_STRUCT_VARRAY_KNOWN

2016-01-08 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" At the moment we have VMSTATE_STRUCT_ARRAY that requires the field is declared as an array of fixed size. We also have VMSTATE_STRUCT_VARRAY_UINT* that allows a field declared as a pointer, but requires that the length is a field member in the structure being loaded

[Qemu-devel] [PULL 34/59] pc: acpi: move remaining GPE handlers into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 30 +- hw/i386/acpi-dsdt.dsl | 40 hw/i386/q35-acpi-dsdt.dsl | 36 ---

[Qemu-devel] [PULL 37/59] pc: acpi: piix4: move IQST() into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 10 ++ hw/i386/acpi-dsdt.dsl | 9 - 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/ac

[Qemu-devel] [PULL 39/59] pc: acpi: piix4: move remaining PCI hotplug bits into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 43 +++ hw/i386/acpi-dsdt.dsl | 40 2 files changed, 43 insertions(+)

[Qemu-devel] [PULL 26/59] pc: acpi: move DBUG() from DSDT to SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 36 hw/i386/acpi-dsdt-dbug.dsl | 41 - hw/i386/acpi-dsdt.dsl |

Re: [Qemu-devel] [PATCH] hmp: avoid redundant null termination of buffer

2016-01-08 Thread Wolfgang Bumiller
On Fri, Jan 08, 2016 at 07:29:31PM +0530, P J P wrote: > +-- On Fri, 8 Jan 2016, Wolfgang Bumiller wrote --+ > | Ah yes, how could I miss that. Maybe just add a min() around the > | keyname_len computation? > | > | - keyname_len = separator ? separator - keys : strlen(keys); > | + keyname_len = MI

[Qemu-devel] [PULL 41/59] pc: acpi: q35: move GSI links to SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 47 +++ hw/i386/q35-acpi-dsdt.dsl | 34 -- 2 files changed, 55 inserti

[Qemu-devel] [PULL 36/59] pc: acpi: piix4: move IQCR() into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 20 hw/i386/acpi-dsdt.dsl | 11 --- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/hw/i386/acpi-build.c

[Qemu-devel] qemu io stack code approach

2016-01-08 Thread Ata Fatahi baarzi
hi all I recently pursued Linux IO stack and dove into kernel source code. that is when a user programm calls read or write syscall some functions will be called to finally make a io request and send it to device drivers and compelete io request. in this path which is known as Life of IO request i

Re: [Qemu-devel] [PATCH 1/3] sun4u: split out NPT and INT_DIS into separate CPUTimer fields

2016-01-08 Thread Mark Cave-Ayland
On 08/01/16 14:05, Peter Maydell wrote: > On 13 November 2015 at 17:54, Mark Cave-Ayland > wrote: >> Currently there is confusion between use of these bits for the timer and >> timer >> compare registers (while they both have the same value, the behaviour is >> different). Split into two separat

[Qemu-devel] [PULL 47/59] pc: acpi: q35: move PRTA routing table into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 61 +++ hw/i386/q35-acpi-dsdt.dsl | 57 --- 2 files changed, 6

[Qemu-devel] [PULL 38/59] pc: acpi: piix4: move PCI0._PRT() into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov PCI routing table for expander buses is build with help of build_prt() using AML API. And it's almost the same as PRT for PCI0 bus except of power-management device. So make existing build_prt() build PRT table for PCI0 bus as well. Signed-off-by: Igor Mammedov Reviewed-by:

[Qemu-devel] [PULL 48/59] pc: acpi: q35: move PRTP routing table into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 2 ++ hw/i386/q35-acpi-dsdt.dsl | 79 --- 2 files changed, 2 insertions(+), 79 deletions(-) diff --g

[Qemu-devel] [PULL 45/59] pc: acpi: q35: move ISA bridge into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 54 +++ hw/i386/q35-acpi-dsdt.dsl | 46 2 files changed, 54 i

[Qemu-devel] [PULL 52/59] pc: acpi: q35: PCST, PCSB opregions and PCIB field into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 10 ++ hw/i386/q35-acpi-dsdt.dsl | 5 - 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i38

[Qemu-devel] [PULL 49/59] pc: acpi: q35: move _PIC() method into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 8 hw/i386/q35-acpi-dsdt.dsl | 10 -- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/

[Qemu-devel] [PULL 55/59] i386/pc: expose identifying the floppy controller

2016-01-08 Thread Michael S. Tsirkin
From: Roman Kagan Factor out and expose the function to locate the floppy controller in the system. It will allow to dynamically populate the relevant objects in the ACPI tables. Signed-off-by: Roman Kagan Cc: "Michael S. Tsirkin" Cc: Eduardo Habkost Cc: Igor Mammedov Cc: John Snow Cc: Kevi

[Qemu-devel] [PULL 50/59] pc: acpi: q35: move PCI0._OSC() method into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 56 ++ hw/i386/q35-acpi-dsdt.dsl | 57 --- 2 files changed

[Qemu-devel] [PULL 57/59] migration/virtio: Remove simple .get/.put use

2016-01-08 Thread Michael S. Tsirkin
From: "Dr. David Alan Gilbert" The 'virtqueue_state' and 'ringsize' can be saved using VMSTATE macros rather than hand coded .get/.put Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Amit Shah --- hw/virtio/virtio.c | 87 +

[Qemu-devel] [PULL 51/59] pc: acpi: q35: move PCI0 device definition into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 14 +- hw/i386/q35-acpi-dsdt.dsl | 13 - 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/hw/i386/acpi-buil

[Qemu-devel] [PULL 42/59] pc: acpi: q35: move link devices to SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 9 + hw/i386/q35-acpi-dsdt.dsl | 40 2 files changed, 17 insertions(+), 32 deletions(-) diff --

[Qemu-devel] [PULL 35/59] pc: acpi: pci: move link devices into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 77 +++ hw/i386/acpi-dsdt.dsl | 49 2 files changed, 82 insertions(+)

Re: [Qemu-devel] [PATCH 4/4] target-ppc: ensure we include the decrementer value during migration

2016-01-08 Thread Mark Cave-Ayland
On 08/01/16 02:47, Alexey Kardashevskiy wrote: > On 01/07/2016 05:22 AM, Mark Cave-Ayland wrote: >> During local testing with TCG, intermittent errors were found when >> trying to >> migrate Darwin OS images. >> >> The underlying cause was that Darwin resets the decrementer value to >> fairly >> s

[Qemu-devel] [PATCH] ether/slirp: Avoid redefinition of the same constants

2016-01-08 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" eth.h and slirp.h both define ETH_ALEN and ETH_P_IP rtl8139.c and eth.h both define ETH_HLEN Move the related constant (ETH_P_ARP) from slirp.h to eth.h, and remove the duplicates; make slirp.h include eth.h Signed-off-by: Dr. David Alan Gilbert --- hw/net/rtl81

[Qemu-devel] [PULL 59/59] virtio: fix error message for number of queues

2016-01-08 Thread Michael S. Tsirkin
From: Cornelia Huck There's no such thing as "PCI queues" in the virtio core. Signed-off-by: Cornelia Huck Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/virtio/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/virtio/virtio.c b/hw/virt

[Qemu-devel] [PULL 43/59] pc: acpi: q35: move IQCR() into SSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 51 ++- hw/i386/q35-acpi-dsdt.dsl | 9 - 2 files changed, 33 insertions(+), 27 deletions(-)

[Qemu-devel] [PULL 53/59] pc: acpi: switch to AML API composed DSDT

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 235 +-- 1 file changed, 115 insertions(+), 120 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i3

[Qemu-devel] [PULL 54/59] pc: acpi: remove unused ASL templates and related blobs/utils

2016-01-08 Thread Michael S. Tsirkin
From: Igor Mammedov QEMU now uses internally composed DSDT so drop now empty *.dsl templates and related *.generated binary blobs. Also since templates are not used anymore/obolete remove utility scripts used for extracting/patching AML blobs compiled by IASL and for updating them in git tree.

Re: [Qemu-devel] [PATCH 04/10] hw/sd: Add QOM bus which SD cards plug in to

2016-01-08 Thread Peter Crosthwaite
On Thu, Jan 7, 2016 at 10:09 AM, Peter Maydell wrote: > On 20 December 2015 at 20:51, Peter Crosthwaite > wrote: >> On Sun, Dec 20, 2015 at 9:10 AM, Peter Maydell >> wrote: >>> For user-level back compat I think we need to retain "might have >>> an sdcard object with no block backend, and that

Re: [Qemu-devel] [PATCH 1/3] sun4u: split out NPT and INT_DIS into separate CPUTimer fields

2016-01-08 Thread Peter Maydell
On 8 January 2016 at 14:34, Mark Cave-Ayland wrote: > I'm not particularly worried about sun4u for the moment as there are > already other reasons why migration would fail, e.g. no > VMStateDescription for storing PCI interrupt state in the apb host bridge. > > Last time I checked sun4m migration

Re: [Qemu-devel] [PATCH] arm64: kernel: fix PMUv3 registers unconditional access

2016-01-08 Thread Guenter Roeck
On Fri, Jan 08, 2016 at 12:54:27PM +, Lorenzo Pieralisi wrote: > The Performance Monitors extension is an optional feature of the > AArch64 architecture, therefore, in order to access Performance > Monitors registers safely, the kernel should detect the PMUv3 unit > presence through the ID_AA64

[Qemu-devel] [PATCH] Add optionrom compatible with fw_cfg DMA version

2016-01-08 Thread Marc Marí
This optionrom is based on linuxboot.S. Signed-off-by: Marc Marí --- .gitignore| 4 + hw/i386/pc.c | 9 +- hw/nvram/fw_cfg.c | 2 +- include/hw/nvram/fw_cfg.h | 1 + pc-bios/optionrom/Makefile| 8 +- pc-bios/o

Re: [Qemu-devel] Qemu linux-user que

2016-01-08 Thread John Paul Adrian Glaubitz
On 01/08/2016 03:03 PM, Laurent Vivier wrote: > I think you can add the ones from Adrian: > > [PATCH 1/2] linux-user: Update m68k syscall definitions to match Linux 4.4. > [PATCH 2/2] linux-user: Add SOCKOP_sendmmsg and SOCKOP_recvmmsg socket > call, wire them up. Oh, I'd really appreciate that a

Re: [Qemu-devel] [PULL 00/55] acpi, pc features

2016-01-08 Thread Peter Maydell
On 8 January 2016 at 14:19, Michael S. Tsirkin wrote: > The following changes since commit 5dc42c186d63b7b338594fc071cf290805dcc5a5: > > Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' > into staging (2015-12-22 14:21:42 +) > > are available in the git repository at:

[Qemu-devel] [PULL 02/59] igd-passthrough: fix use of host_pci_config_read

2016-01-08 Thread Michael S. Tsirkin
From: Cao jin Fix the bug introduced by 595a4f07: function host_pci_config_read() should be pass-by-reference, not value. This probably means this function never worked for anyone. Signed-off-by: Cao jin Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/pci-host/piix.c

Re: [Qemu-devel] [PATCH 00/25] target-sparc improvements

2016-01-08 Thread Richard Henderson
On 12/29/2015 10:59 AM, Mark Cave-Ayland wrote: > If there are explicit bug-fixes related to above then my preference > would be to have them as a separate patchset outside of the performance > improvements, but then if this isn't feasible then I don't feel that > this should block getting this pat

[Qemu-devel] [PULL 00/59] acpi dsdt rework, misc fixes

2016-01-08 Thread Michael S. Tsirkin
The following changes since commit 6bb9ead762bf749af11ea225fc2a74db1b93c105: Merge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20160108-1' into staging (2016-01-08 12:50:19 +) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qem

[Qemu-devel] [PULL 03/59] hw/i386: fill in the CENTURY field of the FADT (FACP) ACPI table

2016-01-08 Thread Michael S. Tsirkin
From: Laszlo Ersek The ACPI specification (minimally versions 1.0b through 6.0) define the FADT.CENTURY field as: The RTC CMOS RAM index to the century of data value (hundred and thousand year decimals). If this field contains a zero, then the RTC centenary feature is not supported. If thi

[Qemu-devel] [PULL 01/59] nvdimm: fix header pointer in nvdimm_build_nfit()

2016-01-08 Thread Michael S. Tsirkin
From: Haozhong Zhang In the current nvdimm_build_nfit(), the pointer 'header' initially equals to table_data->data + table_data->len. However, the following g_array_append_vals(table_data, structures->data, structures->len) may resize and relocate table_data->data[]. Therefore, the usage of 'head

Re: [Qemu-devel] [PATCH 1/3] sun4u: split out NPT and INT_DIS into separate CPUTimer fields

2016-01-08 Thread Mark Cave-Ayland
On 08/01/16 14:55, Peter Maydell wrote: > On 8 January 2016 at 14:34, Mark Cave-Ayland > wrote: >> I'm not particularly worried about sun4u for the moment as there are >> already other reasons why migration would fail, e.g. no >> VMStateDescription for storing PCI interrupt state in the apb host

Re: [Qemu-devel] [PATCH 1/6] virtio-net: use the backend cross-endian capabilities

2016-01-08 Thread Laurent Vivier
On 08/01/2016 15:19, Greg Kurz wrote: > On Thu, 7 Jan 2016 19:32:37 +0100 > Laurent Vivier wrote: >> > > Sorry for the late answer to this one, I got diverted :) > >> >> On 07/01/2016 12:32, Greg Kurz wrote: >>> When running a fully emulated device in cross-endian conditions, including >>> a v

Re: [Qemu-devel] Block I/O Tracing

2016-01-08 Thread Luis Pabon
Great summary Stefan. I think you are correct, and it is definitely non-trivial to get the accuracy of the trace as close as possible to real-world timings. Sometimes, like in the block driver IO responses or caching algorithm studies, having the IO trace of an application be 'close' enough could

Re: [Qemu-devel] [PATCH] arm64: kernel: fix PMUv3 registers unconditional access

2016-01-08 Thread Will Deacon
Hi Lorenzo, On Fri, Jan 08, 2016 at 12:54:27PM +, Lorenzo Pieralisi wrote: > The Performance Monitors extension is an optional feature of the > AArch64 architecture, therefore, in order to access Performance > Monitors registers safely, the kernel should detect the PMUv3 unit > presence throug

[Qemu-devel] [PATCH] serial: transmit within the programmed baud rate

2016-01-08 Thread Paolo Bonzini
Code for throttling the serial port was removed by upstream commit fcfb4d6 ("serial: add flow control to transmit", 2013-03-05). Add it back. The only non-obvious change is that tsr_retry can now become nonzero also in loopback mode, so the assignment is moved out of the "if". Signed-off-by: Pao

[Qemu-devel] [RFC PATCH 0/2] Attempt to clean-up softmmu templates

2016-01-08 Thread Alex Bennée
Hi, While reviewing Alvise's LL/SC patches we were discussing how to avoid duplication in some of the re-factoring work. The softmmu_template.h code has a lot of duplication in due to BE and LE helpers. By pushing code into an inline helper we can let the compiler do the hard work of optimising aw

[Qemu-devel] [RFC PATCH 2/2] softmmu: simplify helper_*_st_name with smmu_helper(do_unl_store)

2016-01-08 Thread Alex Bennée
From: Alvise Rigo Attempting to simplify the helper_*_st_name, wrap the do_unaligned_access code into an shared inline function. As this also removes the goto statement the inline code is expanded twice in each helper. Suggested-by: Jani Kokkonen Suggested-by: Claudio Fontana CC: Alvise Rigo

[Qemu-devel] [RFC PATCH 1/2] softmmu_template: add smmu_helper, convert VICTIM_TLB_HIT

2016-01-08 Thread Alex Bennée
This lays the ground work for a re-factoring of the softmmu template code. The patch introduces inline "smmu_helper" functions where common (or almost common) code can be placed. Arguments that the compiler picks up as constant can then be used to eliminate legs of code in the inline fragments. Th

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

2016-01-08 Thread Paolo Bonzini
On 08/01/2016 15:58, Marc Marí wrote: > > +static inline uint16_t readw_addr32(const void *addr) { > +uint16_t val; > +asm("addr32 movw %1, %0" : "=r"(val) : "g"(addr)); > +barrier(); > +return val; > +} > + Does SeaBIOS ensure that DS base is zero here? > +static void transiti

Re: [Qemu-devel] How to reserve guest physical region for ACPI

2016-01-08 Thread Igor Mammedov
On Fri, 8 Jan 2016 12:21:09 +0800 Xiao Guangrong wrote: > On 01/07/2016 05:21 PM, Igor Mammedov wrote: > > On Wed, 6 Jan 2016 01:07:45 +0800 > > Xiao Guangrong wrote: > > > >> On 01/06/2016 12:43 AM, Michael S. Tsirkin wrote: > >> > > Yes - if address is static, you need to put it outsid

Re: [Qemu-devel] [PATCH 1/6] virtio-net: use the backend cross-endian capabilities

2016-01-08 Thread Greg Kurz
On Fri, 8 Jan 2016 16:25:18 +0100 Laurent Vivier wrote: > > > On 08/01/2016 15:19, Greg Kurz wrote: > > On Thu, 7 Jan 2016 19:32:37 +0100 > > Laurent Vivier wrote: > >> > > > > Sorry for the late answer to this one, I got diverted :) > > > >> > >> On 07/01/2016 12:32, Greg Kurz wrote: > >>>

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

2016-01-08 Thread Marc Marí
On Fri, 8 Jan 2016 16:54:07 +0100 Paolo Bonzini wrote: > > > On 08/01/2016 15:58, Marc Marí wrote: > > > > +static inline uint16_t readw_addr32(const void *addr) { > > +uint16_t val; > > +asm("addr32 movw %1, %0" : "=r"(val) : "g"(addr)); > > +barrier(); > > +return val; > > +}

Re: [Qemu-devel] [PATCH 5/6] nvdimm acpi: let qemu handle _DSM method

2016-01-08 Thread Igor Mammedov
On Fri, 8 Jan 2016 12:01:54 +0800 Xiao Guangrong wrote: > On 01/07/2016 10:22 PM, Igor Mammedov wrote: > > On Tue, 5 Jan 2016 02:52:07 +0800 > > Xiao Guangrong wrote: > > > >> If dsm memory is successfully patched, we let qemu fully emulate > >> the dsm method > >> > >> This patch saves _DSM

Re: [Qemu-devel] [PATCH 1/5] migration: split hmp_savevm to do_savevm and hmp_savevm wrapper

2016-01-08 Thread Eric Blake
On 01/08/2016 04:27 AM, Denis V. Lunev wrote: >>> /* Delete old snapshots of the same name */ >>> if (name && bdrv_all_delete_snapshot(name, &bs1, &local_err) < >>> 0) { >>> -monitor_printf(mon, >>> - "Error while deleting snapshot on device >>> '%s': %s

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

2016-01-08 Thread Paolo Bonzini
On 08/01/2016 17:05, Marc Marí wrote: >> > Do you even need to go to 32-bit mode? The only reason to do so in >> > the original ROM was to do a "rep insb" above 1 GB, but here fw_cfg >> > can do DMA to high addresses for you. > There's no need of course. I was looking at the original ROM and I d

Re: [Qemu-devel] [PATCH] arm64: kernel: fix PMUv3 registers unconditional access

2016-01-08 Thread Lorenzo Pieralisi
On Fri, Jan 08, 2016 at 03:33:00PM +, Will Deacon wrote: [...] > > /* EL2 debug */ > > + mrs x0, id_aa64dfr0_el1 // Check ID_AA64DFR0_EL1 PMUVer > > + ubfxx0, x0, #8, #4 > > + cmp x0, #1 > > + b.ne4f // Skip if no PMUv3 pres

Re: [Qemu-devel] [PULL 00/59] acpi dsdt rework, misc fixes

2016-01-08 Thread Peter Maydell
On 8 January 2016 at 15:08, Michael S. Tsirkin wrote: > The following changes since commit 6bb9ead762bf749af11ea225fc2a74db1b93c105: > > Merge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20160108-1' into > staging (2016-01-08 12:50:19 +) > > are availa

Re: [Qemu-devel] [PATCH 1/2] nbd: Interface tweak of nbd_client_new

2016-01-08 Thread Daniel P. Berrange
On Wed, Dec 30, 2015 at 01:49:25PM +0800, Fam Zheng wrote: > In preparation for an async implementation, introduce a callback and > move the shutdown/close to the function. > > Signed-off-by: Fam Zheng > --- > blockdev-nbd.c | 5 ++--- > include/block/nbd.h | 6 -- > nbd.c

Re: [Qemu-devel] [PATCH] ether/slirp: Avoid redefinition of the same constants

2016-01-08 Thread Alex Bennée
Dr. David Alan Gilbert (git) writes: > From: "Dr. David Alan Gilbert" > > eth.h and slirp.h both define ETH_ALEN and ETH_P_IP > rtl8139.c and eth.h both define ETH_HLEN > > Move the related constant (ETH_P_ARP) from slirp.h to eth.h, and > remove the duplicates; make slirp.h include eth.h Revi

[Qemu-devel] [RFC 0/2] tcg-icount: Add and use tcg_set_insn_param to update tcg insn params

2016-01-08 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Hi, On AArch64, when some load/stores trap under specific conditions, a set of detailed info describing the insn is provided to the trap handler (e.g size of the access, target registers, insn-length mode etc). This specific info is known at translation time and Peter s

[Qemu-devel] [RFC 2/2] gen-icount: Use tcg_set_insn_param

2016-01-08 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Use tcg_set_insn_param() instead of directly accessing internal tcg data structures to update an insn param. Signed-off-by: Edgar E. Iglesias --- include/exec/gen-icount.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/exe

[Qemu-devel] [RFC 1/2] tcg: Add tcg_set_insn_param

2016-01-08 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Add tcg_set_insn_param as a mechanism to modify an insn parameter after emiting the insn. This is useful for icount and also for embedding fault information for a specific insn. Signed-off-by: Edgar E. Iglesias --- tcg/tcg.h | 6 ++ 1 file changed, 6 insertions(+)

Re: [Qemu-devel] [PATCH v2] target-mips: Fix ALIGN instruction when bp=0

2016-01-08 Thread Leon Alrae
Hi Miodrag, Thanks for the fix; I've applied it to the target-mips queue (in future please send patches inline). Thanks, Leon On 04/01/16 15:52, Miodrag Dinic wrote: > Hello Aurelien, > > thanks for your comments and review. > Version 2 of the patch is in the attachment. > > Diff between versi

Re: [Qemu-devel] [PATCH 1/5] migration: split hmp_savevm to do_savevm and hmp_savevm wrapper

2016-01-08 Thread Denis V. Lunev
On 01/08/2016 07:14 PM, Eric Blake wrote: On 01/08/2016 04:27 AM, Denis V. Lunev wrote: /* Delete old snapshots of the same name */ if (name && bdrv_all_delete_snapshot(name, &bs1, &local_err) < 0) { -monitor_printf(mon, - "Error while deleting snap

Re: [Qemu-devel] [RFC 0/2] tcg-icount: Add and use tcg_set_insn_param to update tcg insn params

2016-01-08 Thread Richard Henderson
On 01/08/2016 08:25 AM, Edgar E. Iglesias wrote: > To do so, we'd need to first emit the insn_start and then after translating > the > given target-insn, update the insn_start parameters with the decoded insn > details. Fair enough. > Any thoughts on this approach? Or ideas on better options to

[Qemu-devel] [PATCH] qapi: Update docs to match recent generated changes, part 2

2016-01-08 Thread Eric Blake
[Either worth squashing into a single patch with the posted v8 14.5/35 and sinking it to the end of the series, or else splitting it into pieces and squashing per patch that makes a change to generated output] Signed-off-by: Eric Blake --- v9: new patch --- docs/qapi-code-gen.txt | 51 +

[Qemu-devel] [RFC PATCH 1/3] tb-annotation: Added annotation XML file parser

2016-01-08 Thread Peer Adelt
The XML file contains a control flow graph, where each edge is annotated with a context-dependent value. The parser reads this information into a data structure within CPUState. Signed-off-by: Peer Adelt --- include/qom/cpu.h| 9 ++ include/tb-annotation/tb-annotati

[Qemu-devel] [RFC PATCH 0/3] TranslationBlock annotation mechanism

2016-01-08 Thread Peer Adelt
Hey guys We have developed a generic concept to annotate TranslationBlocks during runtime. The initial idea was to use it for time annotation with data from static analysis tools. However, we have kept this approach as generic as possible to allow other kinds of annotation (e.g. power consumption

[Qemu-devel] [RFC PATCH 3/3] tb-annotation: Activate annotation extension

2016-01-08 Thread Peer Adelt
This changeset activates the TranslationBlock annotation mechanism for the QEMU system mode. Signed-off-by: Peer Adelt --- Makefile| 5 +++-- Makefile.objs | 4 Makefile.target | 4 +++- configure | 13 + qemu-op

[Qemu-devel] [RFC PATCH 2/3] tb-annotation: Add control flow graph mapper

2016-01-08 Thread Peer Adelt
Added helper function at the start of every TranslationBlock that maps the sequence of static basic blocks (obtained from the XML file) to the current TranslationBlock. The helper also accumulates the values that are annotated on the corresponding edges of the control flow graph. Signed-off-by: Pe

Re: [Qemu-devel] [PATCH 3/6] nvdimm acpi: introduce patched dsm memory

2016-01-08 Thread Igor Mammedov
On Fri, 8 Jan 2016 11:40:53 +0800 Xiao Guangrong wrote: > On 01/07/2016 07:04 PM, Igor Mammedov wrote: > > On Wed, 6 Jan 2016 23:39:04 +0800 > > Xiao Guangrong wrote: > > > >> On 01/06/2016 11:23 PM, Igor Mammedov wrote: > >>> On Tue, 5 Jan 2016 02:52:05 +0800 > >>> Xiao Guangrong wrote: >

Re: [Qemu-devel] [PATCH] hmp: avoid redundant null termination of buffer

2016-01-08 Thread P J P
+-- On Fri, 8 Jan 2016, Wolfgang Bumiller wrote --+ | On Fri, Jan 08, 2016 at 07:29:31PM +0530, P J P wrote: | > + if (!strncmp(keyname_buf, "<-", 2)) | > and remove the 'keyname_len' altogether. | | This wouldn't catch '<' without '-'. (`sendkey <`) | Also, strncmp with a length of 1 (in the or

[Qemu-devel] [PATCH] pc: acpi: fix build fail on w32

2016-01-08 Thread Igor Mammedov
build fail with warnings on w32 compiler: hw/acpi/memory_hotplug_acpi_table.c: In function ‘build_memory_hotplug_aml’: hw/acpi/memory_hotplug_acpi_table.c:148: warning: integer constant is too large for ‘long’ type hw/acpi/memory_hotplug_acpi_table.c:149: warning: integer constant is too large for

[Qemu-devel] [RFC PATCH 0/2] Early release of -drive QemuOpts

2016-01-08 Thread Paolo Bonzini
In short, this patch gets rid of blockdev_mark_auto_del and blockdev_auto_del. With these patches, it is possible to create a new -drive with the same id as soon as the DEVICE_DELETED event is delivered (which equals to unrealize). I'm sorry I'm not able to explain the history (and probably do no

Re: [Qemu-devel] [PATCH v4 1/5] Use qemu_strtoul instead of strtol

2016-01-08 Thread Eric Blake
On 01/08/2016 01:37 AM, Cao jin wrote: > strtol() don`t guarantee errno to be ERANGE on overflow. I stand slightly corrected: C99 requires ERANGE on overflow, but not EINVAL; it is POSIX that adds EINVAL, but does not properly require it. At any rate, my main point was that errno is not always pr

[Qemu-devel] [PATCH 1/2] block: detach devices from DriveInfo at unrealize time

2016-01-08 Thread Paolo Bonzini
Instead of delaying blk_detach_dev and blockdev_auto_del until the object is finalized and properties are released, do that as soon as possible. This patch replaces blockdev_mark_auto_del calls with blk_detach_dev and blockdev_del_drive (the latter is a combination of the former blockdev_mark_auto

  1   2   3   >