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

2016-01-09 Thread Michael Tokarev
So, what's the status of this issue now? (it is CVE-2015-8619 btw, maybe worth to mention this in the commit message) Thanks, /mjt

Re: [Qemu-devel] [PATCH v3] PXB: convert to realize()

2016-01-09 Thread Cao jin
Hi, The patch has been reviewed by: Marcel Apfelbaum , but still not seeing it in upstream, is it missed? On 12/22/2015 10:11 PM, Marcel Apfelbaum wrote: On 12/22/2015 02:50 PM, Cao jin wrote: Signed-off-by: Cao jin --- v3 changelog: 1. As per Paolo`s review, also Marcel`s test suggestio

[Qemu-devel] [PATCH] linux-user/syscall.c: Let tilegx support sigaltstack

2016-01-09 Thread chengang
From: Chen Gang Simply enable it, and notice about 80 columns coding styles. Signed-off-by: Chen Gang --- linux-user/syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 6c64ba6..8d4bcf6 100644 --- a/linux-user/syscal

Re: [Qemu-devel] [PATCH v10 4/7] hw/ptimer: Support "on the fly" timer mode switch

2016-01-09 Thread Peter Crosthwaite
On Sat, Jan 9, 2016 at 9:39 AM, Dmitry Osipenko wrote: > Allow to switch between periodic <-> oneshot modes while timer is running. > "Allow switching" > Signed-off-by: Dmitry Osipenko > --- > hw/core/ptimer.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git

Re: [Qemu-devel] [PATCH v10 2/7] hw/ptimer: Perform tick and counter wrap around if timer already expired

2016-01-09 Thread Peter Crosthwaite
On Sat, Jan 9, 2016 at 9:39 AM, Dmitry Osipenko wrote: > ptimer_get_count() might be called while QEMU timer already been expired. > In that case ptimer would return counter = 0, which might be undesirable > in case of polled timer. Do counter wrap around for periodic timer to keep > it distribute

Re: [Qemu-devel] [PATCH v10 1/7] hw/ptimer: Fix issues caused by the adjusted timer limit value

2016-01-09 Thread Peter Crosthwaite
On Sat, Jan 9, 2016 at 9:39 AM, Dmitry Osipenko wrote: > Multiple issues here related to the timer with a adjusted .limit value: > > 1) ptimer_get_count() returns incorrect counter value for the disabled > timer after loading the counter with a small value, because adjusted limit > value is used i

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

2016-01-09 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 v2 50/59] pc: acpi: q35: move PCI0._OSC() method into SSDT

2016-01-09 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 v2 52/59] pc: acpi: q35: PCST, PCSB opregions and PCIB field into SSDT

2016-01-09 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 v2 48/59] pc: acpi: q35: move PRTP routing table into SSDT

2016-01-09 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 v2 57/59] migration/virtio: Remove simple .get/.put use

2016-01-09 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 v2 54/59] pc: acpi: remove unused ASL templates and related blobs/utils

2016-01-09 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.

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

2016-01-09 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 v2 56/59] Add VMSTATE_STRUCT_VARRAY_KNOWN

2016-01-09 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 v2 55/59] i386/pc: expose identifying the floppy controller

2016-01-09 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 v2 41/59] pc: acpi: q35: move GSI links to SSDT

2016-01-09 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 v2 47/59] pc: acpi: q35: move PRTA routing table into SSDT

2016-01-09 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 v2 58/59] ivshmem: Store file descriptor for vhost-user negotiation

2016-01-09 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 v2 40/59] pc: acpi: piix4: acpi move PCI0 device to SSDT

2016-01-09 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 v2 46/59] pc: acpi: q35: move _PRT() into SSDT

2016-01-09 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 v2 53/59] pc: acpi: switch to AML API composed DSDT

2016-01-09 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 v2 37/59] pc: acpi: piix4: move IQST() into SSDT

2016-01-09 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 v2 43/59] pc: acpi: q35: move IQCR() into SSDT

2016-01-09 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 v2 51/59] pc: acpi: q35: move PCI0 device definition into SSDT

2016-01-09 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 v2 35/59] pc: acpi: pci: move link devices into SSDT

2016-01-09 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(+)

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

2016-01-09 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 v2 34/59] pc: acpi: move remaining GPE handlers into SSDT

2016-01-09 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 v2 49/59] pc: acpi: q35: move _PIC() method into SSDT

2016-01-09 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 v2 42/59] pc: acpi: q35: move link devices to SSDT

2016-01-09 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 v2 28/59] pc: acpi: move KBD device from DSDT to SSDT

2016-01-09 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 v2 44/59] pc: acpi: q35: move IQST() into SSDT

2016-01-09 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 v2 19/59] pc: acpi: cpuhp: move CPEJ() method to SSDT

2016-01-09 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 v2 38/59] pc: acpi: piix4: move PCI0._PRT() into SSDT

2016-01-09 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 v2 26/59] pc: acpi: move DBUG() from DSDT to SSDT

2016-01-09 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 |

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

2016-01-09 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 v2 36/59] pc: acpi: piix4: move IQCR() into SSDT

2016-01-09 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] [PULL v2 24/59] pc: acpi: factor out cpu hotplug code from build_ssdt() into separate function

2016-01-09 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 v2 20/59] pc: acpi: cpuhp: move CPMA() method into SSDT

2016-01-09 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

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

2016-01-09 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 v2 31/59] pc: acpi: move LPT device from DSDT to SSDT

2016-01-09 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 v2 17/59] pc: acpi: memhp: drop not needed stringify(MEMORY_foo) usage

2016-01-09 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 v2 22/59] pc: acpi: cpuhp: move PRSC() method into SSDT

2016-01-09 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 v2 30/59] pc: acpi: move FDC0 device from DSDT to SSDT

2016-01-09 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 v2 27/59] pc: acpi: move RTC device from DSDT to SSDT

2016-01-09 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 v2 15/59] pc: acpi: factor out memhp code from build_ssdt() into separate function

2016-01-09 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 v2 12/59] pc: acpi: memhp: move MHPD.MEJ0 method into SSDT

2016-01-09 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 v2 25/59] pc: acpi: move HPET from DSDT to SSDT

2016-01-09 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 v2 29/59] pc: acpi: move MOU device from DSDT to SSDT

2016-01-09 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 v2 14/59] pc: acpi: memhp: move MHPD Device into SSDT

2016-01-09 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 v2 11/59] pc: acpi: memhp: move MHPD.MOST method into SSDT

2016-01-09 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 | 15 +++ hw/i386/acpi-dsdt-mem-hotplug.dsl | 10 -- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git

[Qemu-devel] [PULL v2 18/59] pc: acpi: drop unused CPU_STATUS_LEN from DSDT

2016-01-09 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-dsdt-cpu-hotplug.dsl | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/i386/acpi-dsdt-cpu-hotplug.dsl b/hw/i386/acpi-dsdt-cpu-hotplug.dsl index 1aff746..53e

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

2016-01-09 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 v2 13/59] pc: acpi: memhp: move MHPD.MCRS method into SSDT

2016-01-09 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 v2 10/59] pc: acpi: memhp: move MHPD.MPXM method into SSDT

2016-01-09 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 | 14 ++ hw/i386/acpi-dsdt-mem-hotplug.dsl | 9 - 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/h

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

2016-01-09 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 v2 09/59] pc: acpi: memhp: move MHPD.MRST method into SSDT

2016-01-09 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 | 23 +++ hw/i386/acpi-dsdt-mem-hotplug.dsl | 15 --- 2 files changed, 23 insertions(+), 15 deletions(-)

[Qemu-devel] [PULL v2 05/59] pc: acpi: memhp: prepare context in SSDT for moving memhp DSDT code

2016-01-09 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/memory_hotplug.h| 4 hw/acpi/memory_hotplug_acpi_table.c | 30 ++ hw/i386/acpi-build.c| 3 +++ hw/acpi/

[Qemu-devel] [PULL v2 06/59] pc: acpi: memhp: move MHPD._STA method into SSDT

2016-01-09 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 | 14 ++ hw/i386/acpi-dsdt-mem-hotplug.dsl | 8 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/hw

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

2016-01-09 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 v2 08/59] pc: acpi: memhp: move MHPD.MSCN method into SSDT

2016-01-09 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 v2 16/59] pc: acpi: memhp: move \_GPE._E03 into SSDT

2016-01-09 Thread Michael S. Tsirkin
From: Igor Mammedov in addition remove no longer needed acpi-dsdt-mem-hotplug.dsl. Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/memory_hotplug.h | 5 + include/hw/acpi/pc-hotplug.h | 2 -- hw/i386/acpi-build.c

[Qemu-devel] [PULL v2 04/59] tests: acpi: print ASL diff in verbose mode

2016-01-09 Thread Michael S. Tsirkin
From: Igor Mammedov print ASL difference if there is any when executing 'make V=1 check'. Use 'DIFF' environment variable to determine which diff utility to use and if it's not set notify user by printing warning that DIFF is not set if run in verbose mode and there is difference in ASL. Signed-

[Qemu-devel] [PULL v2 07/59] pc: acpi: memhp: move MHPD.MLCK mutex into SSDT

2016-01-09 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 | 2 ++ hw/i386/acpi-dsdt-mem-hotplug.dsl | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/acpi/memory_hotplug

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

2016-01-09 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

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

2016-01-09 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

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

2016-01-09 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/qemu.git tags/for_ups

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

2016-01-09 Thread Michael S. Tsirkin
On Fri, Jan 08, 2016 at 06:34:15PM +0100, Igor Mammedov wrote: > 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/acp

[Qemu-devel] [PATCH v10 6/7] hw/ptimer: Introduce ptimer_get_limit

2016-01-09 Thread Dmitry Osipenko
Currently ptimer users are used to store copy of the limit value, because ptimer doesn't provide facility to retrieve the limit. Let's provide it. Signed-off-by: Dmitry Osipenko --- hw/core/ptimer.c| 5 + include/hw/ptimer.h | 1 + 2 files changed, 6 insertions(+) diff --git a/hw/core/p

[Qemu-devel] [PATCH v10 7/7] arm_mptimer: Convert to use ptimer

2016-01-09 Thread Dmitry Osipenko
Current ARM MPTimer implementation uses QEMUTimer for the actual timer, this implementation isn't complete and mostly tries to duplicate of what generic ptimer is already doing fine. Conversion to ptimer brings the following benefits and fixes: - Simple timer pausing implementation

[Qemu-devel] [PATCH v10 4/7] hw/ptimer: Support "on the fly" timer mode switch

2016-01-09 Thread Dmitry Osipenko
Allow to switch between periodic <-> oneshot modes while timer is running. Signed-off-by: Dmitry Osipenko --- hw/core/ptimer.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/core/ptimer.c b/hw/core/ptimer.c index 0a54212..6960738 100644 --- a/hw/core/ptimer.c

[Qemu-devel] [PATCH v10 0/7] PTimer fixes/features and ARM MPTimer conversion

2016-01-09 Thread Dmitry Osipenko
Changelog for ARM MPTimer QEMUTimer to ptimer conversion: V2: Fixed changing periodic timer counter value "on the fly". I added a test to the gist to cover that issue. V3: Fixed starting the timer with load = 0 and counter != 0, added tests to the gist for this issue. Chan

[Qemu-devel] [PATCH v10 1/7] hw/ptimer: Fix issues caused by the adjusted timer limit value

2016-01-09 Thread Dmitry Osipenko
Multiple issues here related to the timer with a adjusted .limit value: 1) ptimer_get_count() returns incorrect counter value for the disabled timer after loading the counter with a small value, because adjusted limit value is used instead of the original. For instance: 1) ptimer_stop(t)

[Qemu-devel] [PATCH v10 5/7] hw/ptimer: Legalize running with delta = load = 0

2016-01-09 Thread Dmitry Osipenko
Currently ptimer would print error message and clear enable flag for an arming timer that has delta = load = 0. That actually could be a valid case for some hardware, like instant IRQ trigger for oneshot timer or continuous in periodic mode. Support those cases by printing error message only when p

[Qemu-devel] [PATCH v10 3/7] hw/ptimer: Update .delta on period/freq change

2016-01-09 Thread Dmitry Osipenko
Delta value must be updated on period/freq change, otherwise running timer would be restarted (counter reloaded with old delta). Only m68k/mcf520x and arm/arm_timer devices are currently doing freq change correctly, i.e. stopping the timer. Perform delta update to fix affected devices and eliminate

[Qemu-devel] [PATCH v10 2/7] hw/ptimer: Perform tick and counter wrap around if timer already expired

2016-01-09 Thread Dmitry Osipenko
ptimer_get_count() might be called while QEMU timer already been expired. In that case ptimer would return counter = 0, which might be undesirable in case of polled timer. Do counter wrap around for periodic timer to keep it distributed. In order to achieve more accurate emulation behaviour of cert

[Qemu-devel] usb-storage assertions

2016-01-09 Thread Andrey Korolyov
Hello, during regular operations within linux guest with USB EHCI frontend I am seeing process crashes with an assert during regular operations like dpkg install: hw/usb/dev-storage.c:334: usb_msd_handle_reset: Assertion `s->req == ((void *)0)' failed. This does happen when real block backend is

Re: [Qemu-devel] QEMU/KVM performance gets worser - high load - high interrupts - high context switches

2016-01-09 Thread Gerhard Wiesinger
3On 08.12.2015 10:39, Gerhard Wiesinger wrote: Hello, Yesterday I looked at my munin statistics on my KVM host and I swar that performance gets worser: load is getting higher, interrupts are getting higher and are high as well as context switches. VMs and applications didn't change that way.

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

2016-01-09 Thread Miodrag Dinic
Thanks Leon, I'll make sure future patches are sent inline. Regards, Miodrag From: Leon Alrae Sent: Friday, January 08, 2016 5:09 PM To: Miodrag Dinic; Aurelien Jarno Cc: qemu-devel@nongnu.org; Petar Jovanovic Subject: Re: [Qemu-devel] [PATCH v2] target-

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

2016-01-09 Thread P J P
+-- On Sat, 9 Jan 2016, Wolfgang Bumiller wrote --+ | > could say: if (!strcmp(keyname_buf, "<")). | | keyname_len+1 (size instead of length) to include the \0, then yes I think | strcmp can be used this way. The +1 should be fine there (since >= covers | it). Yes, right. -- - P J P 47AF CE69 3A

Re: [Qemu-devel] [PATCH v4 2/5] Add Error **errp for xen_host_pci_device_get()

2016-01-09 Thread Cao jin
On 01/09/2016 06:50 AM, Eric Blake wrote: On 01/08/2016 01:37 AM, Cao jin wrote: buf[rc] = 0; rc = qemu_strtoul(buf, &endptr, base, &value); Do you still need a local 'value' variable, or can you just reuse pvalue here? I guess so, or else it won`t compile, because, *pval

Re: [Qemu-devel] An RDMA race?

2016-01-09 Thread Michael R. Hines
I don't mind ACKing this change if we could agree on some kind of regression test for this. (I have an RDMA card at home that I could run tests on if need be). The way that virt-test goes about this is not sufficient. The way I do testing for RDMA is that I not only confirm that the migration

Re: [Qemu-devel] [PATCH v4 2/5] Add Error **errp for xen_host_pci_device_get()

2016-01-09 Thread Cao jin
On 01/09/2016 06:50 AM, Eric Blake wrote: On 01/08/2016 01:37 AM, Cao jin wrote: To catch the error msg. Also modify the caller Signed-off-by: Cao jin --- hw/xen/xen-host-pci-device.c | 134 ++- hw/xen/xen-host-pci-device.h | 5 +- hw/xen/xen_pt.

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

2016-01-09 Thread Cao jin
On 01/09/2016 01:35 AM, Eric Blake wrote: 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

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

2016-01-09 Thread Wolfgang Bumiller
> On January 8, 2016 at 6:32 PM P J P wrote: > > > +-- 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