Re: [Qemu-devel] [RFC PATCH v0 4/6] spapr: CPU hotplug support

2016-03-01 Thread Bharata B Rao
On Mon, Feb 29, 2016 at 10:12:10AM +0530, Bharata B Rao wrote: > > > diff --git a/hw/ppc/spapr_rtas.c b/hw/ppc/spapr_rtas.c > > > index b7c5ebd..cc0369e 100644 > > > --- a/hw/ppc/spapr_rtas.c > > > +++ b/hw/ppc/spapr_rtas.c > > > @@ -34,6 +34,7 @@ > > > > > > #include "hw/ppc/spapr.h" > > > #in

Re: [Qemu-devel] [RFC PATCH v0 2/6] spapr: CPU core device

2016-03-01 Thread Bharata B Rao
On Mon, Feb 29, 2016 at 04:15:25PM +0100, Igor Mammedov wrote: > On Mon, 29 Feb 2016 18:25:25 +0530 > Bharata B Rao wrote: > > > On Mon, Feb 29, 2016 at 11:03:16AM +0100, Igor Mammedov wrote: > > > On Mon, 29 Feb 2016 11:20:19 +0530 > > > Bharata B Rao wrote: > > > > > > > On Fri, Feb 26, 201

[Qemu-devel] [PULL 1/5] console: add & use qemu_console_lookup_by_device_name

2016-03-01 Thread Gerd Hoffmann
We have two places needing this, and a third one will come shortly. So factor things out into a helper function to reduce code duplication. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel P. Berrange Reviewed-by: Markus Armbruster --- include/ui/console.h | 2 ++ ui/console.c | 23 ++

[Qemu-devel] [PULL 5/5] qapi: promote input-send-event to stable

2016-03-01 Thread Gerd Hoffmann
With all fixups being in place now, we can promote input-send-event to stable abi by removing the x- prefix. Signed-off-by: Gerd Hoffmann Reviewed-by: Markus Armbruster Reviewed-by: Eric Blake --- qapi-schema.json | 12 +++- qmp-commands.hx | 14 +++--- ui/input.c | 6 +

[Qemu-devel] [PULL 2/5] qapi: switch x-input-send-event from console to device+head

2016-03-01 Thread Gerd Hoffmann
Use display device qdev id and head number instead of console index to specify the QemuConsole. This makes things consistent with input devices (for input routing) and vnc server configuration, which both use display and head too. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel P. Berrange Rev

[Qemu-devel] [PULL 3/5] qapi: rename input buttons

2016-03-01 Thread Gerd Hoffmann
All lowercase, use-dash instead of CamelCase. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel P. Berrange Reviewed-by: Markus Armbruster Reviewed-by: Eric Blake --- hw/input/hid.c | 4 ++-- hw/input/ps2.c | 4 ++-- hw/input/virtio-input-hid.c | 4 ++-- monitor.c

[Qemu-devel] [PULL 0/5] qapi: fix input-send-event and promote to stable

2016-03-01 Thread Gerd Hoffmann
/pull-usb-20160229-1' into staging (2016-02-29 12:24:26 +) are available in the git repository at: git://git.kraxel.org/qemu tags/pull-input-20160301-1 for you to fetch changes up to 6575ccddf4e7c2484bc14b10d5e89f57506c3953: qapi: promote input-send-event to stable (2016-03-01

[Qemu-devel] [PULL 4/5] qapi: rename InputAxis values.

2016-03-01 Thread Gerd Hoffmann
Lowercase them. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel P. Berrange Reviewed-by: Markus Armbruster Reviewed-by: Eric Blake --- qapi-schema.json | 5 + qmp-commands.hx | 4 ++-- scripts/qapi.py | 1 - 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/qapi-schema.jso

[Qemu-devel] [PULL 1/1] seabios: update to 1.9.1 stable release

2016-03-01 Thread Gerd Hoffmann
git shortlog rel-1.9.0..rel-1.9.1 = Cole Robinson (1): biostables: Support SMBIOS 2.6+ UUID format Kevin O'Connor (7): xhci: Check for device disconnects during USB2 reset polling xhci: Wait for port enable even for USB3 devices sdcard: Only

[Qemu-devel] [PULL 0/1] seabios: update to 1.9.1 stable release

2016-03-01 Thread Gerd Hoffmann
-1' into staging (2016-02-29 12:24:26 +) are available in the git repository at: git://git.kraxel.org/qemu tags/pull-seabios-20160301-1 for you to fetch changes up to fee5b753ff0eb8b25685227804a60dbc4a2ce6ea: seabios: update to 1.9.1 stable release (2016-03-01 0

Re: [Qemu-devel] [PATCH v3 5/8] nvdimm acpi: introduce patched dsm memory

2016-03-01 Thread Xiao Guangrong
On 02/29/2016 05:38 PM, Michael S. Tsirkin wrote: On Sun, Feb 14, 2016 at 04:51:02PM +0800, Xiao Guangrong wrote: The dsm memory is used to save the input parameters and store the dsm result which is filled by QEMU. The address of dsm memory is decided by bios and patched into int32 object na

Re: [Qemu-devel] [PATCH v3 5/8] nvdimm acpi: introduce patched dsm memory

2016-03-01 Thread Xiao Guangrong
On 02/29/2016 05:38 PM, Michael S. Tsirkin wrote: +/* Build NAME(, 0x) where 0x is encoded as a dword, + * and return the offset to 0x for runtime patching. + * + * Warning: runtime patching is best avoided. Only use this as + * a replacement for DataTableRegion (fo

Re: [Qemu-devel] [PATCH v3 5/8] nvdimm acpi: introduce patched dsm memory

2016-03-01 Thread Michael S. Tsirkin
On Tue, Mar 01, 2016 at 04:53:23PM +0800, Xiao Guangrong wrote: > > > On 02/29/2016 05:38 PM, Michael S. Tsirkin wrote: > > >+/* Build NAME(, 0x) where 0x is encoded as a dword, > >+ * and return the offset to 0x for runtime patching. > >+ * > >+ * Warning: runtime pa

[Qemu-devel] [PATCH qemu v13 03/16] spapr_iommu: Move table allocation to helpers

2016-03-01 Thread Alexey Kardashevskiy
At the moment presence of vfio-pci devices on a bus affect the way the guest view table is allocated. If there is no vfio-pci on a PHB and the host kernel supports KVM acceleration of H_PUT_TCE, a table is allocated in KVM. However, if there is vfio-pci and we do yet not KVM acceleration for these,

[Qemu-devel] [PATCH qemu v13 00/16] spapr: vfio: Enable Dynamic DMA windows (DDW)

2016-03-01 Thread Alexey Kardashevskiy
Each Partitionable Endpoint (IOMMU group) has an address range on a PCI bus where devices are allowed to do DMA. These ranges are called DMA windows. By default, there is a single DMA window, 1 or 2GB big, mapped at zero on a PCI bus. PAPR defines a DDW RTAS API which allows pseries guests queryi

[Qemu-devel] [PATCH qemu v13 04/16] spapr_iommu: Introduce "enabled" state for TCE table

2016-03-01 Thread Alexey Kardashevskiy
Currently TCE tables are created once at start and their sizes never change. We are going to change that by introducing a Dynamic DMA windows support where DMA configuration may change during the guest execution. This changes spapr_tce_new_table() to create an empty zero-size IOMMU memory region (

[Qemu-devel] [PATCH qemu v13 02/16] spapr_pci: Move DMA window enablement to a helper

2016-03-01 Thread Alexey Kardashevskiy
We are going to have multiple DMA windows soon so let's start preparing. This adds a new helper to create a DMA window and makes use of it in sPAPRPHBState::realize(). Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr_pci.c | 40 +++- 1 file changed, 27 in

[Qemu-devel] [PATCH qemu v13 10/16] vfio: Use different page size for different IOMMU types

2016-03-01 Thread Alexey Kardashevskiy
The existing memory listener is called on RAM or PCI address space which implies potentially different page size. This uses new memory_region_iommu_get_page_sizes() for IOMMU regions or falls back to qemu_real_host_page_size if RAM. Signed-off-by: Alexey Kardashevskiy --- Changes: * uses the sma

[Qemu-devel] [PATCH qemu v13 01/16] memory: Fix IOMMU replay base address

2016-03-01 Thread Alexey Kardashevskiy
Since a788f227 "memory: Allow replay of IOMMU mapping notifications" when new VFIO listener is added, all existing IOMMU mappings are replayed. However there is a problem that the base address of an IOMMU memory region (IOMMU MR) is ignored which is not a problem for the existing user (which is pse

[Qemu-devel] [PATCH qemu v13 06/16] spapr_pci: Reset DMA config on PHB reset

2016-03-01 Thread Alexey Kardashevskiy
LoPAPR dictates that during system reset all DMA windows must be removed and the default DMA32 window must be created so does the patch. At the moment there is just one window supported so no change in behaviour is expected. Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr_iommu.c | 2 +-

[Qemu-devel] [PATCH qemu v13 15/16] vfio: Move iova_pgsizes from container to guest IOMMU

2016-03-01 Thread Alexey Kardashevskiy
The page size is an attribute of an IOMMU, not a container as a container may contain more just one IOMMU. This moves iova_pgsizes from VFIOContainer to VFIOGuestIOMMU. The following patch will use this. This removes iova_pgsizes from Type1 IOMMU as it is not used there anyway and when it will ge

[Qemu-devel] [PATCH qemu v13 14/16] spapr_pci: Add and export DMA resetting helper

2016-03-01 Thread Alexey Kardashevskiy
This will be later used by the "ibm,reset-pe-dma-window" RTAS handler which resets the DMA configuration to the defaults. Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr_pci.c | 11 --- include/hw/pci-host/spapr.h | 2 ++ 2 files changed, 10 insertions(+), 3 deletions(-)

[Qemu-devel] [PATCH qemu v13 09/16] vfio: Generalize IOMMU memory listener

2016-03-01 Thread Alexey Kardashevskiy
At the moment VFIOContainer uses one memory listener which listens on PCI address space for both Type1 and sPAPR IOMMUs. Soon we will need another listener to listen on RAM; this will do DMA memory pre-registration for sPAPR guests which basically pins all guest pages in the host physical RAM. Thi

[Qemu-devel] [PATCH qemu v13 12/16] vmstate: Define VARRAY with VMS_ALLOC

2016-03-01 Thread Alexey Kardashevskiy
This allows dynamic allocation for migrating arrays. Already existing VMSTATE_VARRAY_UINT32 requires an array to be pre-allocated, however there are cases when the size is not known in advance and there is no real need to enforce it. This defines another variant of VMSTATE_VARRAY_UINT32 with WMS_

[Qemu-devel] [PATCH qemu v13 07/16] vfio, memory: Notify IOMMU about starting/stopping being used by VFIO

2016-03-01 Thread Alexey Kardashevskiy
This adds a vfio_votify() callback to inform an IOMMU (and then its owner) that VFIO started using the IOMMU. This is used by the pseries machine to enable/disable in-kernel acceleration of TCE hypercalls. Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr_iommu.c | 9 + hw/ppc/spap

[Qemu-devel] [PATCH qemu v13 13/16] spapr_iommu: Remove need_vfio flag from sPAPRTCETable

2016-03-01 Thread Alexey Kardashevskiy
sPAPRTCETable has a need_vfio flag which is passed to kvmppc_create_spapr_tce() and controls whether to create a guest view table in KVM as this depends on the host kernel ability to accelerate H_PUT_TCE for VFIO devices. We would set this flag at the moment when sPAPRTCETable is created in spapr_t

[Qemu-devel] [PATCH qemu v13 05/16] spapr_iommu: Add root memory region

2016-03-01 Thread Alexey Kardashevskiy
We are going to have multiple DMA windows at different offsets on a PCI bus. For the sake of migration, we will have as many TCE table objects pre-created as many windows supported. So we need a way to map windows dynamically onto a PCI bus when migration of a table is completed but at this stage a

[Qemu-devel] [PATCH qemu v13 11/16] vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering)

2016-03-01 Thread Alexey Kardashevskiy
This makes use of the new "memory registering" feature. The idea is to provide the userspace ability to notify the host kernel about pages which are going to be used for DMA. Having this information, the host kernel can pin them all once per user process, do locked pages accounting (once) and not s

[Qemu-devel] [PATCH qemu v13 16/16] spapr_pci/spapr_pci_vfio: Support Dynamic DMA Windows (DDW)

2016-03-01 Thread Alexey Kardashevskiy
This adds support for Dynamic DMA Windows (DDW) option defined by the SPAPR specification which allows to have additional DMA window(s) This implements DDW for emulated and VFIO devices. As all TCE root regions are mapped at 0 and 64bit long (and actual tables are child regions), this replaces mem

[Qemu-devel] [PATCH qemu v13 08/16] memory: Add reporting of supported page sizes

2016-03-01 Thread Alexey Kardashevskiy
Every IOMMU has some granularity which MemoryRegionIOMMUOps::translate uses when translating, however this information is not available outside the translate context for various checks. This adds a get_page_sizes callback to MemoryRegionIOMMUOps and a wrapper for it so IOMMU users (such as VFIO) c

Re: [Qemu-devel] [RFC PATCH v0 2/6] spapr: CPU core device

2016-03-01 Thread Igor Mammedov
On Tue, 1 Mar 2016 13:47:27 +0530 Bharata B Rao wrote: > On Mon, Feb 29, 2016 at 04:15:25PM +0100, Igor Mammedov wrote: > > On Mon, 29 Feb 2016 18:25:25 +0530 > > Bharata B Rao wrote: > > > > > On Mon, Feb 29, 2016 at 11:03:16AM +0100, Igor Mammedov wrote: > > > > On Mon, 29 Feb 2016 11:20:

Re: [Qemu-devel] [PATCH v3 5/8] nvdimm acpi: introduce patched dsm memory

2016-03-01 Thread Xiao Guangrong
On 03/01/2016 05:08 PM, Michael S. Tsirkin wrote: On Tue, Mar 01, 2016 at 04:53:23PM +0800, Xiao Guangrong wrote: On 02/29/2016 05:38 PM, Michael S. Tsirkin wrote: +/* Build NAME(, 0x) where 0x is encoded as a dword, + * and return the offset to 0x for runtime p

Re: [Qemu-devel] [RFC PATCH v0 5/6] qmp, spapr: Show hot-plugged/pluggable CPU slots in the Machine

2016-03-01 Thread Bharata B Rao
On Mon, Feb 29, 2016 at 11:46:42AM +0100, Igor Mammedov wrote: > On Thu, 25 Feb 2016 21:52:41 +0530 > Bharata B Rao wrote: > > > Implement query cpu-slots that provides information about hot-plugged > > as well as hot-pluggable CPU slots that the machine supports. > > > > TODO: As Eric suggested

Re: [Qemu-devel] [RFC PATCH v0 2/6] spapr: CPU core device

2016-03-01 Thread Igor Mammedov
On Tue, 1 Mar 2016 12:21:27 +1100 David Gibson wrote: > On Mon, Feb 29, 2016 at 04:15:25PM +0100, Igor Mammedov wrote: > > On Mon, 29 Feb 2016 18:25:25 +0530 > > Bharata B Rao wrote: > > > On Mon, Feb 29, 2016 at 11:03:16AM +0100, Igor Mammedov wrote: > > > > On Mon, 29 Feb 2016 11:20:19 +05

Re: [Qemu-devel] [PATCH] pc-dimm: fix error handling in pc_dimm_check_memdev_is_busy()

2016-03-01 Thread Igor Mammedov
On Mon, 29 Feb 2016 19:33:15 +0100 Markus Armbruster wrote: > Igor Mammedov writes: > > > if host_memory_backend_get_memory() were to return error and > > Start sentences with a capital letter, please. > > > NULL MemoryRegion, pc_dimm_check_memdev_is_busy() would crash > > dereferrencing nu

[Qemu-devel] [PATCH v2] pc-dimm: fix error handling in pc_dimm_check_memdev_is_busy()

2016-03-01 Thread Igor Mammedov
If host_memory_backend_get_memory() were to return error and NULL MemoryRegion, pc_dimm_check_memdev_is_busy() would crash dereferencing NULL pointer in memory_region_is_mapped(). But if error is set and non NULL MemoryRegion is returned then error_setg() will fail with "error already set" assertio

Re: [Qemu-devel] [PATCH v2 6/7] exec: Factor out section_covers_addr

2016-03-01 Thread Paolo Bonzini
On 01/03/2016 07:18, Fam Zheng wrote: > +/* Memory topology clips a memory region to 2^64, size.hi >= 0 means the > + * section must cover any addr. */ Small improvement: /* Memory topology clips a memory region to [0, 2^64); size.hi > 0 means * the section must cover the entir

Re: [Qemu-devel] [PATCH v2 0/7] memory: Clean up MemoryRegion.ram_addr and optimize address_space_translate

2016-03-01 Thread Paolo Bonzini
On 01/03/2016 07:18, Fam Zheng wrote: > v2: In the optimization patch, factor out section_covers_addr() and use it. > [Paolo, Peter] > Check "ram_block == NULL" in patch 3. [Gonglei] > Add Gonglei's rev-by in patches 1, 2, 4 and 5. > > The first four patches drop ram_addr from Memory

[Qemu-devel] [PATCH] pxb: cleanup

2016-03-01 Thread Cao jin
Signed-off-by: Cao jin --- BTW: this doc seems little out of date, since pxb has already support Q35. docs/pci_expander_bridge.txt| 6 +++--- hw/pci-bridge/pci_expander_bridge.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/pci_expander_bridge.txt b/docs/pci

Re: [Qemu-devel] [RFC PATCH v0 2/6] spapr: CPU core device

2016-03-01 Thread Bharata B Rao
On Tue, Mar 01, 2016 at 10:16:18AM +0100, Igor Mammedov wrote: > On Tue, 1 Mar 2016 13:47:27 +0530 > Bharata B Rao wrote: > > > On Mon, Feb 29, 2016 at 04:15:25PM +0100, Igor Mammedov wrote: > > > On Mon, 29 Feb 2016 18:25:25 +0530 > > > Bharata B Rao wrote: > > > > > > > On Mon, Feb 29, 2016

Re: [Qemu-devel] [PATCH] pxb: cleanup

2016-03-01 Thread Marcel Apfelbaum
On 03/01/2016 11:45 AM, Cao jin wrote: Signed-off-by: Cao jin --- BTW: this doc seems little out of date, since pxb has already support Q35. Hi, Yes, you are right, but we use a different device, pxb-pcie. I will send a doc update about it, thanks for reminding me, Marcel docs/pci_expan

Re: [Qemu-devel] [PATCH v2 03/15] docker: Add images

2016-03-01 Thread Alex Bennée
Fam Zheng writes: > On Mon, 02/29 17:18, Alex Bennée wrote: >> >> Fam Zheng writes: >> >> > Signed-off-by: Fam Zheng >> >> I think we need to include the dtc libs in here unless we need to ship >> all submodules in the tree as well. > > OK, will take a look. > >> >> Is there a way to get a pla

Re: [Qemu-devel] [PATCH v2 02/15] Makefile: Rules for docker testing

2016-03-01 Thread Alex Bennée
Fam Zheng writes: > On Mon, 02/29 17:08, Alex Bennée wrote: >> >> Fam Zheng writes: >> >> > This adds a group of make targets to run docker tests, all are available >> > in source tree without running ./configure. >> > >> > The usage is shown by "make docker". >> > >> > Besides the fixed ones,

Re: [Qemu-devel] [PATCH] Use special code for sigsetjmp only in cpu-exec.c

2016-03-01 Thread Peter Maydell
On 1 March 2016 at 05:07, Stefan Weil wrote: > The rest of the code can use longjmp with stack unwinding. > > Signed-off-by: Stefan Weil > --- > > This is a bug fix needed for 64 bit Windows. > > QEMU for Windows currently gets the wrong definition for > sigsetjmp. It uses stack unwinding for lon

Re: [Qemu-devel] [PATCH v2 00/16] qapi: Allow blockdev-add for NBD

2016-03-01 Thread Daniel P. Berrange
On Tue, Mar 01, 2016 at 12:37:14AM +0100, Max Reitz wrote: > On 01.03.2016 00:24, Eric Blake wrote: > > On 02/29/2016 04:19 PM, Max Reitz wrote: > >> Turns out NBD is not so simple to do if you do it right. Anyway, this > >> series adds blockdev-add support for NBD clients. > >> > >> Patches 1 and

Re: [Qemu-devel] [RFC PATCH v0 0/6] Core based CPU hotplug for PowerPC sPAPR

2016-03-01 Thread Bharata B Rao
On Thu, Feb 25, 2016 at 09:52:36PM +0530, Bharata B Rao wrote: > Hi, > > This is an attempt to implement CPU hotplug for PowerPC sPAPR based on > the approach suggested by Andreas. While I say that, I should also explicitly > add that I have tried to follow Andreas' suggestions to the best of my >

Re: [Qemu-devel] [PATCH v2 00/16] qapi: Allow blockdev-add for NBD

2016-03-01 Thread Kevin Wolf
Am 01.03.2016 um 11:00 hat Daniel P. Berrange geschrieben: > On Tue, Mar 01, 2016 at 12:37:14AM +0100, Max Reitz wrote: > > On 01.03.2016 00:24, Eric Blake wrote: > > > On 02/29/2016 04:19 PM, Max Reitz wrote: > > >> Turns out NBD is not so simple to do if you do it right. Anyway, this > > >> serie

Re: [Qemu-devel] [PULL 00/12] Block patches

2016-03-01 Thread Peter Maydell
On 29 February 2016 at 20:08, Jeff Cody wrote: > The following changes since commit 071608b519adf62bc29c914343a21c5407ab1ac9: > > Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20160229-1' into > staging (2016-02-29 12:24:26 +) > > are available in the git repository at: > > >

Re: [Qemu-devel] [RFC PATCH v2 00/10] Add colo-proxy based on netfilter

2016-03-01 Thread Dr. David Alan Gilbert
* Li Zhijian (lizhij...@cn.fujitsu.com) wrote: > > > On 03/01/2016 04:04 AM, Dr. David Alan Gilbert wrote: > >* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote: > >>From: zhangchen > >> > >>Hi,all > >> > >>This patch add an colo-proxy object, COLO-Proxy is a part of COLO, > >>based on qemu netf

Re: [Qemu-devel] [RFC] QMP: add query-hotpluggable-cpus

2016-03-01 Thread Igor Mammedov
On Tue, 1 Mar 2016 12:19:21 +1100 David Gibson wrote: > On Mon, Feb 29, 2016 at 04:42:58PM +0100, Igor Mammedov wrote: > > On Thu, 25 Feb 2016 14:52:06 -0300 > > Eduardo Habkost wrote: > > > > > On Wed, Feb 24, 2016 at 03:42:18PM +0100, Igor Mammedov wrote: > > > > On Tue, 23 Feb 2016 18:26

Re: [Qemu-devel] [PATCH 02/38] qemu-doc: Fix ivshmem huge page example

2016-03-01 Thread Marc-André Lureau
On Mon, Feb 29, 2016 at 7:40 PM, Markus Armbruster wrote: > Option parameter "share" is missing. Without it, you get a *private* > mmap(), which defeats ivshmem's purpose pretty thoroughly ;) > > While there, switch to the conventional mountpoint of hugetlbfs > /dev/hugepages. > > Signed-off-by:

[Qemu-devel] [PATCH v4 0/9] NVDIMM ACPI: introduce the framework of QEMU emulated

2016-03-01 Thread Xiao Guangrong
This patchset is against commit 2212ef27b342b98b220fe9 (fw-cfg: support writeable blobs) on pci branch of Michael's git tree and can be found at: https://github.com/xiaogr/qemu.git nvdimm-acpi-v4 Changelog in v4: - drop the unnecessary assert() in aml_concatenate() based on Igor's suggesti

[Qemu-devel] [PATCH 1/9] acpi: add aml_create_field()

2016-03-01 Thread Xiao Guangrong
It will be used by nvdimm acpi Signed-off-by: Xiao Guangrong --- hw/acpi/aml-build.c | 14 ++ include/hw/acpi/aml-build.h | 2 ++ 2 files changed, 16 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 6675535..45b7f0a 100644 --- a/hw/acpi/aml-build.c

[Qemu-devel] [PATCH 4/9] nvdimm acpi: initialize the resource used by NVDIMM ACPI

2016-03-01 Thread Xiao Guangrong
32 bits IO port starting from 0x0a18 in guest is reserved for NVDIMM ACPI emulation. The table, NVDIMM_DSM_MEM_FILE, will be patched into NVDIMM ACPI binary code OSPM uses this port to tell QEMU the final address of the DSM memory and notify QEMU to emulate the DSM method Signed-off-by: Xiao Guan

[Qemu-devel] [PATCH 5/9] acpi: add build_append_named_dword, returning an offset in buffer

2016-03-01 Thread Xiao Guangrong
From: "Michael S. Tsirkin" This is a very limited form of support for runtime patching - similar in functionality to what we can do with ACPI_EXTRACT macros in python, but implemented in C. This is to allow ACPI code direct access to data tables - which is exactly what DataTableRegion is there f

[Qemu-devel] [PATCH 2/9] acpi: add aml_concatenate()

2016-03-01 Thread Xiao Guangrong
It will be used by nvdimm acpi Signed-off-by: Xiao Guangrong --- hw/acpi/aml-build.c | 7 +++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 8 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 45b7f0a..bb0cf52 100644 --- a/hw/acpi/aml-build.c +++ b/hw/a

[Qemu-devel] [PATCH 9/9] nvdimm acpi: add _CRS

2016-03-01 Thread Xiao Guangrong
As Igor suggested that we can report the BIOS patched operation region so that OSPM could see that particular range is in use and be able to notice conflicts if it happens some day Signed-off-by: Xiao Guangrong --- hw/acpi/nvdimm.c | 27 +++ 1 file changed, 27 insertions(

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

2016-03-01 Thread Xiao Guangrong
The dsm memory is used to save the input parameters and store the dsm result which is filled by QEMU. The address of dsm memory is decided by bios and patched into int32 object named "MEMA" Signed-off-by: Xiao Guangrong --- hw/acpi/nvdimm.c | 20 +--- 1 file changed, 17 insertio

Re: [Qemu-devel] [PATCH 1/2] hw/mips: add initial Cluster Power Controller support

2016-03-01 Thread Leon Alrae
On 26/02/16 16:49, Peter Maydell wrote: > On 26 February 2016 at 16:19, Leon Alrae wrote: >> Cluster Power Controller (CPC) is responsible for power management in >> multiprocessing system. It provides registers to control the power and the >> clock frequency of the individual elements in the syst

[Qemu-devel] [PATCH 7/9] nvdimm acpi: let qemu handle _DSM method

2016-03-01 Thread Xiao Guangrong
If dsm memory is successfully patched, we let qemu fully emulate the dsm method This patch saves _DSM input parameters into dsm memory, tell dsm memory address to QEMU, then fetch the result from the dsm memory Signed-off-by: Xiao Guangrong --- hw/acpi/nvdimm.c | 117 +++

[Qemu-devel] [PATCH 3/9] acpi: allow using object as offset for OperationRegion

2016-03-01 Thread Xiao Guangrong
Extend aml_operation_region() to use object as offset Reviewed-by: Igor Mammedov Signed-off-by: Xiao Guangrong --- hw/acpi/aml-build.c | 4 ++-- hw/i386/acpi-build.c| 31 --- include/hw/acpi/aml-build.h | 2 +- 3 files changed, 19 insertions(+), 18

[Qemu-devel] [PATCH 8/9] nvdimm acpi: emulate dsm method

2016-03-01 Thread Xiao Guangrong
Emulate dsm method after IO VM-exit Currently, we only introduce the framework and no function is actually supported Signed-off-by: Xiao Guangrong --- hw/acpi/aml-build.c | 2 +- hw/acpi/nvdimm.c| 44 include/hw/acpi/aml-build.h

Re: [Qemu-devel] [PATCH 03/38] event_notifier: Make event_notifier_init_fd() #ifdef CONFIG_EVENTFD

2016-03-01 Thread Marc-André Lureau
Hi On Mon, Feb 29, 2016 at 7:40 PM, Markus Armbruster wrote: > Event notifiers are designed for eventfd(2). They can fall back to > pipes, but according to Paolo, event_notifier_init_fd() really > requires the real thing, and should therefore be under #ifdef > CONFIG_EVENTFD. Do that. > > Its o

Re: [Qemu-devel] [PATCH 04/38] tests/libqos/pci-pc: Fix qpci_pc_iomap() to map BARs aligned

2016-03-01 Thread Marc-André Lureau
On Mon, Feb 29, 2016 at 7:40 PM, Markus Armbruster wrote: > qpci_pc_iomap() maps BARs one after the other, without padding. This > is wrong. PCI Local Bus Specification Revision 3.0, 6.2.5.1. Address > Maps: "all address spaces used are a power of two in size and are > naturally aligned". That'

Re: [Qemu-devel] [PATCH 05/38] ivshmem-test: Improve test case /ivshmem/single

2016-03-01 Thread Marc-André Lureau
On Mon, Feb 29, 2016 at 7:40 PM, Markus Armbruster wrote: > Test state of registers after reset. > > Test reading Interrupt Status clears it. > > Test (invalid) read of Doorbell. > > Add more comments. > > Signed-off-by: Markus Armbruster Reviewed-by: Marc-André Lureau > --- > tests/ivshmem-

[Qemu-devel] [PATCH v3 1/5] replay: character devices

2016-03-01 Thread Pavel Dovgalyuk
This patch implements record and replay of character devices. It records chardevs communication in replay mode. Recorded information include data read from backend and counter of bytes written from frontend to backend to preserve frontend internal state. If character device was configured through t

[Qemu-devel] [PATCH v3 5/5] replay: introduce block devices record/replay

2016-03-01 Thread Pavel Dovgalyuk
This patch introduces block driver that implement recording and replaying of block devices' operations. All block completion operations are added to the queue. Queue is flushed at checkpoints and information about processed requests is recorded to the log. In replay phase the queue is matched with

[Qemu-devel] [PATCH v3 0/5] Deterministic replay extensions

2016-03-01 Thread Pavel Dovgalyuk
This set of patches is related to the reverse execution and deterministic replay of qemu execution. It includes recording and replaying of serial devices and block devices operations. With these patches one can record and deterministically replay behavior of the system with connected disk drives

[Qemu-devel] [PATCH v3 2/5] icount: remove obsolete warp call

2016-03-01 Thread Pavel Dovgalyuk
qemu_clock_warp call in qemu_tcg_wait_io_event function is not needed anymore, because it is called in every iteration of main_loop_wait. Signed-off-by: Pavel Dovgalyuk --- cpus.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/cpus.c b/cpus.c index 898426c..01c9809 10

[Qemu-devel] [PATCH v3 3/5] replay: introduce new checkpoint for icount warp

2016-03-01 Thread Pavel Dovgalyuk
qemu_clock_warp function is called to update virtual clock when CPU is sleeping. This function includes replay checkpoint to make execution deterministic in icount mode. Record/replay module flushes async event queue at checkpoints. Some of the events (e.g., block devices operations) include intera

Re: [Qemu-devel] [PATCH v9 0/7] trace: Show vCPU info in guest code events

2016-03-01 Thread Lluís Vilanova
Lluís Vilanova writes: > NOTE: This series should complete the framework for guest code tracing. From > here on, other series can concurrently add actual events and improve the > guest code tracing features and performance (e.g., control tracing > independently on each vCPU). >

Re: [Qemu-devel] [PATCH 06/38] ivshmem-test: Clean up wait for devices to become operational

2016-03-01 Thread Marc-André Lureau
On Mon, Feb 29, 2016 at 7:40 PM, Markus Armbruster wrote: > test_ivshmem_server() waits until the first byte in BAR 2 contains the > 0x42 we put into shared memory. Works because the byte reads zero > until the device maps the shared memory gotten from the server. > > Check the IVPosition registe

[Qemu-devel] [PATCH v3 4/5] block: add flush callback

2016-03-01 Thread Pavel Dovgalyuk
This patch adds callback for flush request. This callback is responsible for flushing whole block devices stack. bdrv_flush function does not proceed to underlying devices. It should be performed by this callback function, if needed. Signed-off-by: Pavel Dovgalyuk --- block/io.c|

Re: [Qemu-devel] [PATCH 07/38] ivshmem-test: Improve test cases /ivshmem/server-*

2016-03-01 Thread Marc-André Lureau
On Mon, Feb 29, 2016 at 7:40 PM, Markus Armbruster wrote: > Document missing test: behavior with MSI-X present but not enabled. > > For MSI-X, we test and clear the interrupt pending bit before testing > the interrupt. For INTx, we only clear. Change to test and clear for > consistency. > > Test

[Qemu-devel] [PATCH] balloon: fix segfault and harden the stats queue

2016-03-01 Thread Ladi Prosek
The segfault here is triggered by the driver notifying the stats queue twice after adding a buffer to it. This effectively resets stats_vq_elem back to NULL and QEMU crashes on the next stats timer tick in balloon_stats_poll_cb. This is a regression introduced in 51b19ebe4320f3dc, although admitte

Re: [Qemu-devel] [PULL 0/2] vga: minor cirrus/qxl bugfixes.

2016-03-01 Thread Peter Maydell
motes/kraxel/tags/pull-usb-20160229-1' into > staging (2016-02-29 12:24:26 +) > > are available in the git repository at: > > > git://git.kraxel.org/qemu tags/pull-vga-20160301-1 > > for you to fetch changes up to 05fa1c742fd6f66978b989ded0dd981ef11c4a0c: > >

Re: [Qemu-devel] [PATCH] log: Redirect stderr to logfile if deamonized

2016-03-01 Thread Gerd Hoffmann
On Do, 2016-02-18 at 13:38 +0200, Dimitris Aragiorgis wrote: > In case of daemonize, use the logfile passed with the -D option in > order to redirect stderr to it instead of /dev/null. > > Also remove some unused code in log.h. Patch breaks interaction with libvirt. libvirt hangs on startup, whi

Re: [Qemu-devel] [PATCH 08/38] ivshmem: Rewrite specification document

2016-03-01 Thread Marc-André Lureau
On Mon, Feb 29, 2016 at 7:40 PM, Markus Armbruster wrote: > This started as an attempt to update ivshmem_device_spec.txt for > clarity, accuracy and completeness while working on its code, and > quickly became a full rewrite. Since the diff would be useless > anyway, I'm using the opportunity to

Re: [Qemu-devel] [PATCH 03/38] event_notifier: Make event_notifier_init_fd() #ifdef CONFIG_EVENTFD

2016-03-01 Thread Paolo Bonzini
On 29/02/2016 19:40, Markus Armbruster wrote: > Event notifiers are designed for eventfd(2). They can fall back to > pipes, but according to Paolo, event_notifier_init_fd() really > requires the real thing, and should therefore be under #ifdef > CONFIG_EVENTFD. Do that. > > Its only user is iv

Re: [Qemu-devel] [PATCH 01/38] exec: Fix memory allocation when memory path names new file

2016-03-01 Thread Paolo Bonzini
On 29/02/2016 19:40, Markus Armbruster wrote: > -if (!stat(path, &st) && S_ISDIR(st.st_mode)) { > +ret = stat(path, &st); > +if (!ret && S_ISDIR(st.st_mode)) { > +/* path names a directory -> create a temporary file there */ > /* Make name safe to use with mkstemp by

Re: [Qemu-devel] [PATCH 02/38] qemu-doc: Fix ivshmem huge page example

2016-03-01 Thread Paolo Bonzini
On 29/02/2016 19:40, Markus Armbruster wrote: > Option parameter "share" is missing. Without it, you get a *private* > mmap(), which defeats ivshmem's purpose pretty thoroughly ;) > > While there, switch to the conventional mountpoint of hugetlbfs > /dev/hugepages. > > Signed-off-by: Markus Ar

Re: [Qemu-devel] [Qemu-discuss] golang on linux-user

2016-03-01 Thread Peter Maydell
On 1 March 2016 at 09:38, Hunter Laux wrote: > I was having trouble running golang on linux-user with an aarch64 target. > > It turns out that snappy is written in Go. When I tried the xenial aarch64 > preinstall image in qemu, Snappy was broken. > > For some reason, it calls sigaction on all the

Re: [Qemu-devel] [PATCH 29/38] ivshmem: Implement shm=... with a memory backend

2016-03-01 Thread Paolo Bonzini
On 29/02/2016 19:40, Markus Armbruster wrote: > ivshmem has its very own code to create and map shared memory. > Replace that with an implicitly created memory backend. Reduces the > number of ways we create BAR 2 from three to two. > > Signed-off-by: Markus Armbruster Very appreciated, but d

Re: [Qemu-devel] [PATCH 30/38] ivshmem: Simplify memory regions for BAR 2 (shared memory)

2016-03-01 Thread Paolo Bonzini
On 29/02/2016 19:40, Markus Armbruster wrote: > ivshmem_realize() puts the shared memory region in a container region. > Used to be necessary to permit delayed mapping of the shared memory. > Now we don't do that anymore, the container is redundant. Drop it. Can you explain why we don't do that

Re: [Qemu-devel] [PATCH 30/38] ivshmem: Simplify memory regions for BAR 2 (shared memory)

2016-03-01 Thread Paolo Bonzini
On 29/02/2016 19:40, Markus Armbruster wrote: > -memory_region_init_ram_ptr(&s->ivshmem, OBJECT(s), > +s->ivshmem_bar2 = g_new(MemoryRegion, 1); > +memory_region_init_ram_ptr(s->ivshmem_bar2, OBJECT(s), > "ivshmem.bar2", s->ivshmem_size, ptr); > -qe

Re: [Qemu-devel] [PATCH] log: Redirect stderr to logfile if deamonized

2016-03-01 Thread Daniel P. Berrange
On Tue, Mar 01, 2016 at 12:15:21PM +0100, Gerd Hoffmann wrote: > On Do, 2016-02-18 at 13:38 +0200, Dimitris Aragiorgis wrote: > > In case of daemonize, use the logfile passed with the -D option in > > order to redirect stderr to it instead of /dev/null. > > > > Also remove some unused code in log.

[Qemu-devel] [PATCH] log: use strtok_r

2016-03-01 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- include/sysemu/os-win32.h | 1 + util/log.c| 30 -- util/oslib-win32.c| 35 +++ 3 files changed, 44 insertions(+), 22 deletions(-) diff --git a/include/sysemu/os-win32.h b/includ

Re: [Qemu-devel] [PATCH] log: Redirect stderr to logfile if deamonized

2016-03-01 Thread Paolo Bonzini
On 01/03/2016 12:15, Gerd Hoffmann wrote: > On Do, 2016-02-18 at 13:38 +0200, Dimitris Aragiorgis wrote: >> In case of daemonize, use the logfile passed with the -D option in >> order to redirect stderr to it instead of /dev/null. >> >> Also remove some unused code in log.h. > > Patch breaks int

[Qemu-devel] [PATCH] log: do not log if QEMU is daemonized but without -D

2016-03-01 Thread Paolo Bonzini
Commit 96c33a4 ("log: Redirect stderr to logfile if deamonized", 2016-02-22) wanted to move stderr of a daemonized QEMU to the file specified with -D. However, if -D was not passed, the patch had the side effect of not redirecting stderr to /dev/null. This happened because qemu_logfile was set to

Re: [Qemu-devel] [PATCH] log: Redirect stderr to logfile if deamonized

2016-03-01 Thread Paolo Bonzini
On 01/03/2016 12:47, Daniel P. Berrange wrote: > means that QEMU will never close stderr anymore, so libvirt things > QEMU is still starting upforever. > > Given current libvirt behaviour / expectations, I think the only > option is to revert this change. Why not fix it instead? :) Paolo

Re: [Qemu-devel] [PATCH] log: use strtok_r

2016-03-01 Thread Paolo Bonzini
Sent by mistake, sorry. Paolo On 01/03/2016 12:48, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > include/sysemu/os-win32.h | 1 + > util/log.c| 30 -- > util/oslib-win32.c| 35 +++ > 3 files chang

[Qemu-devel] [PATCH] linux-user: arm: Handle (ignore) EXCP_YIELD in ARM cpu_loop()

2016-03-01 Thread Peter Maydell
The new-in-ARMv8 YIELD instruction has been implemented to throw an EXCP_YIELD back up to the QEMU main loop. In system emulation we use this to decide to schedule a different guest CPU in SMP configurations. In usermode emulation there is nothing to do, so just ignore it and resume the guest. Thi

[Qemu-devel] [PULL 03/14] s390x: fix debug statement in trigger_page_fault()

2016-03-01 Thread Cornelia Huck
From: David Hildenbrand When mmu_translate debugging output is enabled, code won't compile. Let's just use the same statement as in trigger_prot_fault(). Acked-by: Cornelia Huck Signed-off-by: David Hildenbrand Signed-off-by: Cornelia Huck --- target-s390x/mmu_helper.c | 2 +- 1 file changed

[Qemu-devel] [PULL 04/14] s390x: remove {kvm_}s390_virtio_irq()

2016-03-01 Thread Cornelia Huck
This interface was only used by the old virtio machine and therefore is not needed anymore. Reviewed-by: David Hildenbrand Reviewed-by: Halil Pasic Signed-off-by: Cornelia Huck --- target-s390x/cpu.h | 5 - target-s390x/interrupt.c | 11 --- target-s390x/kvm.c | 11 ---

[Qemu-devel] [PULL 02/14] s390x/kvm: sync fprs via kvm_run

2016-03-01 Thread Cornelia Huck
From: David Hildenbrand We can now also sync the fprs via kvm_run, avoiding one ioctl. Reviewed-by: Christian Borntraeger Signed-off-by: David Hildenbrand Signed-off-by: Cornelia Huck --- target-s390x/kvm.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/target-s390x/kvm.c b

[Qemu-devel] [PULL 11/14] s390x/pci: use PCI_MSIX_FLAGS on retrieving the MSIX entries

2016-03-01 Thread Cornelia Huck
From: Wei Yang Even PCI_CAP_FLAGS has the same value as PCI_MSIX_FLAGS, the later one is the more proper on retrieving MSIX entries. This patch uses PCI_MSIX_FLAGS to retrieve the MSIX entries. Signed-off-by: Wei Yang CC: Cornelia Huck CC: Christian Borntraeger Message-Id: <1455895091-7589-3

[Qemu-devel] [PULL 00/14] s390x patches

2016-03-01 Thread Cornelia Huck
The following changes since commit 9c74a853048f14fd9a3e2efa1e3a6935d00e7495: Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging (2016-03-01 09:54:53 +) are available in the git repository at: git://github.com/cohuck/qemu tags/s390x-20160301

[Qemu-devel] [PULL 05/14] watchdog/diag288: avoid race condition on expired watchdog

2016-03-01 Thread Cornelia Huck
From: Sascha Silbe When configured to inject an NMI, watchdog_perform_action() may cause the BQL to be temporarily relinquished (inject_nmi() → ... → s390_nmi() → s390_cpu_restart() → run_on_cpu()). When the guest issues diag 288 again in response to the NMI, the diag 288 operation will race agai

[Qemu-devel] [PULL 13/14] MAINTAINERS: Remove entry for hw/s390x/s390-virtio-bus.[ch]

2016-03-01 Thread Cornelia Huck
From: Thomas Huth The files have been deleted recently, no need to keep these entries anymore. Signed-off-by: Thomas Huth Message-Id: <1456397100-22746-1-git-send-email-th...@redhat.com> Signed-off-by: Cornelia Huck --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINER

[Qemu-devel] [PULL 08/14] s390x/pci: fix reg/dereg irq functions

2016-03-01 Thread Cornelia Huck
From: Yi Min Zhao Indicator refcounting interfaces are introduced. This patch fixes introducing unneeded indicator mappings and failure to release AISB mappings on deregistration. Signed-off-by: Yi Min Zhao Reviewed-by: Cornelia Huck Signed-off-by: Cornelia Huck --- hw/s390x/s390-pci-bus.h

  1   2   3   4   >