[Qemu-devel] [PATCH v16 1/2] sPAPR: Implement EEH RTAS calls

2015-02-03 Thread Gavin Shan
The emulation for EEH RTAS requests from guest isn't covered by QEMU yet and the patch implements them. The patch defines constants used by EEH RTAS calls and adds callback sPAPRPHBClass::eeh_handler, which is going to be used this way: * RTAS calls are received in spapr_pci.c, sanity check is

[Qemu-devel] [PATCH v16 0/2] EEH Support for VFIO Devices

2015-02-03 Thread Gavin Shan
The series of patches adds support EEH for VFIO PCI devices on sPAPR platform. It requires corresponding host kernel support, which was merged during 3.17 merge window. This patchset has been rebased to Alex Graf's QEMU repository: git://github.com/agraf/qemu.git (branch: ppc-next) The

Re: [Qemu-devel] [PATCH 6/9] cosmetic changes preparing for the following patches

2015-02-03 Thread Fam Zheng
On Tue, 02/03 13:52, Paolo Bonzini wrote: From: Mike Day ncm...@ncultra.org Signed-off-by: Mike Day ncm...@ncultra.org Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- arch_init.c| 5 +-- exec.c | 84 +-

Re: [Qemu-devel] [PATCH] tun: orphan an skb on tx

2015-02-03 Thread David Woodhouse
On Tue, 2015-02-03 at 16:19 -0800, David Miller wrote: From: David Woodhouse dw...@infradead.org Date: Mon, 02 Feb 2015 07:27:10 + I'm guessing you don't want to push the *whole* management of the TLS control connection *and* the UDP transport, and probing the latter with keepalives,

[Qemu-devel] [PATCH v2 09/12] acpi, piix4: Add memory hot unplug support for piix4.

2015-02-03 Thread Zhu Guihua
From: Tang Chen tangc...@cn.fujitsu.com Call memory unplug cb in piix4_device_unplug_cb(). Signed-off-by: Zhu Guihua zhugh.f...@cn.fujitsu.com --- hw/acpi/piix4.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c index

[Qemu-devel] [PATCH v2 06/12] acpi, ich9: Add memory hot unplug request support for ich9.

2015-02-03 Thread Zhu Guihua
From: Tang Chen tangc...@cn.fujitsu.com Call memory unplug request cb in ich9_pm_device_unplug_request_cb(). Signed-off-by: Zhu Guihua zhugh.f...@cn.fujitsu.com --- hw/acpi/ich9.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c

[Qemu-devel] [PATCH v2 08/12] acpi, mem-hotplug: Add unplug cb for memory device.

2015-02-03 Thread Zhu Guihua
From: Tang Chen tangc...@cn.fujitsu.com Reset all memory status, and unparent the memory device. Signed-off-by: Zhu Guihua zhugh.f...@cn.fujitsu.com --- hw/acpi/memory_hotplug.c | 34 ++ hw/core/qdev.c | 2 +-

[Qemu-devel] [PATCH v2 04/12] acpi, mem-hotplug: Add unplug request cb for memory device.

2015-02-03 Thread Zhu Guihua
From: Tang Chen tangc...@cn.fujitsu.com Memory hot unplug are both asynchronize procedures. When the unplug operation happens, unplug request cb is called first. And when ghest OS finished handling unplug, unplug cb will be called to do the real removal of device. This patch adds unplug request

Re: [Qemu-devel] [PATCH v4] sheepdog: selectable object size support

2015-02-03 Thread Teruaki Ishizaki
(2015/02/02 15:52), Liu Yuan wrote: On Tue, Jan 27, 2015 at 05:35:27PM +0900, Teruaki Ishizaki wrote: Previously, qemu block driver of sheepdog used hard-coded VDI object size. This patch enables users to handle block_size_shift value for calculating VDI object size. When you start qemu, you

Re: [Qemu-devel] [PATCH 3/9] exec: RCUify AddressSpaceDispatch

2015-02-03 Thread Fam Zheng
On Tue, 02/03 13:52, Paolo Bonzini wrote: Note that even after this patch, most callers of address_space_* functions must still be under the big QEMU lock, otherwise the memory region returned by address_space_translate can disappear as soon as address_space_translate returns. This will be

[Qemu-devel] [PATCH v2 05/12] acpi, piix4: Add memory hot unplug request support for piix4.

2015-02-03 Thread Zhu Guihua
From: Hu Tao hu...@cn.fujitsu.com Call memory unplug request cb in piix4_device_unplug_request_cb(). Signed-off-by: Hu Tao hu...@cn.fujitsu.com Signed-off-by: Tang Chen tangc...@cn.fujitsu.com Signed-off-by: Zhu Guihua zhugh.f...@cn.fujitsu.com --- hw/acpi/piix4.c | 6 +- 1 file changed, 5

[Qemu-devel] [PATCH v2 07/12] pc-dimm: Add memory hot unplug request support for pc-dimm.

2015-02-03 Thread Zhu Guihua
From: Tang Chen tangc...@cn.fujitsu.com Implement memory unplug request cb for pc-dimm, and call it in pc_machine_device_unplug_request_cb(). Signed-off-by: Zhu Guihua zhugh.f...@cn.fujitsu.com --- hw/i386/pc.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-)

Re: [Qemu-devel] [PATCH 4/9] rcu: introduce RCU-enabled QLIST

2015-02-03 Thread Fam Zheng
On Tue, 02/03 13:52, Paolo Bonzini wrote: From: Mike Day ncm...@ncultra.org Add RCU-enabled variants on the existing bsd DQ facility. Each operation has the same interface as the existing (non-RCU) version. Also, each operation is implemented as macro. Using the RCU-enabled QLIST,

Re: [Qemu-devel] [PATCH v2 0/1] dataplane vs. endianness

2015-02-03 Thread David Gibson
On Tue, Jan 27, 2015 at 04:15:23PM +1100, David Gibson wrote: On Mon, Jan 26, 2015 at 05:26:41PM +0100, Cornelia Huck wrote: Stefan: Here's v2 of my endianness patch for dataplane, with the extraneous vdev argument dropped from get_desc(). I orginally planned to send my virtio-1

[Qemu-devel] [PATCH v2 10/12] acpi, ich9: Add memory hot unplug support for ich9.

2015-02-03 Thread Zhu Guihua
From: Tang Chen tangc...@cn.fujitsu.com Call memory unplug cb in ich9_pm_device_unplug_cb(). Signed-off-by: Zhu Guihua zhugh.f...@cn.fujitsu.com --- hw/acpi/ich9.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index

[Qemu-devel] [PATCH v2 12/12] acpi: Add hardware implementation for memory hot unplug.

2015-02-03 Thread Zhu Guihua
From: Tang Chen tangc...@cn.fujitsu.com This patch adds a new bit to memory hotplug IO port indicating that ej0 has been evaluated by guest OS. And call pc-dimm unplug cb to do the real removal. Signed-off-by: Hu Tao hu...@cn.fujitsu.com Signed-off-by: Tang Chen tangc...@cn.fujitsu.com

[Qemu-devel] [PATCH v2 02/12] acpi, mem-hotplug: Add acpi_memory_slot_status() to get MemStatus.

2015-02-03 Thread Zhu Guihua
From: Tang Chen tangc...@cn.fujitsu.com Add a new API named acpi_memory_get_slot_status_descriptor() to obtain a single memory slot status. Doing this is because this procedure will be used by other functions in the next coming patches. Signed-off-by: Tang Chen tangc...@cn.fujitsu.com

[Qemu-devel] [PATCH v2 00/12] QEmu memory hot unplug support

2015-02-03 Thread Zhu Guihua
Memory hot unplug are both asynchronize procedures. When the unplug operation happens, unplug request cb is called first. And when ghest OS finished handling unplug, unplug cb will be called to do the real removal of device. This series depends on the following patchset. [PATCH v2 0/5] Common

[Qemu-devel] [PATCH v16 2/2] sPAPR: Implement sPAPRPHBClass::eeh_handler

2015-02-03 Thread Gavin Shan
The patch implements sPAPRPHBClass::eeh_handler so that the EEH RTAS requests can be routed to VFIO for further handling. Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com --- hw/ppc/spapr_pci_vfio.c | 58 + hw/vfio/common.c| 1 + 2

Re: [Qemu-devel] [PATCH 2/9] exec: make iotlb RCU-friendly

2015-02-03 Thread Fam Zheng
On Tue, 02/03 13:52, Paolo Bonzini wrote: After the previous patch, TLBs will be flushed on every change to the memory mapping. This patch augments that with synchronization of the MemoryRegionSections referred to in the iotlb array. With this change, it is guaranteed that iotlb_to_region

Re: [Qemu-devel] [v4 12/13] migration: Add command to set migration parameter

2015-02-03 Thread Eric Blake
On 02/03/2015 06:26 PM, Li, Liang Z wrote: Hmm - do we really need two parameters here? Remember, compress threads is used only on the source, and decompress threads is used only on the destination. Having a single parameter, 'threads', which is set to compression threads on source and

[Qemu-devel] [PATCH v2 03/12] acpi, mem-hotplug: Add acpi_memory_hotplug_sci() to rise sci for memory hotplug.

2015-02-03 Thread Zhu Guihua
From: Tang Chen tangc...@cn.fujitsu.com Add a new API named acpi_memory_hotplug_sci() to send memory hotplug SCI. Doing this is because this procedure will be used by other functions in the next coming patches. Signed-off-by: Tang Chen tangc...@cn.fujitsu.com Signed-off-by: Zhu Guihua

[Qemu-devel] [PATCH v2 01/12] acpi, mem-hotplug: Use PC_DIMM_SLOT_PROP in acpi_memory_plug_cb().

2015-02-03 Thread Zhu Guihua
From: Tang Chen tangc...@cn.fujitsu.com Replace string slot in acpi_memory_plug_cb() with MACRO PC_DIMM_SLOT_PROP. Reviewed-by: Igor Mammedov imamm...@redhat.com Signed-off-by: Tang Chen tangc...@cn.fujitsu.com Signed-off-by: Zhu Guihua zhugh.f...@cn.fujitsu.com --- hw/acpi/memory_hotplug.c | 3

Re: [Qemu-devel] [PATCH 7/9] rcu: prod call_rcu thread when calling synchronize_rcu

2015-02-03 Thread Fam Zheng
On Tue, 02/03 13:52, Paolo Bonzini wrote: call_rcu operates on the principle that either there is a steady stream of incoming RCU callbacks, or it is not worthwhile to wake up and process the few that are there. This however makes it hard to assert in testcases that all RCU callbacks are

[Qemu-devel] [PATCH v2 11/12] pc-dimm: Add memory hot unplug support for pc-dimm.

2015-02-03 Thread Zhu Guihua
From: Tang Chen tangc...@cn.fujitsu.com Implement unplug cb for pc-dimm. It remove the corresponding memory region, and unregister vmstat. At last, it calls memory unplug cb to reset memory status and do unparenting. Signed-off-by: Zhu Guihua zhugh.f...@cn.fujitsu.com --- hw/i386/pc.c | 20

Re: [Qemu-devel] [PATCH RFC 1/1] KVM: s390: Add MEMOP ioctl for reading/writing guest memory

2015-02-03 Thread Thomas Huth
On Tue, 03 Feb 2015 16:22:32 +0100 Paolo Bonzini pbonz...@redhat.com wrote: On 03/02/2015 16:16, Thomas Huth wrote: Actually, I'd prefer to keep the virtual in the defines for the type of operation below: When it comes to s390 storage keys, we likely might need some calls for reading

Re: [Qemu-devel] [PATCH] hw/arm/virt: explain device-to-transport mapping in create_virtio_devices()

2015-02-03 Thread Peter Maydell
On 30 January 2015 at 04:34, Laszlo Ersek ler...@redhat.com wrote: Peter, On 01/30/15 05:31, Laszlo Ersek wrote: Signed-off-by: Laszlo Ersek ler...@redhat.com --- hw/arm/virt.c | 32 1 file changed, 28 insertions(+), 4 deletions(-) diff --git

Re: [Qemu-devel] [PULL 0/9] s390x bugfixes and cleanups

2015-02-03 Thread Christian Borntraeger
repository at: git://github.com/cohuck/qemu tags/s390x-20150203 for you to fetch changes up to 553ce81c31e49d834b1bf635ab486695a4694333: pc-bios/s390-ccw: update binary (2015-02-03 13:42:40 +0100) Some bugfixes and cleanups

[Qemu-devel] [PATCH 1/9] exec: introduce cpu_reload_memory_map

2015-02-03 Thread Paolo Bonzini
This for now is a simple TLB flush. This can change later for two reasons: 1) an AddressSpaceDispatch will be cached in the CPUState object 2) it will not be possible to do tlb_flush once the TCG-generated code runs outside the BQL. Signed-off-by: Paolo Bonzini pbonz...@redhat.com ---

Re: [Qemu-devel] [PATCH RFC 1/1] KVM: s390: Add MEMOP ioctl for reading/writing guest memory

2015-02-03 Thread Paolo Bonzini
On 03/02/2015 13:11, Thomas Huth wrote: On s390, we've got to make sure to hold the IPTE lock while accessing virtual memory. So let's add an ioctl for reading and writing virtual memory to provide this feature for userspace, too. Signed-off-by: Thomas Huth th...@linux.vnet.ibm.com

Re: [Qemu-devel] [PULL 0/2] OpenRISC patch queue for 2.3

2015-02-03 Thread Sebastian Macke
Hi Peter, unfortunately you are right. The correct line is this: /* invalidate lock */ -env-cpu_lock_addr = -1; +env-lock_addr = -1; I am sorry. It was most likely the last line which I added. But I forgot, that I disabled the system emulation already. Therefore my make process

Re: [Qemu-devel] [PULL 0/2] OpenRISC patch queue for 2.3

2015-02-03 Thread Peter Maydell
On 3 February 2015 at 13:04, Sebastian Macke sebast...@macke.de wrote: Hi Peter, unfortunately you are right. The correct line is this: /* invalidate lock */ -env-cpu_lock_addr = -1; +env-lock_addr = -1; I am sorry. It was most likely the last line which I added. But I

Re: [Qemu-devel] [PULL 0/9] s390x bugfixes and cleanups

2015-02-03 Thread Peter Maydell
/s390x-20150203 for you to fetch changes up to 553ce81c31e49d834b1bf635ab486695a4694333: pc-bios/s390-ccw: update binary (2015-02-03 13:42:40 +0100) Some bugfixes and cleanups for s390x, both in the new pci code and in old

Re: [Qemu-devel] [PATCH] vfio: free dynamically-allocated data in instance_finalize

2015-02-03 Thread Alex Williamson
On Tue, 2015-02-03 at 13:48 +0100, Paolo Bonzini wrote: In order to enable out-of-BQL address space lookup, destruction of devices needs to be split in two phases. Unrealize is the first phase; once it complete no new accesses will be started, but there may still be pending memory accesses

Re: [Qemu-devel] [PATCH] block: introduce BDRV_REQUEST_MAX_SECTORS

2015-02-03 Thread Denis V. Lunev
On 03/02/15 17:30, Peter Lieven wrote: Am 03.02.2015 um 14:29 schrieb Denis V. Lunev: On 03/02/15 15:12, Peter Lieven wrote: we check and adjust request sizes at several places with sometimes inconsistent checks or default values: INT_MAX INT_MAX BDRV_SECTOR_BITS UINT_MAX

Re: [Qemu-devel] [PULL 0/9] s390x bugfixes and cleanups

2015-02-03 Thread Peter Maydell
/s390x-20150203 for you to fetch changes up to 553ce81c31e49d834b1bf635ab486695a4694333: pc-bios/s390-ccw: update binary (2015-02-03 13:42:40 +0100) Some bugfixes and cleanups for s390x, both in the new pci code and in old

Re: [Qemu-devel] [PATCH 0/4] block: Drop BDS.filename

2015-02-03 Thread Kevin Wolf
Am 03.02.2015 um 14:48 hat Max Reitz geschrieben: On 2015-02-03 at 04:32, Kevin Wolf wrote: Am 24.09.2014 um 21:48 hat Max Reitz geschrieben: The BDS filename field is generally only used when opening disk images or emitting error or warning messages, the only exception to this rule is the

[Qemu-devel] Looking for Outreachy sponsors for QEMU, libvirt, and KVM internships (was Outreach Program for Women)

2015-02-03 Thread Stefan Hajnoczi
Outreach Program for Women is renaming to Outreachy. The new website is: http://outreachy.org/ What is Outreachy? Outreachy helps people from underrepresented groups join the open source community through a 12-week full-time paid internship. The format is similar to Google Summer of Code.

[Qemu-devel] [PATCH v3 8/8] tcg: Remove unused opcodes

2015-02-03 Thread Richard Henderson
We no longer need INDEX_op_end to terminate the list, nor do we need 5 forms of nop, since we just remove the TCGOp instead. Reviewed-by: Bastian Koppelmann kbast...@mail.uni-paderborn.de Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/tcg-opc.h | 9 - tcg/tcg.c | 7

[Qemu-devel] [PATCH v3 5/8] tcg: Put opcodes in a linked list

2015-02-03 Thread Richard Henderson
The previous setup required ops and args to be completely sequential, and was error prone when it came to both iteration and optimization. Signed-off-by: Richard Henderson r...@twiddle.net --- include/exec/gen-icount.h | 22 ++- tcg/optimize.c| 286

[Qemu-devel] [PATCH v3 2/8] tcg: Reduce ifdefs in tcg-op.c

2015-02-03 Thread Richard Henderson
Almost completely eliminates the ifdefs in this file, improving confidence in the lesser used 32-bit builds. Reviewed-by: Bastian Koppelmann kbast...@mail.uni-paderborn.de Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/tcg-op.c | 449

Re: [Qemu-devel] [PATCH v5 07/10] qmp: add rocker device support

2015-02-03 Thread Eric Blake
On 01/22/2015 01:03 AM, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com Add QMP/HMP support for rocker devices. This is mostly for debugging purposes to see inside the device's tables and port configurations. Some examples: QMP interface review: +++ b/qapi-schema.json

Re: [Qemu-devel] [PATCH RFC 1/1] KVM: s390: Add MEMOP ioctl for reading/writing guest memory

2015-02-03 Thread Thomas Huth
On Tue, 03 Feb 2015 14:04:43 +0100 Paolo Bonzini pbonz...@redhat.com wrote: On 03/02/2015 13:11, Thomas Huth wrote: On s390, we've got to make sure to hold the IPTE lock while accessing virtual memory. So let's add an ioctl for reading and writing virtual memory to provide this feature for

[Qemu-devel] [PATCH v3 0/8] Linked list for tcg ops

2015-02-03 Thread Richard Henderson
Currently tcg ops are simply placed in a buffer in order. Which is fine until we want to actually do something with the opcode stream, such as optimize them. Note the horrible things like call opcodes needing their argument count both prefixed and postfixed so that we can iterate across the call

[Qemu-devel] [PATCH v3 3/8] tcg: Move emit of INDEX_op_end into gen_tb_end

2015-02-03 Thread Richard Henderson
Reviewed-by: Bastian Koppelmann kbast...@mail.uni-paderborn.de Signed-off-by: Richard Henderson r...@twiddle.net --- include/exec/gen-icount.h | 2 ++ target-alpha/translate.c | 2 +- target-arm/translate-a64.c| 1 - target-arm/translate.c| 1 - target-cris/translate.c

[Qemu-devel] [PATCH v3 7/8] tcg: Implement insert_op_before

2015-02-03 Thread Richard Henderson
Rather reserving space in the op stream for optimization, let the optimizer add ops as necessary. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/optimize.c | 57 +++-- tcg/tcg-op.c | 21 - tcg/tcg-op.h | 1 -

[Qemu-devel] QEMU crash on PCI passthrough

2015-02-03 Thread Krzysztof Katowicz-Kowalewski
Hello qemu-devel list, I have a problem with PCI passthrough of my second gfx card (Nvidia GTX 760). I use gentoo, gentoo-hardened kernel sources and I have SELinux enabled (anyway for purpose of these tests I've added svirt_t and virtd_t to permissive types, so it shouldn't make any problem). I

Re: [Qemu-devel] [PATCH RFC 1/1] KVM: s390: Add MEMOP ioctl for reading/writing guest memory

2015-02-03 Thread Paolo Bonzini
On 03/02/2015 16:16, Thomas Huth wrote: Actually, I'd prefer to keep the virtual in the defines for the type of operation below: When it comes to s390 storage keys, we likely might need some calls for reading and writing to physical memory, too. Then we could simply extend this ioctl instead

[Qemu-devel] [PATCH v3 6/8] tcg: Remove opcodes instead of noping them out

2015-02-03 Thread Richard Henderson
With the linked list scheme we need not leave nops in the stream that we need to process later. Reviewed-by: Bastian Koppelmann kbast...@mail.uni-paderborn.de Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/optimize.c | 14 +++--- tcg/tcg.c | 28

[Qemu-devel] [PATCH v3 4/8] tcg: Introduce tcg_op_buf_count and tcg_op_buf_full

2015-02-03 Thread Richard Henderson
The method by which we count the number of ops emitted is going to change. Abstract that away into some inlines. Reviewed-by: Bastian Koppelmann kbast...@mail.uni-paderborn.de Signed-off-by: Richard Henderson r...@twiddle.net --- target-alpha/translate.c | 14 +++---

Re: [Qemu-devel] [PATCH] block: introduce BDRV_REQUEST_MAX_SECTORS

2015-02-03 Thread Peter Lieven
Am 03.02.2015 um 14:29 schrieb Denis V. Lunev: On 03/02/15 15:12, Peter Lieven wrote: we check and adjust request sizes at several places with sometimes inconsistent checks or default values: INT_MAX INT_MAX BDRV_SECTOR_BITS UINT_MAX BDRV_SECTOR_BITS SIZE_MAX BDRV_SECTOR_BITS This

Re: [Qemu-devel] [PATCH v2 0/5] vhost-scsi: support to assign boot order

2015-02-03 Thread Gonglei
On 2015/1/29 15:08, Gonglei (Arei) wrote: From: Gonglei arei.gong...@huawei.com Qemu haven't provide a bootindex property for vhost-scsi device. So, we can not assign the boot order for it at present. But Some clients/users have requirements for that in some scenarios. This patch achieve

Re: [Qemu-devel] [Qemu-ppc] [RFC] pseries: Enable in-kernel H_LOGICAL_CI_{LOAD, STORE} implementations

2015-02-03 Thread Nikunj A Dadhania
David Gibson da...@gibson.dropbear.id.au writes: qemu currently implements the hypercalls H_LOGICAL_CI_LOAD and H_LOGICAL_CI_STORE as PAPR extensions. These are used by the SLOF firmware for IO, because performing cache inhibited MMIO accesses with the MMU off (real mode) is very awkward on

Re: [Qemu-devel] [PATCH 1/3] nbd: Drop BDS backpointer

2015-02-03 Thread Paolo Bonzini
On 02/02/2015 22:40, Max Reitz wrote: Before this patch, the opaque pointer in an NBD BDS points to a BDRVNBDState, which contains an NbdClientSession object, which in turn contains a pointer to the BDS. This pointer may become invalid due to bdrv_swap(), so drop it, and instead pass the BDS

Re: [Qemu-devel] [PATCH 3/3] iotests: Add test for drive-mirror with NBD target

2015-02-03 Thread Paolo Bonzini
On 02/02/2015 22:40, Max Reitz wrote: When the drive-mirror block job is completed, it will call bdrv_swap() on the source and the target BDS; this should obviously not result in a segmentation fault. Signed-off-by: Max Reitz mre...@redhat.com --- tests/qemu-iotests/094 | 81

Re: [Qemu-devel] [PATCH v2 0/5] Common unplug and unplug request cb for memory and CPU hot-unplug

2015-02-03 Thread Zhi Yong Wu
HI, If you can push the patchset to a branch on github, it will be convenient for other guys to do some tests. On Wed, Jan 28, 2015 at 3:45 PM, Zhu Guihua zhugh.f...@cn.fujitsu.com wrote: Memory and CPU hot unplug are both asynchronous procedures. When the unplug operation happens, unplug

Re: [Qemu-devel] [PATCH 13/19] libqos/ahci: add ahci command size setters

2015-02-03 Thread Paolo Bonzini
On 02/02/2015 22:09, John Snow wrote: In this case, only the command header had a utility written for it to flip the bits for me. This is part of the FIS, instead, which has no explicit flip-on-write mechanism inside of commit. So, it's correct, but not terribly consistent. I can

Re: [Qemu-devel] [PATCH v2 1/2] configure: Default to enable module build

2015-02-03 Thread Paolo Bonzini
On 03/02/2015 02:29, Fam Zheng wrote: Peter reported that module linking fails on ARM host: LINK block/curl.so /usr/bin/ld: block/curl.o: relocation R_ARM_THM_MOVW_ABS_NC against `__stack_chk_guard' can not be used when making a shared object; recompile with -fPIC block/curl.o:

Re: [Qemu-devel] [PATCH 2/3] iotests: Add wait functionality to _cleanup_qemu

2015-02-03 Thread Paolo Bonzini
On 02/02/2015 22:40, Max Reitz wrote: The qemu process does not always need to be killed, just waiting for it can be fine, too. This introduces a way to do so. Signed-off-by: Max Reitz mre...@redhat.com --- tests/qemu-iotests/common.qemu | 12 +++- 1 file changed, 11

Re: [Qemu-devel] [PATCH v2 00/11] cpu: add i386 cpu hot remove support

2015-02-03 Thread Zhi Yong Wu
HI, Can you push the patchset to a branch on github? It will be convenient for other guys to do some tests. On Wed, Jan 14, 2015 at 3:44 PM, Zhu Guihua zhugh.f...@cn.fujitsu.com wrote: This series is based on chen fan's previous i386 cpu hot remove patchset:

Re: [Qemu-devel] [question] the patch which affect performance of virtio-scsi

2015-02-03 Thread Paolo Bonzini
On 03/02/2015 03:31, Wangting (Kathy) wrote: Hi Paolo, Recently I test IO performance with virtio-scsi, and find out that the patch of virtio-scsi: add support for the any_layout feature affects IO performance of model with 4KB 32iodepth sequence read. Why cdb and sense is removed

Re: [Qemu-devel] [RESEND PATCH v1 00/13] QEmu memory hot unplug support.

2015-02-03 Thread Zhi Yong Wu
HI, Can you push the patchset to a branch on github? It will be convenient for other guys to do some tests. On Thu, Jan 8, 2015 at 9:06 AM, Tang Chen tangc...@cn.fujitsu.com wrote: Memory hot unplug are both asynchronize procedures. When the unplug operation happens, unplug request cb is

Re: [Qemu-devel] [question] the patch which affect performance of virtio-scsi

2015-02-03 Thread Paolo Bonzini
On 03/02/2015 03:56, Wangting (Kathy) wrote: Sorry, I find that the patch of virtio-scsi: Optimize virtio_scsi_init_req can slove this problem. Great that you could confirm that. :) By the way, can you tell me the reason of the change about cdb and sense? cdb and sense are variable-size

Re: [Qemu-devel] [PATCH 2/2] bootdevice: add check in restore_boot_order()

2015-02-03 Thread Gonglei
On 2015/2/3 15:49, Markus Armbruster wrote: You're right. pc.c's set_boot_dev() fails when its boot order argument is invalid. The boot order interface is crap, because it makes detecting configuration errors early hard. Two solutions: A. It may be hard, but not too hard for the

Re: [Qemu-devel] [PATCH 17/19] qtest/ahci: Add a macro bootup routine

2015-02-03 Thread Paolo Bonzini
On 02/02/2015 22:12, John Snow wrote: It comes in handy later for testing migration so I don't have to do a lot of boilerplate for each instance, though it is just a convenience subroutine with no logic of its own. I like to cut down on boilerplate as much as possible to expose the

Re: [Qemu-devel] [PATCH 0/4] nbd: iotest fixes and error message improvement

2015-02-03 Thread Kevin Wolf
Am 27.01.2015 um 03:02 hat Max Reitz geschrieben: This series is a follow-up to my previous patch iotests: Specify format for qemu-nbd and as such relies on it. The first three patches of this series fix the qemu-iotests so they once again pass when using NBD. The fourth patch of this

Re: [Qemu-devel] [RFC PATCH v8 11/21] replay: recording and replaying clock ticks

2015-02-03 Thread Pavel Dovgaluk
From: Paolo Bonzini [mailto:pbonz...@redhat.com] On 03/02/2015 11:51, Pavel Dovgaluk wrote: From: Paolo Bonzini [mailto:pbonz...@redhat.com] On 22/01/2015 09:52, Pavel Dovgalyuk wrote: Clock ticks are considered as the sources of non-deterministic data for virtual machine. This patch

Re: [Qemu-devel] [PATCH 1/3] softfloat: Expand out the STATUS_PARAM macro

2015-02-03 Thread Peter Maydell
On 2 February 2015 at 21:37, Richard Henderson r...@twiddle.net wrote: On 02/02/2015 12:31 PM, Peter Maydell wrote: -void float_raise( int8 flags STATUS_PARAM ) +void float_raise(int8 flags , float_status *status) Extra space before comma. Thanks, fixed. I don't propose to send out a respin

Re: [Qemu-devel] [PATCH v2 0/5] vhost-scsi: support to assign boot order

2015-02-03 Thread Gonglei
On 2015/2/3 19:11, Paolo Bonzini wrote: On 03/02/2015 09:55, Gonglei wrote: On 2015/1/29 15:08, Gonglei (Arei) wrote: From: Gonglei arei.gong...@huawei.com Qemu haven't provide a bootindex property for vhost-scsi device. So, we can not assign the boot order for it at present. But Some

Re: [Qemu-devel] [PATCH 1/2] glusterfs: fix max_discard

2015-02-03 Thread Peter Lieven
Am 03.02.2015 um 08:31 schrieb Denis V. Lunev: On 02/02/15 23:46, Denis V. Lunev wrote: On 02/02/15 23:40, Peter Lieven wrote: Am 02.02.2015 um 21:09 schrieb Denis V. Lunev: qemu_gluster_co_discard calculates size to discard as follows size_t size = nb_sectors * BDRV_SECTOR_SIZE;

[Qemu-devel] [PATCH] libcacard: stop linking against every single 3rd party library

2015-02-03 Thread Daniel P. Berrange
Building QEMU results in a libcacard.so that links against practically the entire world linux-vdso.so.1 = (0x7fff71e99000) libssl3.so = /usr/lib64/libssl3.so (0x7f49f94b6000) libsmime3.so = /usr/lib64/libsmime3.so (0x7f49f928e000) libnss3.so =

Re: [Qemu-devel] [PATCH v2 00/11] target-arm: handle mmu_idx/translation regimes properly

2015-02-03 Thread Peter Maydell
On 29 January 2015 at 18:55, Peter Maydell peter.mayd...@linaro.org wrote: This patchseries fixes up our somewhat broken handling of mmu_idx values: * implement the full set of 7 mmu_idxes we need for supporting EL2 and EL3 * pass the mmu_idx in the TB flags rather than EL or a priv flag,

Re: [Qemu-devel] [PATCH 1/2] glusterfs: fix max_discard

2015-02-03 Thread Kevin Wolf
Am 03.02.2015 um 12:30 hat Peter Lieven geschrieben: Am 03.02.2015 um 08:31 schrieb Denis V. Lunev: On 02/02/15 23:46, Denis V. Lunev wrote: On 02/02/15 23:40, Peter Lieven wrote: Am 02.02.2015 um 21:09 schrieb Denis V. Lunev: qemu_gluster_co_discard calculates size to discard as follows

Re: [Qemu-devel] [PATCH 1/2] glusterfs: fix max_discard

2015-02-03 Thread Peter Lieven
Am 03.02.2015 um 12:37 schrieb Kevin Wolf: Am 03.02.2015 um 12:30 hat Peter Lieven geschrieben: Am 03.02.2015 um 08:31 schrieb Denis V. Lunev: On 02/02/15 23:46, Denis V. Lunev wrote: On 02/02/15 23:40, Peter Lieven wrote: Am 02.02.2015 um 21:09 schrieb Denis V. Lunev:

[Qemu-devel] [PATCH v2 12/19] libqos/ahci: add ahci command functions

2015-02-03 Thread John Snow
This patch adds the AHCICommand structure, and a set of functions to operate on the structure. ahci_command_create - Initialize and create a new AHCICommand in memory ahci_command_free - Destroy this object. ahci_command_set_buffer - Set where the guest memory DMA buffer is. ahci_command_commit -

Re: [Qemu-devel] [PATCH 4/8] guest agent: add guest-pipe-open

2015-02-03 Thread Eric Blake
On 12/31/2014 06:06 AM, Denis V. Lunev wrote: From: Simon Zolin szo...@parallels.com Creates a FIFO pair that can be used with existing file read/write interfaces to communicate with processes spawned via the forthcoming guest-file-exec interface. Signed-off-by: Simon Zolin

Re: [Qemu-devel] [PATCH 3/8] guest agent: guest-file-open: refactoring

2015-02-03 Thread Eric Blake
On 12/31/2014 06:06 AM, Denis V. Lunev wrote: From: Simon Zolin szo...@parallels.com Moved the code that sets non-blocking flag on fd into a separate function. Signed-off-by: Simon Zolin szo...@parallels.com Acked-by: Roman Kagan rka...@parallels.com Signed-off-by: Denis V. Lunev

Re: [Qemu-devel] [PATCH 4/8] guest agent: add guest-pipe-open

2015-02-03 Thread Eric Blake
On 02/03/2015 02:57 PM, Eric Blake wrote: +# Returns: Guest file handle on success, as per guest-file-open. This +# handle is useable with the same interfaces as a handle returned by + 'returns': 'int' } I'm not a fan of returning a bare 'int' - it is not extensible. Better is

Re: [Qemu-devel] RFC: Proposal to add QEMU Guest Environment Variables

2015-02-03 Thread Michael Roth
Quoting Gabriel L. Somlo (2015-02-03 15:38:59) On Tue, Feb 03, 2015 at 02:11:12PM -0600, Michael Roth wrote: This does seem like useful functionality, but I think I'd like to know more about the actual use-cases being looked at. The proposed functionality is mostly equivalent to that

Re: [Qemu-devel] RFC: Proposal to add QEMU Guest Environment Variables

2015-02-03 Thread Gabriel L. Somlo
On Wed, Feb 04, 2015 at 12:49:22AM +0300, Denis V. Lunev wrote: On 04/02/15 00:38, Gabriel L. Somlo wrote: On Tue, Feb 03, 2015 at 02:11:12PM -0600, Michael Roth wrote: This does seem like useful functionality, but I think I'd like to know more about the actual use-cases being looked at.

Re: [Qemu-devel] [PATCH v2] qga: add guest-set-admin-password command

2015-02-03 Thread Eric Blake
On 01/12/2015 08:58 AM, Daniel P. Berrange wrote: Add a new 'guest-set-admin-password' command for changing the root/administrator password. This command is needed to allow OpenStack to support its API for changing the admin password on a running guest. Accepts either the raw password

Re: [Qemu-devel] [v4 11/13] migration: Add interface to control compression

2015-02-03 Thread Eric Blake
On 02/02/2015 04:05 AM, Liang Li wrote: The multiple compression threads can be turned on/off through qmp and hmp interface before doing live migration. Signed-off-by: Liang Li liang.z...@intel.com Signed-off-by: Yang Zhang yang.z.zh...@intel.com Reviewed-by: Dr.David Alan Gilbert

Re: [Qemu-devel] [RFC 05/10] extract TBContext from TCGContext.

2015-02-03 Thread Richard Henderson
On 01/29/2015 07:44 AM, Peter Maydell wrote: On 16 January 2015 at 17:19, fred.kon...@greensocs.com wrote: From: KONRAD Frederic fred.kon...@greensocs.com In order to have one TCGContext per thread and a single TBContext we have to extract TBContext from TCGContext. This seems a bit odd.

Re: [Qemu-devel] [RFC 02/10] use a different translation block list for each cpu.

2015-02-03 Thread Paolo Bonzini
On 03/02/2015 17:17, Richard Henderson wrote: @@ -759,7 +760,9 @@ static void page_flush_tb_1(int level, void **lp) PageDesc *pd = *lp; for (i = 0; i V_L2_SIZE; ++i) { -pd[i].first_tb = NULL; +for (j = 0; j MAX_CPUS; j++) { +

Re: [Qemu-devel] [RFC PATCH v2 09/11] hw/arm/virt-acpi-build: Generate XSDT table

2015-02-03 Thread Laszlo Ersek
On 02/03/15 17:19, Igor Mammedov wrote: On Thu, 29 Jan 2015 16:37:11 +0800 Shannon Zhao zhaoshengl...@huawei.com wrote: XDST points to other tables except FACS DSDT. Is there any reason to use XSDT instead of RSDT? If ACPI tables are below 4Gb which probably would be the case then RSDT

Re: [Qemu-devel] [PATCH 0/7] MIPS: IEEE 754-2008 features support

2015-02-03 Thread Thomas Schwinge
Hi! On Fri, 30 Jan 2015 13:47:17 +, Maciej W. Rozycki ma...@linux-mips.org wrote: On Fri, 30 Jan 2015, Peter Maydell wrote: This patch series comprises changes to QEMU, both the MIPS backend and generic SoftFloat support code, to support IEEE 754-2008 features introduced to

[Qemu-devel] balloon vs postcopy migrate

2015-02-03 Thread Dr. David Alan Gilbert
Hi, Andrea pointed out there is a risk that a guest inflating its balloon during a postcopy migrate could cause us problems, and I wanted to see what the best way of avoiding the problem was. Guests inflating there balloon cause an madvise(MADV_DONTNEED) on the host, marking pages as not

Re: [Qemu-devel] [RFC PATCH v2 09/11] hw/arm/virt-acpi-build: Generate XSDT table

2015-02-03 Thread Igor Mammedov
On Thu, 29 Jan 2015 16:37:11 +0800 Shannon Zhao zhaoshengl...@huawei.com wrote: XDST points to other tables except FACS DSDT. Is there any reason to use XSDT instead of RSDT? If ACPI tables are below 4Gb which probably would be the case then RSDT could be used just fine and we could share more

Re: [Qemu-devel] [PATCH v2 3/7] softfloat: Convert `*_default_nan' variables into inline functions

2015-02-03 Thread Richard Henderson
On 01/30/2015 08:02 AM, Maciej W. Rozycki wrote: Hmm, so perhaps my idea for a later improvement: Eventually we might want to move the new inline functions into a separate header to be included from softfloat.h instead of softfloat.c, but let's make changes one step at a time. will

Re: [Qemu-devel] [PATCH v5 02/10] virtio-net: use qemu_mac_strdup_printf

2015-02-03 Thread Eric Blake
On 01/22/2015 01:03 AM, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com Signed-off-by: Scott Feldman sfel...@gmail.com --- hw/net/virtio-net.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) You could merge this with 1/10 without any dire consequences.

Re: [Qemu-devel] [PATCH] vfio: free dynamically-allocated data in instance_finalize

2015-02-03 Thread Paolo Bonzini
On 03/02/2015 16:20, Alex Williamson wrote: On Tue, 2015-02-03 at 13:48 +0100, Paolo Bonzini wrote: In order to enable out-of-BQL address space lookup, destruction of devices needs to be split in two phases. Unrealize is the first phase; once it complete no new accesses will be started,

Re: [Qemu-devel] [PATCH v5 03/10] rocker: add register programming guide

2015-02-03 Thread Eric Blake
On 01/22/2015 01:03 AM, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com This is the register programming guide for the Rocker device. It's intended for driver writers and device writers. It covers the device's PCI space, the register set, DMA interface, and interrupts. In

Re: [Qemu-devel] [RFC 02/10] use a different translation block list for each cpu.

2015-02-03 Thread Richard Henderson
On 01/16/2015 09:19 AM, fred.kon...@greensocs.com wrote: @@ -759,7 +760,9 @@ static void page_flush_tb_1(int level, void **lp) PageDesc *pd = *lp; for (i = 0; i V_L2_SIZE; ++i) { -pd[i].first_tb = NULL; +for (j = 0; j MAX_CPUS; j++) { +

Re: [Qemu-devel] [PATCH 1/2] glusterfs: fix max_discard

2015-02-03 Thread Denis V. Lunev
On 03/02/15 14:47, Peter Lieven wrote: Am 03.02.2015 um 12:37 schrieb Kevin Wolf: Am 03.02.2015 um 12:30 hat Peter Lieven geschrieben: Am 03.02.2015 um 08:31 schrieb Denis V. Lunev: On 02/02/15 23:46, Denis V. Lunev wrote: On 02/02/15 23:40, Peter Lieven wrote: Am 02.02.2015 um 21:09

[Qemu-devel] [PATCH v2 0/3] bootdevcie: change the boot order validation logic

2015-02-03 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com The reset logic can be done by both machine reset and boot handler. So we shouldn't return error when the boot handler callback don't be set in patch 1. Patch 2 check boot order argument validation before vm running. Patch 3 passing error_abort instead of

[Qemu-devel] [PATCH v2 2/3] bootdevice: check boot order argument validation before vm running

2015-02-03 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Either 'once' option or 'order' option can take effect for -boot at the same time, that is say initial startup processing can check only one. And pc.c's set_boot_dev() fails when its boot order argument is invalid. This patch provide a solution fix this

[Qemu-devel] [PATCH v2 3/3] bootdevice: add check in restore_boot_order()

2015-02-03 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com qemu_boot_set() can't fail in restore_boot_order(), then simply assert it doesn't fail, by passing error_abort. Signed-off-by: Gonglei arei.gong...@huawei.com --- bootdevice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootdevice.c

[Qemu-devel] [PATCH] vfio: free dynamically-allocated data in instance_finalize

2015-02-03 Thread Paolo Bonzini
In order to enable out-of-BQL address space lookup, destruction of devices needs to be split in two phases. Unrealize is the first phase; once it complete no new accesses will be started, but there may still be pending memory accesses can still be completed. The second part is freeing the

Re: [Qemu-devel] [PATCH RFC 0/1] KVM: ioctl for reading/writing guest memory

2015-02-03 Thread Christian Borntraeger
Am 03.02.2015 um 13:59 schrieb Paolo Bonzini: On 03/02/2015 13:11, Thomas Huth wrote: The userspace (QEMU) then can simply call this ioctl when it wants to read or write from/to virtual guest memory. Then kernel then takes the IPTE-lock, walks the MMU table of the guest to find out the

[Qemu-devel] [PULL 6/9] s390x/kvm: unknown DIAGNOSE code should give a specification exception

2015-02-03 Thread Cornelia Huck
From: Christian Borntraeger borntrae...@de.ibm.com As described in CP programming services an unimplemented DIAGNOSE function should return a specification exception. Today we give the guest an operation exception. As both exception types are suppressing and Linux as a guest does not care about

  1   2   3   >