[Qemu-devel] [PATCH v3] qxl: allow to specify head limit to qxl driver

2015-07-05 Thread Frediano Ziglio
This patch allow to limit number of heads using qxl driver. By default qxl driver is not limited on any kind on head use so can decide to use as much heads. libvirt has this as a video card parameter (actually set to 1 but not used). This parameter will allow to limit setting a use can do (which c

Re: [Qemu-devel] [PATCH v10 11/21] i.MX: Split GPT emulator in a header file and a source file

2015-07-05 Thread Peter Crosthwaite
On Sun, Jul 5, 2015 at 5:05 PM, Jean-Christophe Dubois wrote: > Signed-off-by: Jean-Christophe Dubois > --- > > Changes since v1: > * not present on v1 > > Changes since v2: > * not present on v2 > > Changes since v3: > * not present on v3 > > Changes since v4: > * not present on

Re: [Qemu-devel] [PATCH v10 09/21] i.MX: Move Qdev EPIT construction helper as inline function.

2015-07-05 Thread Peter Crosthwaite
Also wondering what this prepares for, can it be deleted later from its current form? Regards, Peter On Sun, Jul 5, 2015 at 5:05 PM, Jean-Christophe Dubois wrote: > Signed-off-by: Jean-Christophe Dubois > --- > > Changes since v1: > * not present on v1 > > Changes since v2: > * not pres

Re: [Qemu-devel] [PATCH v10 08/21] i.MX: Split EPIT emulator in a header file and a source file

2015-07-05 Thread Peter Crosthwaite
On Sun, Jul 5, 2015 at 5:04 PM, Jean-Christophe Dubois wrote: > Signed-off-by: Jean-Christophe Dubois > --- > > Changes since v1: > * not present on v1 > > Changes since v2: > * not present on v2 > > Changes since v3: > * not present on v3 > > Changes since v4: > * not present on

Re: [Qemu-devel] [PATCH v10 02/21] i.MX: Move serial initialization to init/realize of DeviceClass.

2015-07-05 Thread Peter Crosthwaite
On Sun, Jul 5, 2015 at 5:04 PM, Jean-Christophe Dubois wrote: > Move constructor to DeviceClass methods > * imx_serial_init > * imx_serial_realize > > imx32_serial_properties is renamed to imx_serial_properties. > > The Qdev construction helper is moved to an include file as an > inline function

[Qemu-devel] [PATCH pic32 v3 15/16] pic32: add file pic32_ethernet.c

2015-07-05 Thread Serge Vakulenko
Implement pic32 Ethernet interface. Signed-off-by: Serge Vakulenko --- hw/mips/pic32_ethernet.c | 557 +++ 1 file changed, 557 insertions(+) create mode 100644 hw/mips/pic32_ethernet.c diff --git a/hw/mips/pic32_ethernet.c b/hw/mips/pic32_ethernet.c

[Qemu-devel] [PATCH pic32 v3 07/16] pic32: add file pic32mz.h

2015-07-05 Thread Serge Vakulenko
Hardware register definitions for PIC32MZ microcontroller family. Signed-off-by: Serge Vakulenko --- hw/mips/pic32mz.h | 2093 + 1 file changed, 2093 insertions(+) create mode 100644 hw/mips/pic32mz.h diff --git a/hw/mips/pic32mz.h b/hw/mips/

[Qemu-devel] [PATCH pic32 v3 08/16] pic32: add file mips_pic32mx7.c

2015-07-05 Thread Serge Vakulenko
This file implements a platform for Microchip PIC32MX7 microcontroller, with three boards (machine types) supported: pic32mx7-explorer16 PIC32MX7 microcontroller on Microchip Explorer-16 board pic32mx7-max32 PIC32MX7 microcontroller on chipKIT Max32 board pic32mx7-maximitePIC32MX7 micro

[Qemu-devel] [PATCH pic32 v3 11/16] pic32: add file pic32_uart.c

2015-07-05 Thread Serge Vakulenko
Implement pic32 UART peripheral interface. Signed-off-by: Serge Vakulenko --- hw/mips/pic32_uart.c | 228 +++ 1 file changed, 228 insertions(+) create mode 100644 hw/mips/pic32_uart.c diff --git a/hw/mips/pic32_uart.c b/hw/mips/pic32_uart.c new f

[Qemu-devel] [PATCH pic32 v3 16/16] pic32: update makefiles to cover pic32 support

2015-07-05 Thread Serge Vakulenko
Signed-off-by: Serge Vakulenko --- default-configs/mipsel-softmmu.mak | 1 + hw/mips/Makefile.objs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/default-configs/mipsel-softmmu.mak b/default-configs/mipsel-softmmu.mak index 0162ef0..b300eff 100644 --- a/default-configs/mips

[Qemu-devel] [PATCH pic32 v3 14/16] pic32: add file pic32_sdcard.c

2015-07-05 Thread Serge Vakulenko
Implement access to SD card, attached to pic32 SPI port. Signed-off-by: Serge Vakulenko --- hw/mips/pic32_sdcard.c | 428 + 1 file changed, 428 insertions(+) create mode 100644 hw/mips/pic32_sdcard.c diff --git a/hw/mips/pic32_sdcard.c b/hw/mips/

[Qemu-devel] [PATCH pic32 v3 13/16] pic32: add file pic32_spi.c

2015-07-05 Thread Serge Vakulenko
Implement pic32 SPI peripheral interface. Signed-off-by: Serge Vakulenko --- hw/mips/pic32_spi.c | 121 1 file changed, 121 insertions(+) create mode 100644 hw/mips/pic32_spi.c diff --git a/hw/mips/pic32_spi.c b/hw/mips/pic32_spi.c new file

[Qemu-devel] [PATCH pic32 v3 10/16] pic32: add file pic32_load_hex.c

2015-07-05 Thread Serge Vakulenko
It allows to load executables in Intel .hex or Motorola .srec format. Signed-off-by: Serge Vakulenko --- hw/mips/pic32_load_hex.c | 238 +++ 1 file changed, 238 insertions(+) create mode 100644 hw/mips/pic32_load_hex.c diff --git a/hw/mips/pic32_load

[Qemu-devel] [PATCH pic32 v3 09/16] pic32: add file mips_pic32mz.c

2015-07-05 Thread Serge Vakulenko
This file implements a platform for Microchip PIC32MZ microcontroller, with three boards (machine types) supported: pic32mz-explorer16 PIC32MZ microcontroller on Microchip Explorer-16 board pic32mz-meb2 PIC32MZ microcontroller on Microchip MEB-II board pic32mz-wifire PIC32MZ microc

[Qemu-devel] [PATCH pic32 v3 05/16] pic32: add file pic32_peripherals.h

2015-07-05 Thread Serge Vakulenko
Data definitions and function declarations for simulation of pic32 microcontrollers. Signed-off-by: Serge Vakulenko --- hw/mips/pic32_peripherals.h | 210 1 file changed, 210 insertions(+) create mode 100644 hw/mips/pic32_peripherals.h diff --git a/

[Qemu-devel] [PATCH pic32 v3 12/16] pic32: add file pic32_gpio.c

2015-07-05 Thread Serge Vakulenko
Implement pic32 generic input/output ports. Signed-off-by: Serge Vakulenko --- hw/mips/pic32_gpio.c | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 hw/mips/pic32_gpio.c diff --git a/hw/mips/pic32_gpio.c b/hw/mips/pic32_gpio.c new file mode 1006

[Qemu-devel] [PATCH pic32 v3 06/16] pic32: add file pic32mx.h

2015-07-05 Thread Serge Vakulenko
Hardware register definitions for PIC32MX microcontroller family. Signed-off-by: Serge Vakulenko --- hw/mips/pic32mx.h | 1290 + 1 file changed, 1290 insertions(+) create mode 100644 hw/mips/pic32mx.h diff --git a/hw/mips/pic32mx.h b/hw/mips/

[Qemu-devel] [PATCH pic32 v3 04/16] pic32: add two MIPS processor variants: M4K and microAptivUP

2015-07-05 Thread Serge Vakulenko
Needed for pic32mx (M4K) and pic32mz (microAptivUP) simulation. Signed-off-by: Serge Vakulenko --- target-mips/translate_init.c | 46 1 file changed, 46 insertions(+) diff --git a/target-mips/translate_init.c b/target-mips/translate_init.c index ddfa

[Qemu-devel] [PATCH pic32 v3 00/16] add support for pic32 microcontrollers

2015-07-05 Thread Serge Vakulenko
Please find below a set of patches, which allow to simulate Microchip PIC32 microcontrollers on QEMU. For examples of real PIC32 applications running on QEMU, see page: https://github.com/sergev/qemu/wiki (1) Make the CPU clock frequency configurable per platform. Currently the clock rate for

[Qemu-devel] [PATCH pic32 v3 02/16] pic32: use LCG algorithm for generated random index of TLBWR instruction

2015-07-05 Thread Serge Vakulenko
The LFSR algorithm, used for generating random TLB indexes for TLBWR instruction, was inclined to produce a degenerate sequence in some cases. For example, for 16-entry TLB size and Wired=1, it gives: 15, 6, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2... When repla

[Qemu-devel] [PATCH pic32 v3 03/16] pic32: add support for external interrupt controller mode (EIC)

2015-07-05 Thread Serge Vakulenko
EIC is required for pic32 microcontroller. Signed-off-by: Serge Vakulenko --- hw/mips/cputimer.c | 17 +++-- hw/mips/mips_int.c | 8 +++- target-mips/cpu.h| 8 +++- target-mips/helper.c | 18 -- 4 files changed, 41 insertions(+), 10 deletions(-) dif

[Qemu-devel] [PATCH pic32 v3 01/16] pic32: make the CPU clock frequency configurable per platform

2015-07-05 Thread Serge Vakulenko
Currently the clock rate for all MIPS platforms is fixed at 100MHz. Need to make it 40MHz for pic32mx7. Signed-off-by: Serge Vakulenko --- hw/mips/cputimer.c| 15 +++ hw/mips/mips_fulong2e.c | 2 +- hw/mips/mips_jazz.c | 2 +- hw/mips/mips_malta.c | 4 ++-- hw

Re: [Qemu-devel] [PATCH v7 03/42] Init page sizes in qtest

2015-07-05 Thread Amit Shah
On (Tue) 16 Jun 2015 [11:26:16], Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > One of my patches used a loop that was based on host page size; > it dies in qtest since qtest hadn't bothered init'ing it. > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Amit Shah

Re: [Qemu-devel] [PATCH COLO-Frame v6 01/31] configure: Add parameter for configure to enable/disable COLO support

2015-07-05 Thread zhanghailiang
On 2015/7/4 1:51, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: configure --enable-colo/--disable-colo to switch COLO support on/off. COLO support is off by default. Signed-off-by: zhanghailiang Signed-off-by: Yang Hongyang Signed-off-by: Gonglei Signe

[Qemu-devel] [Bug 1435359] Re: Booting kernel 3.19.2 fails most of the time

2015-07-05 Thread Bart Van Assche
The following patch might fix this (I have not yet tested this patch myself): https://lkml.org/lkml/2015/7/5/217 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1435359 Title: Booting kernel 3.19.2

Re: [Qemu-devel] [PATCH pic32 v2 5/5] Two new machine platforms: pic32mz7 and pic32mz.

2015-07-05 Thread Serge Vakulenko
On Wed, Jul 1, 2015 at 10:56 PM, Antony Pavlov wrote: > On Tue, 30 Jun 2015 21:12:34 -0700 > Serge Vakulenko wrote: > >> Signed-off-by: Serge Vakulenko >> --- >> hw/mips/Makefile.objs |3 + >> hw/mips/mips_pic32mx7.c | 1652 + >> hw/mips/mips_pic32mz.c

[Qemu-devel] [PATCH] block: Initialize local_err in bdrv_append_temp_snapshot

2015-07-05 Thread Fam Zheng
Cc: qemu-sta...@nongnu.org Signed-off-by: Fam Zheng --- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block.c b/block.c index 7e130cc..42eb8e3 100644 --- a/block.c +++ b/block.c @@ -1271,7 +1271,7 @@ int bdrv_append_temp_snapshot(BlockDriverState *bs, int flags, Err

Re: [Qemu-devel] [PATCH pic32 v2 5/5] Two new machine platforms: pic32mz7 and pic32mz.

2015-07-05 Thread Serge Vakulenko
On Wed, Jul 1, 2015 at 6:41 AM, Aurelien Jarno wrote: > On 2015-06-30 21:12, Serge Vakulenko wrote: >> Signed-off-by: Serge Vakulenko >> --- >> hw/mips/Makefile.objs |3 + >> hw/mips/mips_pic32mx7.c | 1652 + >> hw/mips/mips_pic32mz.c | 2840 >> +++

Re: [Qemu-devel] [PATCH pic32 v2 4/5] Two new processor variants: M4K and microAptivP.

2015-07-05 Thread Serge Vakulenko
On Fri, Jul 3, 2015 at 3:04 PM, Maciej W. Rozycki wrote: > On Wed, 1 Jul 2015, Aurelien Jarno wrote: > >> > diff --git a/target-mips/translate_init.c b/target-mips/translate_init.c >> > index ddfaff8..430a547 100644 >> > --- a/target-mips/translate_init.c >> > +++ b/target-mips/translate_init.c >>

Re: [Qemu-devel] [PATCH pic32 v2 4/5] Two new processor variants: M4K and microAptivP.

2015-07-05 Thread Serge Vakulenko
On Wed, Jul 1, 2015 at 6:37 AM, Aurelien Jarno wrote: > On 2015-06-30 21:12, Serge Vakulenko wrote: >> Signed-off-by: Serge Vakulenko >> --- >> target-mips/cpu.h| 2 ++ >> target-mips/translate_init.c | 46 >> >> 2 files changed, 48 inse

Re: [Qemu-devel] [PATCH] block: update bdrv_drain_all()/bdrv_drain() comments

2015-07-05 Thread Fam Zheng
On Thu, 07/02 17:24, Stefan Hajnoczi wrote: > The doc comments for bdrv_drain_all() and bdrv_drain() are outdated: > > * The bdrv_drain() comment is a poor man's bdrv_lock()/bdrv_unlock() >which Fam Zheng is currently developing. Unfortunately this warning >was never really enough becaus

Re: [Qemu-devel] [PATCH] virtio-net: Drop net_virtio_info.can_receive

2015-07-05 Thread Jason Wang
On 07/02/2015 08:46 PM, Stefan Hajnoczi wrote: > On Tue, Jun 30, 2015 at 04:35:24PM +0800, Jason Wang wrote: >> On 06/30/2015 11:06 AM, Fam Zheng wrote: >>> virtio_net_receive still does the check by calling >>> virtio_net_can_receive, if the device or driver is not ready, the packet >>> is dropp

Re: [Qemu-devel] [PATCH pic32 v2 3/5] Added support for external interrupt controller (EIC) mode.

2015-07-05 Thread Serge Vakulenko
On Sun, Jul 5, 2015 at 8:05 PM, Serge Vakulenko wrote: > On Wed, Jul 1, 2015 at 4:07 AM, Aurelien Jarno wrote: >> On 2015-06-30 21:12, Serge Vakulenko wrote: >>> diff --git a/target-mips/cpu.h b/target-mips/cpu.h >>> index c476166..ab830ee 100644 >>> --- a/target-mips/cpu.h >>> +++ b/target-mips/

[Qemu-devel] [PATCH] blockjob: Don't sleep too short

2015-07-05 Thread Fam Zheng
block_job_sleep_ns is called by block job coroutines to yield the execution to VCPU threads and monitor etc. It is pointless to sleep for 0 or a few nanoseconds, because that equals to a "yield + enter" with no intermission in between (the timer fires immediately in the same iteration of event loop

Re: [Qemu-devel] [PATCH pic32 v2 3/5] Added support for external interrupt controller (EIC) mode.

2015-07-05 Thread Serge Vakulenko
On Wed, Jul 1, 2015 at 4:07 AM, Aurelien Jarno wrote: > On 2015-06-30 21:12, Serge Vakulenko wrote: >> Signed-off-by: Serge Vakulenko >> --- >> hw/mips/cputimer.c | 17 +++-- >> hw/mips/mips_int.c | 12 ++-- >> target-mips/cpu.h| 9 - >> target-mips/helper.c

Re: [Qemu-devel] [PATCH] blockjob: add block_job_release function

2015-07-05 Thread Ting Wang
Ping? Regards, Ting On 2015-6-26 17:37, Ting Wang wrote: > There is job resource leak in function mirror_start_job, > although bdrv_create_dirty_bitmap is unlikely failed. > Add block_job_release for each release when needed. > > Signed-off-by: Ting Wang > --- > block/mirror.c | 2 +

Re: [Qemu-devel] [PATCH v5] hmp: add info iothreads command

2015-07-05 Thread Ting Wang
On 2015-7-3 20:43, Markus Armbruster wrote: > Copying the HMP maintainer Luiz. You can feed your patch to > scripts/get_maintainer to find people to cc yourself. OK, thanks. Ting > > Ting Wang writes: > >> Make "info iothreads" available on the HMP monitor. >> >> For example, the results are as

[Qemu-devel] [PATCH qemu v10 12/14] vfio: Unregister IOMMU notifiers when container is destroyed

2015-07-05 Thread Alexey Kardashevskiy
On systems with guest visible IOMMU, adding a new memory region onto PCI bus calls vfio_listener_region_add() for every DMA window. This installs a notifier for IOMMU memory regions. The notifier is supposed to be removed by vfio_listener_region_del(), however in the case of mixed PHB (emulated + V

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

2015-07-05 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 v10 09/14] spapr_vfio_pci: Remove redundant spapr-pci-vfio-host-bridge

2015-07-05 Thread Alexey Kardashevskiy
sPAPRTCETable is handling 2 TCE tables already: 1) guest view of the TCE table - emulated devices use only this table; 2) hardware IOMMU table - VFIO PCI devices use it for actual work but it does not replace 1) and it is not visible to the guest. The initialization of this table is driven by vfi

[Qemu-devel] [PATCH qemu v10 10/14] spapr_pci: Enable vfio-pci hotplug

2015-07-05 Thread Alexey Kardashevskiy
sPAPR IOMMU is managing two copies of an TCE table: 1) a guest view of the table - this is what emulated devices use and this is where H_GET_TCE reads from; 2) a hardware TCE table - only present if there is at least one vfio-pci device on a PHB; it is updated via a memory listener on a PHB address

[Qemu-devel] [PATCH qemu v10 05/14] spapr_iommu: Introduce "enabled" state for TCE table

2015-07-05 Thread Alexey Kardashevskiy
Currently TCE tables are created once at start and their size never changes. 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 stub object. Only LIOBN is assi

[Qemu-devel] [PATCH qemu v10 01/14] linux-headers: Update to 4.2-rc1

2015-07-05 Thread Alexey Kardashevskiy
This updates linux-headers against master 4.2-rc1 (commit d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754). This is the result of ./scripts/update-linux-headers.sh work. Cc: Paolo Bonzini Cc: Michael S. Tsirkin Signed-off-by: Alexey Kardashevskiy --- This is for DDW support on sPAPR. --- include/sta

[Qemu-devel] [PATCH qemu v10 06/14] spapr_iommu: Remove vfio_accel flag from sPAPRTCETable

2015-07-05 Thread Alexey Kardashevskiy
sPAPRTCETable has a vfio_accel 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_

[Qemu-devel] [PATCH qemu v10 11/14] spapr_pci_vfio: Enable multiple groups per container

2015-07-05 Thread Alexey Kardashevskiy
This enables multiple IOMMU groups in one VFIO container which means that multiple devices from different groups can share the same IOMMU table (or tables if DDW). This removes a group id from vfio_container_ioctl(). The kernel support is required for this; if the host kernel does not have the sup

[Qemu-devel] [PATCH qemu v10 13/14] vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering)

2015-07-05 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 v10 03/14] spapr_pci: Convert finish_realize() to dma_capabilities_update()+dma_init_window()

2015-07-05 Thread Alexey Kardashevskiy
This reworks finish_realize() which used to finalize DMA setup with an assumption that it will not change later. New callbacks supports various window parameters such as page and windows sizes. The new callback return error code rather than Error**. This is a mechanical change so no change in beh

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

2015-07-05 Thread Alexey Kardashevskiy
(cut-n-paste from kernel patchset) 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 AP

[Qemu-devel] [PATCH qemu v10 04/14] spapr_iommu: Move table allocation to helpers

2015-07-05 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 v10 08/14] spapr_pci: Do complete reset of DMA config when resetting PHB

2015-07-05 Thread Alexey Kardashevskiy
On a system reset, DMA configuration has to reset too. At the moment it clears the table content. This is enough for the single table case but with DDW, we will also have to disable all DMA windows except the default one. Furthermore according to sPAPR, if the guest removed the default window and c

[Qemu-devel] [PATCH qemu v10 07/14] spapr_iommu: Add root memory region

2015-07-05 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 v10 02/14] vmstate: Define VARRAY with VMS_ALLOC

2015-07-05 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_

Re: [Qemu-devel] [PATCH v2 1/1] KVM s390 pci infrastructure modelling

2015-07-05 Thread Hong Bo Li
On 7/5/2015 2:25, Michael S. Tsirkin wrote: On Fri, Jul 03, 2015 at 07:09:59PM +0800, Hong Bo Li wrote: But I would like to note that pci device drivers require driver handshake before device goes away. IIUC s390 hotplug is immediate, which is a problem. Maybe doing the change will help make s

Re: [Qemu-devel] TAP network breaks after debugger break-in

2015-07-05 Thread Fam Zheng
On Sat, 07/04 10:47, Max Filippov wrote: > Hello, > > I'm using QEMU with TAP network and after the commit > 0a2df857a703 "Merge remote-tracking branch > 'remotes/stefanha/tags/net-pull-request' into staging" > I've noticed that activation of debugger connected to QEMU's > gdbstub during network I

[Qemu-devel] [PATCH v4] arm_mptimer: Respect IT bit state

2015-07-05 Thread Dmitry Osipenko
The timer should fire the interrupt only if the IT (interrupt enable) bit state of the control register is enabled. Signed-off-by: Dmitry Osipenko Reviewed-by: Peter Crosthwaite --- v2: Added missed IRQ status update on control register write as per Peter Crosthwaite comment. v3: No code c

Re: [Qemu-devel] [PATCH v3 2/2] arm_mptimer: Respect IT bit state

2015-07-05 Thread Dmitry Osipenko
v2: Added missed IRQ status update on control register write as per Peter Crosthwaite comment. Oh, no! Turned out, that is wrong. I wasn't testing that case properly on HW, V1 is correct. Quote from ARM doc "If the timer interrupt is enabled, Interrupt ID 29 is set as Pending in the Inter

Re: [Qemu-devel] [PATCH qemu v7 06/14] spapr_iommu: Introduce "enabled" state for TCE table

2015-07-05 Thread Alexey Kardashevskiy
On 07/04/2015 11:12 AM, Alexey Kardashevskiy wrote: On 05/27/2015 05:05 PM, Paolo Bonzini wrote: On 27/05/2015 01:55, Alexey Kardashevskiy wrote: One step back :) Whole dance is what here? There are: 1) del+set_size(0) 2) set_size(not zero)+add Then no need for begin/commit. :) I got a ne

Re: [Qemu-devel] [PATCH pic32 v2 0/5] Support for Microchip pic32mx7 and pic32mz microcontrollers

2015-07-05 Thread Serge Vakulenko
On Wed, Jul 1, 2015 at 10:31 PM, Antony Pavlov wrote: > On Tue, 30 Jun 2015 21:12:29 -0700 > Serge Vakulenko wrote: > >> Please find below a set of patches, which allow to simulate Microchip PIC32 >> microcontrollers on QEMU. For examples of real PIC32 applications running >> on QEMU, see page: h

[Qemu-devel] [PATCH v10 12/21] i.MX: Move Qdev GPT construction helper as inline function.

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not present on v3 Changes since v4: * not present on v4 Changes since v5: * not present on v5 Changes since v6: * not present on v

[Qemu-devel] [PATCH v10 14/21] i.MX: Add SOC support for i.MX31

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not present on v3 Changes since v4: * not present on v4 Changes since v5: * not present on v5 Changes since v6: * not present on v

Re: [Qemu-devel] [PATCH pic32 v2 2/5] Fixed random index generation for TLBWR instruction. It was not quite random and did not skip Wired entries.

2015-07-05 Thread Serge Vakulenko
On Fri, Jul 3, 2015 at 2:39 PM, Maciej W. Rozycki wrote: > On Wed, 1 Jul 2015, Aurelien Jarno wrote: > >> Secondly, I don't think calling random() is the correct thing to do. >> It's an expensive function that is not thread safe. Quoting the >> specification: >> >> "Within the required constrain

[Qemu-devel] [PATCH v10 13/21] i.MX: Fix Coding style for GPT emulator

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not present on v3 Changes since v4: * not present on v4 Changes since v5: * not present on v5 Changes since v6: * not present on v

[Qemu-devel] [PATCH v10 21/21] i.MX: Adding i2C devices to i.MX31 SOC

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not present on v3 Changes since v4: * not present on v4 Changes since v5: * not present on v5 Changes since v6: * not present on v

[Qemu-devel] [PATCH v10 18/21] i.MX: Add SOC support for i.MX25

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not present on v3 Changes since v4: * not present on v4 Changes since v5: * not present on v5 Changes since v6: * not present on v

Re: [Qemu-devel] [PATCH pic32 v2 2/5] Fixed random index generation for TLBWR instruction. It was not quite random and did not skip Wired entries.

2015-07-05 Thread Serge Vakulenko
On Thu, Jul 2, 2015 at 12:52 AM, Antony Pavlov wrote: > On Tue, 30 Jun 2015 21:12:31 -0700 > Serge Vakulenko wrote: > >> Signed-off-by: Serge Vakulenko >> --- >> hw/mips/cputimer.c | 18 +- >> 1 file changed, 5 insertions(+), 13 deletions(-) >> >> diff --git a/hw/mips/cputimer.c

[Qemu-devel] [PATCH v10 09/21] i.MX: Move Qdev EPIT construction helper as inline function.

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not present on v3 Changes since v4: * not present on v4 Changes since v5: * not present on v5 Changes since v6: * not present on v

[Qemu-devel] [PATCH v10 19/21] i.MX: Add the i.MX25 3DS PDK plateform

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * Added a ds1338 I2C device for qtest purpose. Changes since v2: * none Changes since v3: * Rework GPL header * use I2C constructor helper. Changes since v4: * use sysbus_create_simple() instead of I2C c

[Qemu-devel] [PATCH v10 20/21] i.MX: Add qtest support for I2C device emulator.

2015-07-05 Thread Jean-Christophe Dubois
This is using a ds1338 RTC chip on the I2C bus. This RTC chip is not present on the real 3DS PDK board. Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * not present on v1 Changes since v2: * use a common header file for I2C regs definition Changes since v3: * rework GP

[Qemu-devel] [PATCH v10 17/21] i.MX: Add FEC Ethernet Emulator

2015-07-05 Thread Jean-Christophe Dubois
This is based on mcf_fec.c FEC implementation for Coldfire * A generic PHY was added (borrowwed from LAN9118) * The buffer management is also modified as buffers are slightly different between Coldfire and i.MX Signed-off-by: Jean-Christophe Dubois Reviewed-by: Peter Crosthwaite --- Ch

[Qemu-devel] [PATCH v10 10/21] i.MX: Fix Coding style for EPIT emulator

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not present on v3 Changes since v4: * not present on v4 Changes since v5: * not present on v5 Changes since v6: * not present on v

[Qemu-devel] [PATCH v10 16/21] i.MX: Add I2C controller emulator

2015-07-05 Thread Jean-Christophe Dubois
The slave mode is not implemented. Signed-off-by: Jean-Christophe Dubois Reviewed-by: Peter Crosthwaite --- Changes since v1: * none Changes since v2: * use QOM cast * reworked debug printf * use CamelCase for state type * warn with qemu_log_mask(LOG_GUEST_ERROR) or qemu_lo

[Qemu-devel] [PATCH v10 15/21] i.MX: KZM now uses the standalone i.MX31 SOC support

2015-07-05 Thread Jean-Christophe Dubois
Tested by booting a minimal linux system on the emulated plateform Note: Qdev construction helper functions are removed with this patch. Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not pr

[Qemu-devel] [PATCH v10 07/21] i.MX: Fix Coding style for CCM emulator

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not present on v3 Changes since v4: * not present on v4 Changes since v5: * not present on v5 Changes since v6: * not present on v

[Qemu-devel] [PATCH v10 08/21] i.MX: Split EPIT emulator in a header file and a source file

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not present on v3 Changes since v4: * not present on v4 Changes since v5: * not present on v5 Changes since v6: * not present on v

[Qemu-devel] [PATCH v10 02/21] i.MX: Move serial initialization to init/realize of DeviceClass.

2015-07-05 Thread Jean-Christophe Dubois
Move constructor to DeviceClass methods * imx_serial_init * imx_serial_realize imx32_serial_properties is renamed to imx_serial_properties. The Qdev construction helper is moved to an include file as an inline function. This function is going to be removed soon. Signed-off-by: Jean-Christophe

[Qemu-devel] [PATCH v10 04/21] i.MX: Split AVIC emulator in a header file and a source file

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois Reviewed-by: Peter Crosthwaite --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not present on v3 Changes since v4: * not present on v4 Changes since v5: * not present on v5 Changes

[Qemu-devel] [PATCH v10 11/21] i.MX: Split GPT emulator in a header file and a source file

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not present on v3 Changes since v4: * not present on v4 Changes since v5: * not present on v5 Changes since v6: * not present on v

[Qemu-devel] [PATCH v10 06/21] i.MX: Split CCM emulator in a header file and a source file

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois Reviewed-by: Peter Crosthwaite --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not present on v3 Changes since v4: * not present on v4 Changes since v5: * not present on v5 Changes

[Qemu-devel] [PATCH v10 03/21] i.MX:Fix Coding style for UART emulator.

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not present on v3 Changes since v4: * not present on v4 Changes since v5: * not present on v5 Changes since v6: * not present on v

[Qemu-devel] [PATCH v10 05/21] i.MX: Fix Coding style for AVIC emulator.

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not present on v3 Changes since v4: * not present on v4 Changes since v5: * not present on v5 Changes since v6: * not present on v

[Qemu-devel] [PATCH v10 01/21] i.MX: Split UART emulator in a header file and a source file

2015-07-05 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois Reviewed-by: Peter Crosthwaite --- Changes since v1: * not present on v1 Changes since v2: * not present on v2 Changes since v3: * not present on v3 Changes since v4: * not present on v4 Changes since v5: * not present on v5 Changes

[Qemu-devel] [PATCH v10 00/21] i.MX: Add i.MX25 support through the 3DS evaluation board.

2015-07-05 Thread Jean-Christophe Dubois
This series of patches add the support for the i.MX25 processor through the Freescale 3DS evaluation board. For now a limited set of devices are supported. * GPT timers (from i.MX31) * EPIT timers (from i.MX31) * Serial ports (from i.MX31) * Ethernet FEC port * I2C controller

Re: [Qemu-devel] [PATCH pic32 v2 2/5] Fixed random index generation for TLBWR instruction. It was not quite random and did not skip Wired entries.

2015-07-05 Thread Serge Vakulenko
On Wed, Jul 1, 2015 at 3:11 AM, Aurelien Jarno wrote: > On 2015-06-30 21:12, Serge Vakulenko wrote: >> Signed-off-by: Serge Vakulenko >> --- >> hw/mips/cputimer.c | 18 +- >> 1 file changed, 5 insertions(+), 13 deletions(-) >> >> diff --git a/hw/mips/cputimer.c b/hw/mips/cputimer

Re: [Qemu-devel] [PATCH pic32 v2 1/5] Speed of MIPS CPU timer made configurable per platform.

2015-07-05 Thread Serge Vakulenko
On Wed, Jul 1, 2015 at 3:02 AM, Aurelien Jarno wrote: > On 2015-06-30 21:12, Serge Vakulenko wrote: >> @@ -153,5 +153,6 @@ void cpu_mips_clock_init (CPUMIPSState *env) >> */ >> if (!kvm_enabled()) { >> env->timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, &mips_timer_cb, env); >> +

[Qemu-devel] [PATCH v3 2/2] arm_mptimer: Respect IT bit state

2015-07-05 Thread Dmitry Osipenko
The timer should fire interrupt only if IT(interrupt enable) bit state of control register is enabled and the timer should update IRQ status on IT bit change as it would mask/unmask the interrupt line. Signed-off-by: Dmitry Osipenko Reviewed-by: Peter Crosthwaite --- v2: Added missed IRQ status

[Qemu-devel] [PATCH v3 0/2] arm_mptimer fixes

2015-07-05 Thread Dmitry Osipenko
Hello, this is V3 of arm_mptimer patch series. No code changes here, just grammar fixes for "shutdown and mode change" patch and general re-send, as V2 was screwed for patchtracker. Dmitry Osipenko (2): arm_mptimer: Fix timer shutdown and mode change arm_mptimer: Respect IT bit state hw/time

[Qemu-devel] [PATCH v2 1/2] arm_mptimer: Fix timer shutdown and mode change

2015-07-05 Thread Dmitry Osipenko
The running timer can't be stopped because timer control code just doesn't handle disabling the timer. Fix it by deleting the timer if the enable bit is cleared. The timer won't start periodic ticking if a ONE-SHOT -> PERIODIC mode change happens after a one-shot tick was completed. Fix it by re-s

[Qemu-devel] [Bug 1471583] Re: QCA988X Wifi Card Not PCI Passing Through

2015-07-05 Thread Alex Williamson
IOW, add a line like this below the line added by the above patch: DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x003c, quirk_no_bus_reset); Double check that vendor:device ID against 'lspci -nn', that's 168c:003c. -- You received this bug notification because you are a member of qemu- devel

[Qemu-devel] [Bug 1471583] Re: QCA988X Wifi Card Not PCI Passing Through

2015-07-05 Thread Alex Williamson
It probably needs a quirk like this to avoid bus resets: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/pci/quirks.c?id=c3e59ee4e76686b0c84ca8faa1011d10cd4ca1b8 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to

Re: [Qemu-devel] [PATCH 1/2] arm_mptimer: Fix timer shutdown and mode change

2015-07-05 Thread Dmitry Osipenko
06.07.2015 00:19, Peter Crosthwaite пишет: On Sun, Jul 5, 2015 at 8:39 AM, Dmitry Osipenko wrote: Timer, running in periodic mode, can't be stopped or coming one-shot tick won't be canceled because timer control code just doesn't handle timer disabling. Fix it by deleting the timer if enable bi

Re: [Qemu-devel] [RFC v1 0/2] ARM MPTimer fixes and refactoring

2015-07-05 Thread Dmitry Osipenko
06.07.2015 00:06, Peter Maydell пишет: On 5 July 2015 at 22:01, Peter Crosthwaite wrote: On Sun, Jul 5, 2015 at 1:58 PM, Peter Crosthwaite wrote: On Sun, Jul 5, 2015 at 1:47 PM, Dmitry Osipenko wrote: Hi Peter, thanks a lot! Generally, I don't have any trouble with currently missed function

Re: [Qemu-devel] [PATCH 1/2] arm_mptimer: Fix timer shutdown and mode change

2015-07-05 Thread Peter Crosthwaite
On Sun, Jul 5, 2015 at 8:39 AM, Dmitry Osipenko wrote: > Timer, running in periodic mode, can't be stopped or coming one-shot > tick won't be canceled because timer control code just doesn't handle > timer disabling. Fix it by deleting the timer if enable bit isn't set. > You don't need to itemize

Re: [Qemu-devel] [RFC v1 0/2] ARM MPTimer fixes and refactoring

2015-07-05 Thread Peter Crosthwaite
On Sun, Jul 5, 2015 at 2:06 PM, Peter Maydell wrote: > On 5 July 2015 at 22:01, Peter Crosthwaite > wrote: >> On Sun, Jul 5, 2015 at 1:58 PM, Peter Crosthwaite >> wrote: >>> On Sun, Jul 5, 2015 at 1:47 PM, Dmitry Osipenko wrote: Hi Peter, thanks a lot! Generally, I don't have any trouble

[Qemu-devel] [PATCH] cpu_defs: Simplify CPUTLB padding logic

2015-07-05 Thread Peter Crosthwaite
There was a complicated subtractive arithmetic for determining the padding on the CPUTLBEntry structure. Simplify this with a union. Signed-off-by: Peter Crosthwaite --- include/exec/cpu-defs.h | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/include/

[Qemu-devel] [Bug 1471583] [NEW] QCA988X Wifi Card Not PCI Passing Through

2015-07-05 Thread bill
Public bug reported: CPU: Intel(R) Xeon(R) CPU E3-1265L v3 @ 2.50GHz KVM: qemu-kvm-1.5.3-86.el7_1.2.x86_64 Kernel: 4.1.1-1.el7.elrepo.x86_64, and kernel-3.10.0-229.7.2.el7.x86_64 Host & Guest: CentOS 7.1 Using virt-manager-1.1.0-12.el7.noarch to create, configure, and start guest I am trying t

Re: [Qemu-devel] [RFC v1 0/2] ARM MPTimer fixes and refactoring

2015-07-05 Thread Peter Maydell
On 5 July 2015 at 22:01, Peter Crosthwaite wrote: > On Sun, Jul 5, 2015 at 1:58 PM, Peter Crosthwaite > wrote: >> On Sun, Jul 5, 2015 at 1:47 PM, Dmitry Osipenko wrote: >>> Hi Peter, thanks a lot! Generally, I don't have any trouble with currently >>> missed functionality, just noticed it while

Re: [Qemu-devel] [PULL 00/35] Ide patches

2015-07-05 Thread Peter Maydell
On 4 July 2015 at 07:06, John Snow wrote: > The following changes since commit 35360642d043c2a5366e8a04a10e5545e7353bd5: > > Merge remote-tracking branch 'remotes/kraxel/tags/pull-input-20150703-1' > into staging (2015-07-03 12:05:31 +0100) > > are available in the git repository at: > > http

Re: [Qemu-devel] [RFC v1 0/2] ARM MPTimer fixes and refactoring

2015-07-05 Thread Peter Crosthwaite
On Sun, Jul 5, 2015 at 1:58 PM, Peter Crosthwaite wrote: > On Sun, Jul 5, 2015 at 1:47 PM, Dmitry Osipenko wrote: >> 05.07.2015 23:26, Peter Crosthwaite пишет: >> >>> Hi Dmitry, >>> >>> Based on my comment earlier, this is what I came up with RE consolidation >>> of >>> those arm_mptimer code pat

Re: [Qemu-devel] [RFC v1 0/2] ARM MPTimer fixes and refactoring

2015-07-05 Thread Peter Crosthwaite
On Sun, Jul 5, 2015 at 1:47 PM, Dmitry Osipenko wrote: > 05.07.2015 23:26, Peter Crosthwaite пишет: > >> Hi Dmitry, >> >> Based on my comment earlier, this is what I came up with RE consolidation >> of >> those arm_mptimer code paths that were giving you problems. I have not >> done the >> interru

[Qemu-devel] [PATCH] disas: Defeature print_target_address

2015-07-05 Thread Peter Crosthwaite
It does not work in multi-arch as it requires the CPU specific TARGET_VIRT_ADDR_SPACE_BITS global define. Just use the generic version that does no masking. Targets should be responsible for passing in a sane virtual address. Signed-off-by: Peter Crosthwaite --- Depends on "Unify and QOMify (targ

  1   2   >