Re: [Qemu-devel] [PATCH v1 00/15] data-driven device registers

2016-01-08 Thread Peter Maydell
On 8 January 2016 at 00:39, Alistair Francis wrote: > On Wed, Dec 16, 2015 at 8:33 AM, Alistair Francis > wrote: >> On Tue, Dec 15, 2015 at 1:56 PM, Peter Maydell >> wrote: >>> On 15 December 2015 at 20:52,

[Qemu-devel] [PULL 2/7] ohci: fix Host Controller USBRESET

2016-01-08 Thread Gerd Hoffmann
From: Hervé Poussineau Specification says that, when entering this state, "the contents of the registers (except Root Hub registers) are preserved by the HC. [...] The Root Hub is being reset, which causes the Root Hub's downstream ports to be reset and possibly powered

[Qemu-devel] [PULL 5/7] usb-mtp: fix call to trace function

2016-01-08 Thread Gerd Hoffmann
From: Bandan Das trace_usb_mtp_inotify_event() was being called after the object was being freed. Signed-off-by: Bandan Das Message-id: 1450861787-16213-3-git-send-email-...@redhat.com Signed-off-by: Gerd Hoffmann --- hw/usb/dev-mtp.c | 2

[Qemu-devel] [PULL 4/7] usb-mtp: use safe variant when cleaning events list

2016-01-08 Thread Gerd Hoffmann
From: Bandan Das usb_mtp_inotify_cleanup uses QLIST_FOREACH to pick events from a list and free them which is incorrect. Use QLIST_FOREACH_SAFE instead. Signed-off-by: Bandan Das Message-id: 1450861787-16213-2-git-send-email-...@redhat.com Signed-off-by: Gerd

Re: [Qemu-devel] How guest physical RAM works

2016-01-08 Thread Paolo Bonzini
On 08/01/2016 10:29, Stefan Hajnoczi wrote: > As a side-note, the initial RAM that the guest started with might not > be modelled with a "pc-dimm" device and it can't be unplugged. > > The guest RAM itself isn't contained inside the "pc-dimm" object. > Instead the "pc-dimm" must be associated

Re: [Qemu-devel] [PATCH] linux-user: syscall: Add SO_LINGER for setsockopt

2016-01-08 Thread Chen Gang
On 2016年01月08日 16:38, Laurent Vivier wrote: > >> +if (!lock_user_struct(VERIFY_READ, tlg, optval_addr, 1)) { >> +return -TARGET_EFAULT; >> +} >> +__get_user(lg.l_onoff, >l_onoff); >> +__get_user(lg.l_linger, >l_linger); >> +

[Qemu-devel] [PATCH] virtio: fix error message for number of queues

2016-01-08 Thread Cornelia Huck
There's no such thing as "PCI queues" in the virtio core. Signed-off-by: Cornelia Huck --- This just bugged me when I was looking at the code :) --- hw/virtio/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/virtio/virtio.c

Re: [Qemu-devel] [PATCH 2/6] Revert "vhost-net: tell tap backend about the vnet endianness"

2016-01-08 Thread Cornelia Huck
On Thu, 07 Jan 2016 12:32:08 +0100 Greg Kurz wrote: > This reverts commit 5be7d9f1b1452613b95c6ba70b8d7ad3d0797991. > > Cross-endian is now configured by the core virtio-net code. We simply > fall back on full emulation if the net backend cannot support the > requested

Re: [Qemu-devel] [PATCH 5/6] vhost: move virtio 1.0 check to cross-endian helper

2016-01-08 Thread Laurent Vivier
On 08/01/2016 11:07, Cornelia Huck wrote: > On Fri, 8 Jan 2016 10:21:40 +0100 > Greg Kurz wrote: > >> On Thu, 7 Jan 2016 21:07:26 +0100 >> Laurent Vivier wrote: > >>> IMHO, I think 4/6 and 5/6 can be merged as there is no change in the >>>

Re: [Qemu-devel] [PATCH 2/6] Revert "vhost-net: tell tap backend about the vnet endianness"

2016-01-08 Thread Greg Kurz
On Fri, 8 Jan 2016 11:11:20 +0100 Cornelia Huck wrote: > On Thu, 07 Jan 2016 12:32:08 +0100 > Greg Kurz wrote: > > > This reverts commit 5be7d9f1b1452613b95c6ba70b8d7ad3d0797991. > > > > Cross-endian is now configured by the core virtio-net

Re: [Qemu-devel] [PULL v2 10/40] blockdev: Implement change with basic operations

2016-01-08 Thread Peter Maydell
On 7 January 2016 at 22:43, Max Reitz wrote: > I hope that the above explanation helped you understand why it bled into > tray-less devices, from a technical perspective. Yes, thanks, that was definitely a helpful explanation for why the design is the way it is. I'm still not

[Qemu-devel] [PULL 7/7] ohci: clear pending SOF on suspend

2016-01-08 Thread Gerd Hoffmann
From: Laurent Vivier On overcommitted CPU, kernel can be so slow that an interrupt can be triggered by the device whereas the driver is not ready to receive it. This drives us into an infinite loop. On suspend, if a SOF interrupt is raised between the stop of the device

[Qemu-devel] [PULL 0/7] usb patch queue

2016-01-08 Thread Gerd Hoffmann
repository at: git://git.kraxel.org/qemu tags/pull-usb-20160108-1 for you to fetch changes up to 087462c7739869e9b888c06c06c8f1bbfd99779c: ohci: clear pending SOF on suspend (2016-01-08 09:29:24 +0100) usb: mtp and ohci fixes

[Qemu-devel] [PULL 6/7] ohci: delay first SOF interrupt

2016-01-08 Thread Gerd Hoffmann
From: Laurent Vivier On overcommitted CPU, kernel can be so slow that an interrupt can be triggered by the device whereas the driver is not ready to receive it. This drives us into an infinite loop. This does not happen on real hardware because real hardware never send

Re: [Qemu-devel] [Xen-devel] [PATCH v4] igd-passthrough-i440FX: convert to realize()

2016-01-08 Thread Stefano Stabellini
Since you are at it, could you please let me know how well igd passthrough works without this bugfix: http://marc.info/?l=qemu-devel=145172165010604 which is about to land in QEMU. I guess it doesn't work at all? I am asking because I would like to know the level of support we need to provide

Re: [Qemu-devel] [PATCH v2 2/9] s390x: remove s390-virtio machine

2016-01-08 Thread Christian Borntraeger
On 01/07/2016 02:36 PM, Cornelia Huck wrote: > From: Pierre Morel > > Remove machine code for the s390-virtio machine, but keep functions > useful for the ccw machine. > > Signed-off-by: Pierre Morel > Acked-by: Cornelia Huck

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

2016-01-08 Thread Peter Maydell
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 separate CPUTimer fields so

[Qemu-devel] [PULL 16/59] pc: acpi: memhp: move \_GPE._E03 into SSDT

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

[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

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

[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

[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

[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

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

[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

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

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

Re: [Qemu-devel] [RFC PATCH v2 02/10] Jhash: add linux kernel jhashtable in qemu

2016-01-08 Thread Dr. David Alan Gilbert
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote: > From: zhangchen > > Jhash used by colo-proxy to save and lookup > net connection info > > Signed-off-by: zhangchen > Signed-off-by: zhanghailiang

[Qemu-devel] [PATCH] ide: ahci: reset ncq object to unused on error

2016-01-08 Thread P J P
From: Prasad J Pandit When processing NCQ commands, ACHI device emulation prepares a NCQ transfer object; To which an aio control block(aiocb) object is assigned in 'execute_ncq_command'. In case, when the NCQ command is invalid, the 'aiocb' object is not assigned, and

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

2016-01-08 Thread Wolfgang Bumiller
On Fri, Jan 08, 2016 at 05:49:51PM +0530, P J P wrote: >Hello, > > +-- On Fri, 8 Jan 2016, Wolfgang Bumiller wrote --+ > | > if (!strncmp(keyname_buf, "<", 1) && keyname_len == 1) { > | > pstrcpy(keyname_buf, sizeof(keyname_buf), "less"); > | > -keyname_len =

[Qemu-devel] [PULL 06/59] pc: acpi: memhp: move MHPD._STA 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 | 14 ++ hw/i386/acpi-dsdt-mem-hotplug.dsl | 8

[Qemu-devel] [PULL 10/59] pc: acpi: memhp: move MHPD.MPXM 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 | 14 ++ hw/i386/acpi-dsdt-mem-hotplug.dsl | 9

[Qemu-devel] [PULL 09/59] pc: acpi: memhp: move MHPD.MRST 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 | 23 +++

[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

[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

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

[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

[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

[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

[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

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

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

Re: [Qemu-devel] [PATCH v2 3/9] s390x: remove s390-virtio devices

2016-01-08 Thread Christian Borntraeger
On 01/07/2016 02:36 PM, Cornelia Huck wrote: > From: Pierre Morel > > The s390-virtio machine has been removed; remove the associated devices > as well. > > hw/s390x/s390-virtio-bus.c and hw/s390x/s390-virtio-bus.h > have been deleted and removed from

Re: [Qemu-devel] [PATCH v2 7/9] s390: Introduce CCW_COMPAT_2_5

2016-01-08 Thread Christian Borntraeger
On 01/07/2016 02:36 PM, Cornelia Huck wrote: > From: Shmulik Ladkani > > In 240240d5 'pc: Add pc-*-2.6 machine classes' HW_COMPAT_2_5 and > PC_COMPAT_2_5 were introduced. > > Accordingly, introduce CCW_COMPAT_2_5 that uses HW_COMPAT_2_5. > > Signed-off-by:

Re: [Qemu-devel] [PATCH v1 0/2] KVM: Hyper-V SynIC tracepoints

2016-01-08 Thread Paolo Bonzini
On 23/12/2015 14:53, Andrey Smetanin wrote: > The patches adds tracepoints inside Hyper-V SynIC > and SynIC timers code. > > The series applies on top of > 'kvm/x86: Update SynIC timers on guest entry only' > previously sent. Applied, thanks. Paolo > Signed-off-by: Andrey Smetanin

Re: [Qemu-devel] [PATCH] gtk: implement set_echo

2016-01-08 Thread Gerd Hoffmann
On Fr, 2016-01-08 at 14:11 +0100, Paolo Bonzini wrote: > Ping. > > Paolo > > On 17/12/2015 13:47, Paolo Bonzini wrote: > > Even without line editing, this makes -qmp vc more pleasant with the > > GTK+ backend. The only issue is that set_echo is invoked very early, > > long before a vc is

Re: [Qemu-devel] [PATCH v3 0/5] QMP wrappers for VM snapshot operations

2016-01-08 Thread Denis V. Lunev
On 01/08/2016 05:00 PM, Denis V. Lunev wrote: EFI based VM with pflash storage for NVRAM could not be snapshoted as libvirt configures storage as 'raw' and writable. OK, this is a libvirt problem. Another problem is that libvirt can not detect this failure at all as it uses HMP for this

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

2016-01-08 Thread Denis V. Lunev
This would be useful in the next step when QMP version of this call will be introduced. The patch also moves snapshot name generation to the hmp specific code as QMP version of this code will require the name on the protocol level. Addition of migration_savevm to migration/migration.h is

[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

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

[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

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

[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

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

Re: [Qemu-devel] [PATCH v3 11/11] igd: move igd-passthrough-isa-bridge creation to machine init

2016-01-08 Thread Stefano Stabellini
On Fri, 8 Jan 2016, Stefano Stabellini wrote: > > > > xen_pt_initfn checks that igd-passthru=on is set in case it finds a igd > > > > device is assigned, that will make sure the igd-isa-bridge is present. > > > > > > > > But, yes, you can create a igd-isa-bridge now even when not assigning a > >

Re: [Qemu-devel] [PATCH v3 11/11] igd: move igd-passthrough-isa-bridge creation to machine init

2016-01-08 Thread Stefano Stabellini
On Fri, 8 Jan 2016, Gerd Hoffmann wrote: > Hi, > > > > That is true. Given that the only qemu-xen codebase with igd support is > > > 4.7 and 4.7 hasn't been released yet, I am OK with changing the guest > > > visible PCI layout. I might ask for your help in backporting the patches > > > ;-) >

Re: [Qemu-devel] [PULL 0/7] usb patch queue

2016-01-08 Thread Peter Maydell
ff67e: > > petalogix-ml605: Set the MicroBlaze CPU version to 8.10.a (2016-01-07 > 14:57:26 +0100) > > are available in the git repository at: > > git://git.kraxel.org/qemu tags/pull-usb-20160108-1 > > for you to fetch changes up to 087462c7739869e9b888c06c06c8f1bbfd99779c

[Qemu-devel] [PATCH 2/2] net: netmap: avoid mmap() when ports use the same shared memory area

2016-01-08 Thread Vincenzo Maffione
With this patch, nm_open() does not mmap() the netmap device. This operation is performed separately only if the memory area of the port just opened was not known before. A global list of netmap clients is kept to check when matches occur. Signed-off-by: Vincenzo Maffione

Re: [Qemu-devel] [PATCH 2/5] qmp: create qmp_savevm command

2016-01-08 Thread Denis V. Lunev
On 12/24/2015 12:40 AM, Eric Blake wrote: On 12/04/2015 07:44 AM, Denis V. Lunev wrote: 'name' attribute is made mandatory in distinction with HMP command. The patch also moves hmp_savevm implementation into hmp.c. This function is just a simple wrapper now and does not have knowledge about

Re: [Qemu-devel] [PULL 0/2] ui patch queue

2016-01-08 Thread Peter Maydell
ix-ml605: Set the MicroBlaze CPU version to 8.10.a (2016-01-07 > 14:57:26 +0100) > > are available in the git repository at: > > git://git.kraxel.org/qemu tags/pull-ui-20160108-1 > > for you to fetch changes up to cb47dc9ab9f55083017291b2b8fbae639c576ec2: > > sdl2/o

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

2016-01-08 Thread Laurent Vivier
Le 08/01/2016 14:48, Riku Voipio a écrit : > Hi, > > I've updated the linux-user que; > > https://git.linaro.org/people/riku.voipio/qemu.git/shortlog/refs/heads/linux-user-for-upstream > > > If I've missed some reviewed patches or applied a wrong version of a > patch, now is a good moment to

[Qemu-devel] [PATCH 4/5] migration: improve error reporting for load_vmstate

2016-01-08 Thread Denis V. Lunev
The patch adds Error ** parameter to load_vmstate call and fills error inside. The caller after that properly reports error either through monitor or via local stderr facility during VM start. This helper will be useful too for qmp_loadvm implementation. Signed-off-by: Denis V. Lunev

[Qemu-devel] [PATCH 2/5] qmp: create qmp_savevm command

2016-01-08 Thread Denis V. Lunev
'name' attribute is made mandatory in distinction with HMP command. The patch also moves hmp_savevm implementation into hmp.c. This function is just a simple wrapper now and does not have knowledge about migration internals. Signed-off-by: Denis V. Lunev CC: Juan Quintela

[Qemu-devel] [PATCH 3/5] qmp: create qmp_delvm command

2016-01-08 Thread Denis V. Lunev
The patch also moves hmp_delvm implementation into hmp.c. This function is just a simple wrapper now and does not have knowledge about migration internals. Signed-off-by: Denis V. Lunev CC: Juan Quintela CC: Amit Shah CC: Markus

[Qemu-devel] [PATCH 5/5] qmp: create QMP implementation of loadvm command

2016-01-08 Thread Denis V. Lunev
Unfortunately load_vmstate has a return code (int) and this code is checked in the other places. Thus we could not just rename it to qmp_loadvm as returns void. Signed-off-by: Denis V. Lunev CC: Juan Quintela CC: Amit Shah CC: Markus

[Qemu-devel] [PATCH 4/5] migration: improve error reporting for load_vmstate

2016-01-08 Thread Denis V. Lunev
The patch adds Error ** parameter to load_vmstate call and fills error inside. The caller after that properly reports error either through monitor or via local stderr facility during VM start. This helper will be useful too for qmp_loadvm implementation. Signed-off-by: Denis V. Lunev

[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

[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

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

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

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

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

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

[Qemu-devel] [PATCH 2/5] qmp: create qmp_savevm command

2016-01-08 Thread Denis V. Lunev
'name' attribute is made mandatory in distinction with HMP command. The patch also moves hmp_savevm implementation into hmp.c. This function is just a simple wrapper now and does not have knowledge about migration internals. Signed-off-by: Denis V. Lunev CC: Juan Quintela

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 --+ | 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 = MIN(sizeof(keyname_buf), separator ? separator - keys :

[Qemu-devel] [PATCH 1/5] qmp: process system-reset event in paused state

2016-01-08 Thread Denis V. Lunev
With pvpanic or HyperV panic devices could be moved into the paused state with ' preserve'. In this state VM reacts only to 'virsh destroy' or 'continue'. 'virsh reset' command is usually used to force guest reset. The expectation of the behavior of this command is that the guest will be force

[Qemu-devel] [PATCH v3 0/5] QMP wrappers for VM snapshot operations

2016-01-08 Thread Denis V. Lunev
EFI based VM with pflash storage for NVRAM could not be snapshoted as libvirt configures storage as 'raw' and writable. OK, this is a libvirt problem. Another problem is that libvirt can not detect this failure at all as it uses HMP for this operation. This create snapshot/delete snapshot

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

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

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

[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

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

Re: [Qemu-devel] [PATCH v3 11/11] igd: move igd-passthrough-isa-bridge creation to machine init

2016-01-08 Thread Gerd Hoffmann
Hi, > > That is true. Given that the only qemu-xen codebase with igd support is > > 4.7 and 4.7 hasn't been released yet, I am OK with changing the guest > > visible PCI layout. I might ask for your help in backporting the patches > > ;-) What are the 4.7 release plans btw? > One thing that I

[Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-08 Thread Gerd Hoffmann
This patch extends the functionality of the max-ram-below-4g option to also allow increasing lowmem. Use case: Give as much memory as possible to legacy non-PAE guests. While being at it also rework the lowmem calculation logic and add a longish comment describing how it works and what the

Re: [Qemu-devel] [PATCH] gtk: implement set_echo

2016-01-08 Thread Paolo Bonzini
Ping. Paolo On 17/12/2015 13:47, Paolo Bonzini wrote: > Even without line editing, this makes -qmp vc more pleasant with the > GTK+ backend. The only issue is that set_echo is invoked very early, > long before a vc is actually associated with a VirtualConsole. To work > around this, create a

[Qemu-devel] [PATCH 1/2] net: netmap: use nm_open() to open netmap ports

2016-01-08 Thread Vincenzo Maffione
This patch simplifies the netmap backend code by means of the nm_open() helper function provided by netmap_user.h, which hides the details of open(), iotcl() and mmap() carried out on the netmap device. Moreover, the semantic of nm_open() makes it possible to open special netmap ports (e.g.

[Qemu-devel] [PATCH 0/2] net: netmap: use nm_open() to open netmap port

2016-01-08 Thread Vincenzo Maffione
Current implementation of netmap backend still uses the low level netmap API to open, register and close netmap ports. However, the netmap_user.h header provides some helper functions that make these tasks easier, with the additional advantage of extended interface name semantic. As an example,

[Qemu-devel] [PULL 18/59] pc: acpi: drop unused CPU_STATUS_LEN from 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-dsdt-cpu-hotplug.dsl | 1 - 1 file changed, 1 deletion(-) diff --git

[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

[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

[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

[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

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 =

[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

[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

Re: [Qemu-devel] [PATCH 1/1] block: fix inability to start VM with native AIO

2016-01-08 Thread Denis V. Lunev
On 12/22/2015 09:59 AM, Denis V. Lunev wrote: error: Failed to start domain rhel7 error: internal error: process exited while connecting to monitor: 2015-12-22T06:55:18.812637Z qemu-system-x86_64: -drive file=/var/lib/libvirt/images/rhel7.qcow2,if=none,

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

2016-01-08 Thread Lorenzo Pieralisi
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_AA64DFR0_EL1 register PMUVer field before accessing them. This patch

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

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

[Qemu-devel] [PULL 07/59] pc: acpi: memhp: move MHPD.MLCK mutex 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 | 2 ++ hw/i386/acpi-dsdt-mem-hotplug.dsl | 3 +-- 2 files

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

<    1   2   3   >