[Qemu-devel] [Bug 965327] Re: virtio-pci: can't reserve io 0x0000-0x001f

2014-08-22 Thread Anton Blanchard
Scubbing our ppc64 bugs. Thanks for the update Ken, I'll close this. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/965327 Title: virtio-pci: can't reserve io 0x-0x001f Status in QEMU: New B

Re: [Qemu-devel] [question] one vhost kthread servers mulitiple tx/rx queues which blong to one virtio-net device

2014-08-22 Thread Jason Wang
On 08/22/2014 10:30 AM, Zhang Haoyu wrote: > Hi, Krishna, Shirley > > How got get the latest patch of M:N Implementation of mulitiqueue, > > I am going to test the the combination of "M:N Implementation of mulitiqueue" > and "vhost: add polling mode". > > Thanks, > Zhang Haoyu > > Just FYI. You

Re: [Qemu-devel] issue: linking 64bit glib when building for cpu=i386

2014-08-22 Thread Markus Armbruster
John Snow writes: > I was running a series of tests on 32 and 64 bit hosts to test for > endianness and variable width issues when I noticed that I couldn't > properly perform a build of "make check" against a 32bit target from a > 64bit host: > > ../../configure --cpu=i386 && make -j4 && make ch

Re: [Qemu-devel] [PATCH V2] net: Fix dealing with packets when runstate changes

2014-08-22 Thread Jason Wang
On 08/21/2014 08:39 PM, zhanghailiang wrote: > For all NICs(except virtio-net) emulated by qemu, > Such as e1000, rtl8139, pcnet and ne2k_pci, > Qemu can still receive packets when VM is not running. > If this happened in *migration's* last PAUSE VM stage, > The new dirty RAM related to the packets

Re: [Qemu-devel] [Fwd: [PATCH v4 07/21] iscsi: Handle failure for potentially large allocations]

2014-08-22 Thread Peter Lieven
Am 22.08.2014 um 09:35 schrieb Peter Lieven: > Some code in the block layer makes potentially huge allocations. Failure > is not completely unexpected there, so avoid aborting qemu and handle > out-of-memory situations gracefully. > > This patch addresses the allocations in the iscsi block driver.

Re: [Qemu-devel] issue: linking 64bit glib when building for cpu=i386

2014-08-22 Thread Peter Maydell
On 22 August 2014 01:10, John Snow wrote: > I was running a series of tests on 32 and 64 bit hosts to test for > endianness and variable width issues when I noticed that I couldn't properly > perform a build of "make check" against a 32bit target from a 64bit host: > > ../../configure --cpu=i386 &

Re: [Qemu-devel] [PATCH] Fix pflash_cfi01 to restore flash command/array state after migration

2014-08-22 Thread Johny Mattsson
On 21 August 2014 19:48, Markus Armbruster wrote: > > Doesn't this break migration to/from unfixed versions? > It might. It is not something we've tried here, and I'm certainly not familiar enough with QEMU internals myself to say one way or another. We encountered this issue in what I can best d

[Qemu-devel] [PATCH] block/iscsi: fix memory corruption on iscsi resize

2014-08-22 Thread Peter Lieven
bs->total_sectors is not yet updated at this point. resulting in memory corruption if the volume has grown and data is written to the newly availble areas. CC: qemu-sta...@nongnu.org Signed-off-by: Peter Lieven --- block/iscsi.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --

Re: [Qemu-devel] [RFC PATCH 1/9] block: Add bdrv_aio_cancel_async

2014-08-22 Thread Paolo Bonzini
Il 22/08/2014 03:23, Fam Zheng ha scritto: > What about we save cb and opaque locally, and set acb->cb to a nop. When > cancel > is done we can call the original cb? That might work but needs some auditing. Right now the AIOCB is still valid when the callback is called, and this would be changed

[Qemu-devel] [PATCH] mirror: improve io performance

2014-08-22 Thread arei.gonglei
From: ChenLiang Mirror buffer is split into two pieces to improve io performance. In this way, one piece of buffer can read data from source disk when another one is writing data to dest disk. previous: io bandwidth: 41MB/s migration time: 8min15s now: io bandwidth: 67MB/s migration time: 5min3

Re: [Qemu-devel] issue: linking 64bit glib when building for cpu=i386

2014-08-22 Thread Daniel P. Berrange
On Thu, Aug 21, 2014 at 08:10:54PM -0400, John Snow wrote: > I was running a series of tests on 32 and 64 bit hosts to test for > endianness and variable width issues when I noticed that I couldn't properly > perform a build of "make check" against a 32bit target from a 64bit host: > > ../../confi

[Qemu-devel] [PATCH] linux-user: fix file descriptor leaks

2014-08-22 Thread zhanghailiang
Handle variable "fd_orig" going out of scope leaks the handle. Signed-off-by: zhanghailiang --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index a50229d..11a48c2 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c

[Qemu-devel] adding a parameter in qemu tap option

2014-08-22 Thread William Dauchy
Hi, I'm trying to understand how to add a parameter in tap option. I currently have a working config for a vm; i.e several interfaces using multiqueues. I had a try with: --- a/qapi-schema.json +++ b/qapi-schema.json  -2006,6 +2008,7 @@  ##  { 'type': 'NetdevTapOptions',    'data': { +    '*foo'

Re: [Qemu-devel] issue: linking 64bit glib when building for cpu=i386

2014-08-22 Thread Peter Maydell
On 22 August 2014 09:20, Daniel P. Berrange wrote: > Distros will install pkg-config .pc files for non-native architectures > in a different location normally. The supported / recommended way to > tell pkg-config to look in these alternative dirs is to set the env > variable PKG_CONFIG_LIBDIR. Th

Re: [Qemu-devel] issue: linking 64bit glib when building for cpu=i386

2014-08-22 Thread Daniel P. Berrange
On Fri, Aug 22, 2014 at 09:28:05AM +0100, Peter Maydell wrote: > On 22 August 2014 09:20, Daniel P. Berrange wrote: > > Distros will install pkg-config .pc files for non-native architectures > > in a different location normally. The supported / recommended way to > > tell pkg-config to look in the

Re: [Qemu-devel] [PATCH v3 1/2] hw/misc/arm_sp810: Create SP810 device

2014-08-22 Thread Aggeler Fabian
On 19 Aug 2014, at 16:03, Peter Maydell wrote: > On 17 August 2014 15:24, Fabian Aggeler wrote: >> This adds a device model for the PrimeXsys System Controller (SP810) >> which is present in the Versatile Express motherboards. It is >> so far read-only but allows to read the SCCTRL register. >>

Re: [Qemu-devel] [Fwd: [PATCH v4 07/21] iscsi: Handle failure for potentially large allocations]

2014-08-22 Thread Kevin Wolf
Am 22.08.2014 um 09:40 hat Peter Lieven geschrieben: > Am 22.08.2014 um 09:35 schrieb Peter Lieven: > > Some code in the block layer makes potentially huge allocations. Failure > > is not completely unexpected there, so avoid aborting qemu and handle > > out-of-memory situations gracefully. > > > >

Re: [Qemu-devel] [PATCH] linux-user: fix file descriptor leaks

2014-08-22 Thread Gonglei (Arei)
> -Original Message- > From: qemu-devel-bounces+arei.gonglei=huawei@nongnu.org > [mailto:qemu-devel-bounces+arei.gonglei=huawei@nongnu.org] On > Behalf Of zhanghailiang > Sent: Friday, August 22, 2014 4:24 PM > To: qemu-devel@nongnu.org > Cc: qemu-triv...@nongnu.org; riku.voi...@iki

Re: [Qemu-devel] issue: linking 64bit glib when building for cpu=i386

2014-08-22 Thread Peter Maydell
On 22 August 2014 09:34, Daniel P. Berrange wrote: > On Fri, Aug 22, 2014 at 09:28:05AM +0100, Peter Maydell wrote: >> Yes, but this should be done by the i686-w64-mingw32-pkg-config >> wrapper IMHO. (That's how I have my mingw setup configured, >> anyway.) > > Sure if your distro wants to rebuild

Re: [Qemu-devel] [Xen-devel] [PATCH v4] Hvmloader: Modify ACPI to only supply _EJ0 methods for PCIslots that support hotplug by runtime patching

2014-08-22 Thread Gonglei (Arei)
> From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] > Sent: Thursday, August 21, 2014 6:31 AM > To: Fabio Fantoni > Cc: Ross Philipson; Ian Campbell; Paul Durrant; ke...@koconnor.net; > Huangweidong (C); Hanweidong (Randy); m...@redhat.com; > qemu-devel@nongnu.org; xen-de...@lists.xen.org

Re: [Qemu-devel] [PATCH v3 1/2] hw/misc/arm_sp810: Create SP810 device

2014-08-22 Thread Peter Maydell
On 22 August 2014 09:38, Aggeler Fabian wrote: > > On 19 Aug 2014, at 16:03, Peter Maydell wrote: >> Which input signals in the hardware do these properties >> correspond to? I can't figure out what the mapping is. >> As far as I can tell from the documentation the bits >> in SCCTRL are just alw

Re: [Qemu-devel] [PATCH v2] scsi-generic: remove superfluous DPRINTF avoid to break compiling

2014-08-22 Thread Paolo Bonzini
Il 22/08/2014 04:01, arei.gong...@huawei.com ha scritto: > From: Gonglei > > variables lun and tag had been eliminated, break compiling > when enable debug switch. Meanwhile traces provide the same > information with this DPRINTF, so remove it. > > Signed-off-by: Gonglei > --- > v2: > - as Pa

Re: [Qemu-devel] [PATCH] block/iscsi: fix memory corruption on iscsi resize

2014-08-22 Thread Kevin Wolf
Am 22.08.2014 um 10:08 hat Peter Lieven geschrieben: > bs->total_sectors is not yet updated at this point. resulting > in memory corruption if the volume has grown and data is written > to the newly availble areas. > > CC: qemu-sta...@nongnu.org > Signed-off-by: Peter Lieven Thanks, applied to t

Re: [Qemu-devel] [Fwd: [PATCH v4 07/21] iscsi: Handle failure for potentially large allocations]

2014-08-22 Thread Peter Lieven
Am 22.08.2014 um 10:42 schrieb Kevin Wolf: > Am 22.08.2014 um 09:40 hat Peter Lieven geschrieben: >> Am 22.08.2014 um 09:35 schrieb Peter Lieven: >>> Some code in the block layer makes potentially huge allocations. Failure >>> is not completely unexpected there, so avoid aborting qemu and handle >>

Re: [Qemu-devel] [PATCH 0/2] raw-posix: fix O_DIRECT short reads

2014-08-22 Thread Kevin Wolf
Am 21.08.2014 um 14:44 hat Stefan Hajnoczi geschrieben: > This series fixes qemu-iotests ./check -nocache -vmdk 059. It also adds a > dedicated test case for O_DIRECT short reads. > > Stefan Hajnoczi (2): > raw-posix: fix O_DIRECT short reads > qemu-iotests: add test case 101 for short file I

Re: [Qemu-devel] issue: linking 64bit glib when building for cpu=i386

2014-08-22 Thread Stefan Hajnoczi
On Fri, Aug 22, 2014 at 9:20 AM, Daniel P. Berrange wrote: > On Thu, Aug 21, 2014 at 08:10:54PM -0400, John Snow wrote: >> I was running a series of tests on 32 and 64 bit hosts to test for >> endianness and variable width issues when I noticed that I couldn't properly >> perform a build of "make

Re: [Qemu-devel] [PATCH] blkdebug: Delete BH in bdrv_aio_cancel

2014-08-22 Thread Kevin Wolf
Am 22.08.2014 um 06:45 hat Fam Zheng geschrieben: > Otherwise error_callback_bh will access the already released acb. > > Signed-off-by: Fam Zheng Cc: qemu-sta...@nongnu.org Thanks, applied to the block branch. Kevin

Re: [Qemu-devel] [PATCH v2] vmdk: Use bdrv_nb_sectors() where sectors, not bytes are wanted

2014-08-22 Thread Kevin Wolf
Am 21.08.2014 um 14:36 hat Markus Armbruster geschrieben: > Instead of bdrv_getlength(). > > Commit 57322b7 did this all over block, but one more bdrv_getlength() > has crept in since. > > Signed-off-by: Markus Armbruster > --- > v2: Actually use bdrv_nb_sectors() as advertized [Fam] > Passes ./

Re: [Qemu-devel] [PATCH] Fix pflash_cfi01 to restore flash command/array state after migration

2014-08-22 Thread Markus Armbruster
Johny Mattsson writes: > On 21 August 2014 19:48, Markus Armbruster wrote: >> >> Doesn't this break migration to/from unfixed versions? >> > > It might. It is not something we've tried here, and I'm certainly not > familiar enough with QEMU internals myself to say one way or another. We > encoun

Re: [Qemu-devel] [PATCH V2] net: Fix dealing with packets when runstate changes

2014-08-22 Thread zhanghailiang
On 2014/8/22 15:40, Jason Wang wrote: On 08/21/2014 08:39 PM, zhanghailiang wrote: For all NICs(except virtio-net) emulated by qemu, Such as e1000, rtl8139, pcnet and ne2k_pci, Qemu can still receive packets when VM is not running. If this happened in *migration's* last PAUSE VM stage, The new d

[Qemu-devel] Don't return type from host in readdir on local 9p filesystem

2014-08-22 Thread Michael Tokarev
From: Bastian Blank When using mapped mode in 9pfs, readdir implementation should not return file type in d_type from the host readdir, instead, it should use the type stored in the extended attributes. Since d_type is optional and reading ext attrs for every readdir is expensive, it should be s

Re: [Qemu-devel] [PATCH] IDE: MMIO IDE device control should be little endian

2014-08-22 Thread Peter Maydell
You forgot to cc qemu-devel... On 22 August 2014 09:52, Valentin Manea wrote: > Set the IDE MMIO memory type to little endian. The ATA specs identify > words part of the control commands encoded as little endian. > While this has no impact on little endian systems, it's required for big > endian

[Qemu-devel] [PATCH 2/2] block/iscsi: handle failure on malloc of the allocationmap

2014-08-22 Thread Peter Lieven
Signed-off-by: Peter Lieven --- block/iscsi.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/block/iscsi.c b/block/iscsi.c index ed883c3..131357c 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -325,6 +325,19 @@ static bool is_request_lun_aligned(i

[Qemu-devel] [PATCH 1/2] util: introduce bitmap_try_new

2014-08-22 Thread Peter Lieven
regular bitmap_new simply aborts if the memory allocation fails. bitmap_try_new returns NULL on failure and allows for proper error handling. Signed-off-by: Peter Lieven --- include/qemu/bitmap.h |6 ++ 1 file changed, 6 insertions(+) diff --git a/include/qemu/bitmap.h b/include/qemu/bi

[Qemu-devel] [PATCH 0/2] introduce bitmap_try_new

2014-08-22 Thread Peter Lieven
this adds a new helper to handle errors when allocation a bitmap and also introduces its first user. Peter Lieven (2): util: introduce bitmap_try_new block/iscsi: handle failure on malloc of the allocationmap block/iscsi.c | 22 +++--- include/qemu/bitmap.h |6 +

Re: [Qemu-devel] [PATCH V2] net: Fix dealing with packets when runstate changes

2014-08-22 Thread Jason Wang
On 08/22/2014 05:21 PM, zhanghailiang wrote: > On 2014/8/22 15:40, Jason Wang wrote: >> On 08/21/2014 08:39 PM, zhanghailiang wrote: >>> For all NICs(except virtio-net) emulated by qemu, >>> Such as e1000, rtl8139, pcnet and ne2k_pci, >>> Qemu can still receive packets when VM is not running. >>> I

Re: [Qemu-devel] [RFC PATCH 1/9] block: Add bdrv_aio_cancel_async

2014-08-22 Thread Fam Zheng
On Fri, 08/22 10:14, Paolo Bonzini wrote: > Il 22/08/2014 03:23, Fam Zheng ha scritto: > > What about we save cb and opaque locally, and set acb->cb to a nop. When > > cancel > > is done we can call the original cb? > > That might work but needs some auditing. Right now the AIOCB is still > vali

Re: [Qemu-devel] [PATCH v3] Add ACPI tables for TPM

2014-08-22 Thread Michael S. Tsirkin
On Thu, Aug 21, 2014 at 08:14:48AM -0400, Stefan Berger wrote: > On 08/11/2014 04:33 PM, Stefan Berger wrote: > >From: Stefan Berger > > > >Add an SSDT ACPI table for the TPM device. > >Add a TCPA table for BIOS logging area when a TPM is being used. > > > >The latter follows this spec here: > > >

Re: [Qemu-devel] [PATCH] net: Forbid dealing with packets when VM is not running

2014-08-22 Thread Stefan Hajnoczi
On Wed, Aug 20, 2014 at 11:17:56AM +0800, Jason Wang wrote: > On 08/19/2014 08:29 PM, Stefan Hajnoczi wrote: > > On Mon, Aug 18, 2014 at 04:32:42PM +0800, zhanghailiang wrote: > >> On 2014/8/18 14:55, Jason Wang wrote: > >>> On 08/18/2014 12:46 PM, zhanghailiang wrote: > diff --git a/net/net.c

Re: [Qemu-devel] [RFC PATCH 1/9] block: Add bdrv_aio_cancel_async

2014-08-22 Thread Paolo Bonzini
Il 22/08/2014 11:37, Fam Zheng ha scritto: > Exactly. I'd rather not change the contract then. > > Alternatively, we may add a refcnt field to BlockDriverAioCB and grab one > before > calling .cancel, so the qemu_aio_release will not free it. Yes, and I don't exclude that sooner or later we'll h

Re: [Qemu-devel] [PATCH] image-fuzzer: Trivial readability and formatting improvements

2014-08-22 Thread Stefan Hajnoczi
On Tue, Aug 19, 2014 at 01:50:27PM +0400, M.Kustova wrote: > On Tue, Aug 19, 2014 at 1:38 PM, Stefan Hajnoczi wrote: > > On Tue, Aug 19, 2014 at 02:00:24AM +0400, Maria Kustova wrote: > >> diff --git a/tests/image-fuzzer/qcow2/fuzz.py > >> b/tests/image-fuzzer/qcow2/fuzz.py > >> index 6e272c6..c6

Re: [Qemu-devel] [PATCH] vmxnet3: Pad short frames to minimum size (60 bytes)

2014-08-22 Thread Ben Draper
Interestingly this does not appear to affect Windows guests on the same host/bridge as the ESXi guest, as Windows pads the frames before sending them out. However it does affect Linux guests on the same host/bridge from communicating with the ESXi guest itself and the guests ESXi hosts. -- *View

[Qemu-devel] [PATCH 10/15] hw/intc/arm_gic: Handle grouping for GICC_HPPIR

2014-08-22 Thread Fabian Aggeler
Grouping (GICv2) and Security Extensions change the behaviour of reads of the highest priority pending interrupt register (ICCHPIR/GICC_HPPIR). Signed-off-by: Fabian Aggeler --- hw/intc/arm_gic.c | 29 - hw/intc/gic_internal.h | 1 + 2 files changed, 29 insertio

[Qemu-devel] [PATCH 02/15] hw/arm/vexpress.c: Wire FIQ between CPU <> GIC

2014-08-22 Thread Fabian Aggeler
Connect FIQ output of the GIC CPU interfaces to the CPUs. Signed-off-by: Fabian Aggeler --- hw/arm/vexpress.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/arm/vexpress.c b/hw/arm/vexpress.c index a88732c..bafe8d2 100644 --- a/hw/arm/vexpress.c +++ b/hw/arm/vexpress.c @@ -229,6 +229,8

[Qemu-devel] [PATCH 15/15] hw/intc/arm_gic: add gic_update() for grouping

2014-08-22 Thread Fabian Aggeler
GICs with grouping (GICv2 or GICv1 with Security Extensions) have a different exception generation model which is more complicated than without interrupt grouping. We add a new function to handle this model. Signed-off-by: Fabian Aggeler --- hw/intc/arm_gic.c | 87 ++

[Qemu-devel] [PATCH 00/15] target-arm: Add GICv1/SecExt and GICv2/Grouping

2014-08-22 Thread Fabian Aggeler
Hi, this series adds GICv1 Security Extensions (secure/non-secure interrupts) and interrupt grouping of the GICv2 specification. The patches use the terminology introduced by GICv2 (Group0 instead of secure). The series first adds FIQ lines from the GIC to the CPUs and then adds the Security Ex

[Qemu-devel] [PATCH 08/15] hw/intc/arm_gic: Make ICCBPR/GICC_BPR banked

2014-08-22 Thread Fabian Aggeler
This register is banked in GICs with Security Extensions. Storing the non-secure copy of BPR in the abpr, which is an alias to the non-secure copy for secure access. ABPR itself is only accessible from secure state if the GIC implements Security Extensions. Signed-off-by: Fabian Aggeler --- hw/i

[Qemu-devel] [PATCH 09/15] hw/intc/arm_gic: Implement Non-secure view of RPR

2014-08-22 Thread Fabian Aggeler
For GICs with Security Extensions Non-secure reads have a restricted view on the current running priority. Signed-off-by: Fabian Aggeler --- hw/intc/arm_gic.c | 17 - hw/intc/gic_internal.h | 1 + 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/hw/intc/arm_gi

[Qemu-devel] [PATCH 04/15] hw/intc/arm_gic: Add ns_access() function

2014-08-22 Thread Fabian Aggeler
Security Extensions for GICv1 and GICv2 use register banking to provide transparent access to seperate Secure and Non-secure copies of GIC configuration registers. This function will later be replaced by code determining the security state of a read/write access to a register. Signed-off-by: Fabia

[Qemu-devel] [PATCH 05/15] hw/intc/arm_gic: Add Interrupt Group Registers

2014-08-22 Thread Fabian Aggeler
Interrupt Group Registers (previously called Interrupt Security Registers) as defined in GICv1 with Security Extensions or GICv2 allow to configure interrupts as Secure (Group0) or Non-secure (Group1). In GICv2 these registers are implemented independent of the existence of Security Extensions. Si

[Qemu-devel] [PATCH 06/15] hw/intc/arm_gic: Make ICDDCR/GICD_CTLR banked

2014-08-22 Thread Fabian Aggeler
ICDDCR/GICD_CTLR is banked in GICv1 implementations with Security Extensions or in GICv2 in independent from Security Extensions. This makes it possible to enable forwarding of interrupts from Distributor to the CPU interfaces for Group0 and Group1. EnableGroup0 (Bit [1]) in GICv1 is IMPDEF. Since

[Qemu-devel] [PATCH 12/15] hw/intc/arm_gic: Change behavior of IAR writes

2014-08-22 Thread Fabian Aggeler
Grouping (GICv2) and Security Extensions change the behavior of IAR reads. Acknowledging Group0 interrupts is only allowed from Secure state and acknowledging Group1 interrupts from Secure state is only allowed if AckCtl bit is set. Signed-off-by: Fabian Aggeler --- hw/intc/arm_gic.c | 24 ++

[Qemu-devel] [PATCH 11/15] hw/intc/arm_gic: Change behavior of EOIR writes

2014-08-22 Thread Fabian Aggeler
Grouping (GICv2) and Security Extensions change the behavior of EOIR writes. Completing Group0 interrupts is only allowed from Secure state and completing Group1 interrupts from Secure state is only allowed if AckCtl bit is set. Signed-off-by: Fabian Aggeler --- hw/intc/arm_gic.c | 15 ++

[Qemu-devel] [PATCH 13/15] hw/intc/arm_gic: Restrict priority view

2014-08-22 Thread Fabian Aggeler
GICs with Security Extensions restrict the non-secure view of the interrupt priority and priority mask registers. Signed-off-by: Fabian Aggeler --- hw/intc/arm_gic.c | 66 +- hw/intc/gic_internal.h | 3 +++ 2 files changed, 63 insertions(+),

[Qemu-devel] [PATCH 07/15] hw/intc/arm_gic: Make ICCICR/GICC_CTLR banked

2014-08-22 Thread Fabian Aggeler
ICCICR/GICC_CTLR is banked in GICv1 implementations with Security Extensions or in GICv2 in independent from Security Extensions. This makes it possible to enable forwarding of interrupts from the CPU interfaces to the connected processors for Group0 and Group1. We also allow to set additional bit

[Qemu-devel] [PATCH 01/15] hw/intc/arm_gic: Request FIQ sources

2014-08-22 Thread Fabian Aggeler
Preparing for FIQ lines from GIC to CPUs, which is needed for GIC Security Extensions. Signed-off-by: Fabian Aggeler --- hw/intc/arm_gic.c| 3 +++ include/hw/intc/arm_gic_common.h | 1 + 2 files changed, 4 insertions(+) diff --git a/hw/intc/arm_gic.c b/hw/intc/arm_gic.c index 15

[Qemu-devel] [PATCH 03/15] hw/intc/arm_gic: Add Security Extensions property

2014-08-22 Thread Fabian Aggeler
The existing implementation does not support Security Extensions mentioned in the GICv1 and GICv2 architecture specification. Security Extensions are not available on all GICs. This property makes it possible to enable Security Extensions. It also makes GICD_TYPER/ICDICTR.SecurityExtn RAO for GIC

[Qemu-devel] [PATCH 14/15] hw/intc/arm_gic: Break out gic_update() function

2014-08-22 Thread Fabian Aggeler
Prepare to split gic_update() in two functions, one for GICs with interrupt grouping and one without grouping (existing). Signed-off-by: Fabian Aggeler --- hw/intc/arm_gic.c | 11 --- hw/intc/gic_internal.h | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/hw/in

Re: [Qemu-devel] [RFC PATCH 1/9] block: Add bdrv_aio_cancel_async

2014-08-22 Thread Fam Zheng
On Fri, 08/22 12:10, Paolo Bonzini wrote: > Il 22/08/2014 11:37, Fam Zheng ha scritto: > > Exactly. I'd rather not change the contract then. > > > > Alternatively, we may add a refcnt field to BlockDriverAioCB and grab one > > before > > calling .cancel, so the qemu_aio_release will not free it.

[Qemu-devel] [PATCH v2 3/7] stubs: Add iohandler.c

2014-08-22 Thread Fam Zheng
Add stub function "qemu_set_fd_handler" which is used by util/event_notifier-posix.c. Signed-off-by: Fam Zheng --- stubs/Makefile.objs | 1 + stubs/iohandler.c | 20 2 files changed, 21 insertions(+) create mode 100644 stubs/iohandler.c diff --git a/stubs/Makefile.objs

[Qemu-devel] [PATCH v2 1/7] build-sys: Move fifo8.c to hw/misc

2014-08-22 Thread Fam Zheng
Since it has a dependency on vmstate and is only used by device emulation, moving out from util will make the archive more independent. Signed-off-by: Fam Zheng --- hw/misc/Makefile.objs | 1 + {util => hw/misc}/fifo8.c | 0 util/Makefile.objs| 1 - 3 files changed, 1 insertion(+), 1

[Qemu-devel] [PATCH v2 2/7] configure: Add -lutil to libs_qga if necessary

2014-08-22 Thread Fam Zheng
Since we will soon need to resolve openpty (3) when linking. Signed-off-by: Fam Zheng --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 283c71c..5c35ecf 100755 --- a/configure +++ b/configure @@ -3546,6 +3546,7 @@ fi if test "$darwin" != "yes" -a "$mi

[Qemu-devel] [PATCH v2 5/7] util: Move throttle.c out to top level

2014-08-22 Thread Fam Zheng
It is only used by block code and has dependency on timers, so move it out to allow util to be linked unconditionally. Signed-off-by: Fam Zheng --- Makefile.objs | 2 +- util/throttle.c => throttle.c | 0 util/Makefile.objs| 1 - 3 files changed, 1 insertion(+), 2 del

[Qemu-devel] [PATCH v2 4/7] stubs: Merge set-fd-handler.c into iohandler.c

2014-08-22 Thread Fam Zheng
Signed-off-by: Fam Zheng --- stubs/Makefile.objs| 1 - stubs/iohandler.c | 9 + stubs/set-fd-handler.c | 11 --- 3 files changed, 9 insertions(+), 12 deletions(-) delete mode 100644 stubs/set-fd-handler.c diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index d9

[Qemu-devel] [PATCH v2 6/7] build-sys: Change libqemuutil.a to qemuutil.o and link whole object

2014-08-22 Thread Fam Zheng
When an executable is being generated, unused functions from libqemuutil.a are not linked. This is the linker's convention on archives (libqemuutil.a). Now that we have dynamically loaded modules, which may reference function from libqemuutil.a but not linked in the executable, because the executa

Re: [Qemu-devel] [PATCH v12 4/6] qapi: introduce PreallocMode and a new PreallocMode full.

2014-08-22 Thread Kevin Wolf
Am 11.07.2014 um 08:10 hat Hu Tao geschrieben: > This patch prepares for the subsequent patches. > > Reviewed-by: Fam Zheng > Reviewed-by: Eric Blake > Reviewed-by: Max Reitz > Signed-off-by: Hu Tao Strictly speaking, qcow2 should error out if it is given full or falloc after this patch. Two

Re: [Qemu-devel] [PATCH v12 0/6] qcow2, raw: add preallocation=full and preallocation=falloc

2014-08-22 Thread Kevin Wolf
Am 28.07.2014 um 10:48 hat Hu Tao geschrieben: > ping... > > All the 6 patches have reviewed-by now. Looks mostly good to me, I have only a few minor comments that wouldn't block inclusion but could be addressed in follow-up patches. However, you have a dependency on a patch series from Max (you

[Qemu-devel] [PATCH v2 7/7] iscsi: Move iqn generation code to util

2014-08-22 Thread Fam Zheng
Function qmp_query_uuid, even with a version in libqemustub.a, is not linked in qemu-img, unless we use it in somewhere that is linked into qemu-img. For example util-obj-y - since iqn generation a general function, not iscsi specific, moving it to util makes some sense, and more importantly this w

Re: [Qemu-devel] [PATCH v12 1/6] block: round up file size to nearest sector

2014-08-22 Thread Kevin Wolf
Am 11.07.2014 um 08:09 hat Hu Tao geschrieben: > Reviewed-by: Max Reitz > Reviewed-by: Eric Blake > Signed-off-by: Hu Tao If we make this change, shouldn't we do it consistently across all image formats? With this patch we have some formats that round up, and many others that round down. Kevin

Re: [Qemu-devel] [PATCH v12 5/6] raw-posix: Add falloc and full preallocation option

2014-08-22 Thread Kevin Wolf
Am 11.07.2014 um 08:10 hat Hu Tao geschrieben: > This patch adds a new option preallocation for raw format, and implements > falloc and full preallocation. > > Reviewed-by: Max Reitz > Signed-off-by: Hu Tao raw-posix needs to error out if called with preallocation=metadata, it doesn't implement

Re: [Qemu-devel] [PATCH v12 6/6] qcow2: Add falloc and full preallocation option

2014-08-22 Thread Kevin Wolf
Am 11.07.2014 um 08:10 hat Hu Tao geschrieben: > This adds preallocation=falloc and preallocation=full mode to qcow2 > image creation. > > preallocation=full allocates disk space by writing zeros to disk to > ensure disk space in any cases. > > preallocation=falloc likes preallocation=full, but a

[Qemu-devel] [PATCH] linux-user: Convert blkpg to use a special subop handler

2014-08-22 Thread Alexander Graf
The blkpg ioctl can take different payloads depending on the opcode in its payload structure. Create a new special ioctl handler that can only deal with partition style ones for now. This patch fixes running parted for me. Signed-off-by: Alexander Graf --- linux-user/ioctls.h| 3 ++- l

[Qemu-devel] [PATCH] linux-user: Simplify boundary checks on g_posix_timers range

2014-08-22 Thread Alexander Graf
We check whether the passed in counter value is negative on all calls that involve g_posix_timers. However, we AND the value down to 16 bits right before the check, so they can never be negative. Simplify all the checks and remove the useless negativity check. Signed-off-by: Alexander Graf ---

[Qemu-devel] [Bug 1359930] Re: [ARMv5] Integrator/CP regression when reading FPSID instruction

2014-08-22 Thread Mark Cave-Ayland
Hi Jakub, Thanks for the test case. I've just done a git bisect using your test image above and it seems as if the offending commit is this: commit 2c7ffc414d8591018248b5487757e45f7bb6bd3c Author: Peter Maydell Date: Tue Apr 15 19:18:40 2014 +0100 target-arm: Fix VFP enables for AArch32

Re: [Qemu-devel] [PATCH v3 00/21] target-mips: add MIPS64R6 Instruction Set support

2014-08-22 Thread Leon Alrae
ping Anybody? There hasn't been any feedback on this patchset for almost 2 months now... On 12/08/2014 12:36, Leon Alrae wrote: > ping > > On 05/08/2014 10:26, Leon Alrae wrote: >> ping >> >> http://patchwork.ozlabs.org/patch/365066/ >> http://patchwork.ozlabs.org/patch/365042/ >> http://patchwo

[Qemu-devel] [PATCH] qemu-iotests: stop using /tmp directly

2014-08-22 Thread Peter Wu
Before this patch you could not run multiple tests concurrently as they might clobber each other test files. This patch solves that by using random temporary directory instead of `/tmp` (for writing output in the individual tests and valgrind logs). Furthermore, this patch stops removing everythin

Re: [Qemu-devel] [PATCH] linux-user: Simplify boundary checks on g_posix_timers range

2014-08-22 Thread Peter Maydell
On 22 August 2014 12:19, Alexander Graf wrote: > We check whether the passed in counter value is negative on all calls > that involve g_posix_timers. However, we AND the value down to 16 bits > right before the check, so they can never be negative. ...but why exactly are we doing that AND with 0x

Re: [Qemu-devel] [PATCH] linux-user: Simplify boundary checks on g_posix_timers range

2014-08-22 Thread Andreas Färber
Am 22.08.2014 13:33, schrieb Peter Maydell: > On 22 August 2014 12:19, Alexander Graf wrote: >> We check whether the passed in counter value is negative on all calls >> that involve g_posix_timers. However, we AND the value down to 16 bits >> right before the check, so they can never be negative.

[Qemu-devel] [Bug 1359930] Re: [ARMv5] Integrator/CP regression when reading FPSID register

2014-08-22 Thread Jakub Jermar
** Summary changed: - [ARMv5] Integrator/CP regression when reading FPSID instruction + [ARMv5] Integrator/CP regression when reading FPSID register -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1359

Re: [Qemu-devel] [PATCH] linux-user: Simplify boundary checks on g_posix_timers range

2014-08-22 Thread Alexander Graf
On 22.08.14 13:33, Peter Maydell wrote: > On 22 August 2014 12:19, Alexander Graf wrote: >> We check whether the passed in counter value is negative on all calls >> that involve g_posix_timers. However, we AND the value down to 16 bits >> right before the check, so they can never be negative. >

Re: [Qemu-devel] [Bug 1359930] Re: [ARMv5] Integrator/CP regression when reading FPSID instruction

2014-08-22 Thread Peter Maydell
On 22 August 2014 12:17, Mark Cave-Ayland wrote: > Hi Jakub, > > Thanks for the test case. I've just done a git bisect using your test > image above and it seems as if the offending commit is this: > > > commit 2c7ffc414d8591018248b5487757e45f7bb6bd3c > Author: Peter Maydell > Date: Tue Apr 15

Re: [Qemu-devel] [PATCH] linux-user: Simplify boundary checks on g_posix_timers range

2014-08-22 Thread Peter Maydell
On 22 August 2014 12:42, Alexander Graf wrote: > On 22.08.14 13:33, Peter Maydell wrote: >> On 22 August 2014 12:19, Alexander Graf wrote: >>> We check whether the passed in counter value is negative on all calls >>> that involve g_posix_timers. However, we AND the value down to 16 bits >>> right

Re: [Qemu-devel] [PATCH] linux-user: Simplify boundary checks on g_posix_timers range

2014-08-22 Thread Peter Maydell
On 22 August 2014 12:36, Andreas Färber wrote: > Am 22.08.2014 13:33, schrieb Peter Maydell: >> On 22 August 2014 12:19, Alexander Graf wrote: >>> We check whether the passed in counter value is negative on all calls >>> that involve g_posix_timers. However, we AND the value down to 16 bits >>> r

Re: [Qemu-devel] [PATCH] linux-user: Simplify boundary checks on g_posix_timers range

2014-08-22 Thread Alexander Graf
On 22.08.14 13:44, Peter Maydell wrote: > On 22 August 2014 12:42, Alexander Graf wrote: >> On 22.08.14 13:33, Peter Maydell wrote: >>> On 22 August 2014 12:19, Alexander Graf wrote: We check whether the passed in counter value is negative on all calls that involve g_posix_timers. How

Re: [Qemu-devel] [PATCH] linux-user: Simplify boundary checks on g_posix_timers range

2014-08-22 Thread Peter Maydell
On 22 August 2014 12:45, Alexander Graf wrote: > On 22.08.14 13:44, Peter Maydell wrote: >> On 22 August 2014 12:42, Alexander Graf wrote: >>> Or we drop the AND and and the <0 check and treat arg1 as unsigned ;). >> >> That probably just requires equally many changes to >> code that is currently

Re: [Qemu-devel] [PATCH] linux-user: Simplify boundary checks on g_posix_timers range

2014-08-22 Thread Alexander Graf
On 22.08.14 13:49, Peter Maydell wrote: > On 22 August 2014 12:45, Alexander Graf wrote: >> On 22.08.14 13:44, Peter Maydell wrote: >>> On 22 August 2014 12:42, Alexander Graf wrote: Or we drop the AND and and the <0 check and treat arg1 as unsigned ;). >>> >>> That probably just requires

[Qemu-devel] [PATCH v2] linux-user: Simplify timerid checks on g_posix_timers range

2014-08-22 Thread Alexander Graf
We check whether the passed in timer id is negative on all calls that involve g_posix_timers. However, these checks are bogus. First off we limit the timer_id to 16 bits which is not what Linux does. Then we check whether it's negative which it can't be because we masked it. We can safely remove

[Qemu-devel] glusterfs: do not log to stdout if daemonized

2014-08-22 Thread Dietmar Maurer
Else stdout is not closed correctly. Signed-off-by: Dietmar Maurer Index: new/block/gluster.c === --- new.orig/block/gluster.c2014-08-22 13:21:39.0 +0200 +++ new/block/gluster.c 2014-08-22 13:25:18.0 +0200 @@ -19

Re: [Qemu-devel] [PATCH v2] linux-user: Simplify timerid checks on g_posix_timers range

2014-08-22 Thread Peter Maydell
On 22 August 2014 12:56, Alexander Graf wrote: > We check whether the passed in timer id is negative on all calls > that involve g_posix_timers. > > However, these checks are bogus. First off we limit the timer_id to > 16 bits which is not what Linux does. Then we check whether it's negative > whi

Re: [Qemu-devel] [PATCH v2] linux-user: Simplify timerid checks on g_posix_timers range

2014-08-22 Thread Laurent Vivier
Hi, as in the kernel timer_t is an "int" (as said PMM), you should cast to "int" to remove garbage on 64bit hosts and check sign ... Regards, Laurent > Le 22 août 2014 à 13:56, Alexander Graf a écrit : > > > We check whether the passed in timer id is negative on all calls > that involve g_posix

Re: [Qemu-devel] [PATCH v2] linux-user: Simplify timerid checks on g_posix_timers range

2014-08-22 Thread Alexander Graf
On 22.08.14 14:07, Peter Maydell wrote: > On 22 August 2014 12:56, Alexander Graf wrote: >> We check whether the passed in timer id is negative on all calls >> that involve g_posix_timers. >> >> However, these checks are bogus. First off we limit the timer_id to >> 16 bits which is not what Linu

Re: [Qemu-devel] [PATCH v2 1/7] build-sys: Move fifo8.c to hw/misc

2014-08-22 Thread Peter Crosthwaite
On Fri, Aug 22, 2014 at 8:54 PM, Fam Zheng wrote: > Since it has a dependency on vmstate and is only used by device > emulation, moving out from util will make the archive more independent. > > Signed-off-by: Fam Zheng We probably also want to move the corresponding header at some stage too. bu

Re: [Qemu-devel] [PATCH v2] linux-user: Simplify timerid checks on g_posix_timers range

2014-08-22 Thread Peter Maydell
On 22 August 2014 13:12, Alexander Graf wrote: > In Linux, the timer id is a "key" into a hash table that the kernel > searches to find its timer. In QEMU it's an offset into an array. > > In both cases the syscall user receives it as a token from a create > function and should treat it as opaque.

Re: [Qemu-devel] [PATCH v12 0/6] qcow2, raw: add preallocation=full and preallocation=falloc

2014-08-22 Thread Richard W.M. Jones
On Mon, Jul 28, 2014 at 04:48:46PM +0800, Hu Tao wrote: > ping... > > All the 6 patches have reviewed-by now. > > On Fri, Jul 11, 2014 at 02:09:57PM +0800, Hu Tao wrote: > > This series adds two preallocation mode to qcow2 and raw: > > > > Option preallocation=full preallocates disk space for i

Re: [Qemu-devel] [PATCH v2] linux-user: Simplify timerid checks on g_posix_timers range

2014-08-22 Thread Alexander Graf
On 22.08.14 14:25, Peter Maydell wrote: > On 22 August 2014 13:12, Alexander Graf wrote: >> In Linux, the timer id is a "key" into a hash table that the kernel >> searches to find its timer. In QEMU it's an offset into an array. >> >> In both cases the syscall user receives it as a token from a

Re: [Qemu-devel] [PATCH v3 1/2] hw/misc/arm_sp810: Create SP810 device

2014-08-22 Thread Peter Crosthwaite
On Fri, Aug 22, 2014 at 6:53 PM, Peter Maydell wrote: > On 22 August 2014 09:38, Aggeler Fabian wrote: >> >> On 19 Aug 2014, at 16:03, Peter Maydell wrote: >>> Which input signals in the hardware do these properties >>> correspond to? I can't figure out what the mapping is. >>> As far as I can

Re: [Qemu-devel] [PATCH trivial] Fix debug print warning

2014-08-22 Thread Peter Crosthwaite
On Fri, Aug 22, 2014 at 1:38 PM, wrote: > From: Gonglei > > Steps: > > 1.enable qemu debug print, using simply scprit as below: > grep "//#define DEBUG" * -rl | xargs sed -i "s/\/\/#define DEBUG/#define > DEBUG/g" > 2. make -j > 3. get some warning: > hw/i2c/pm_smbus.c: In function 'smb_ioport

Re: [Qemu-devel] [PATCH v12 0/6] qcow2, raw: add preallocation=full and preallocation=falloc

2014-08-22 Thread Daniel P. Berrange
On Fri, Aug 22, 2014 at 01:25:56PM +0100, Richard W.M. Jones wrote: > > On Mon, Jul 28, 2014 at 04:48:46PM +0800, Hu Tao wrote: > > ping... > > > > All the 6 patches have reviewed-by now. > > > > On Fri, Jul 11, 2014 at 02:09:57PM +0800, Hu Tao wrote: > > > This series adds two preallocation mod

Re: [Qemu-devel] [V9fs-developer] QEMU dies on any attempt to load a Linux kernel module when using a 9P rootfs

2014-08-22 Thread Christopher Covington
Hi Dominique, On 08/22/2014 02:27 AM, Dominique Martinet wrote: > Hi, > > Christopher Covington wrote on Thu, Aug 21, 2014 at 03:50:58PM -0400: >> With my 3.15.0+ kernel, qemu-system-x86_64 substituted for qemu-kvm, and the >> path changed from your arguments I get: >> >> 9pnet_virtio: no channel

Re: [Qemu-devel] [PATCH v2 0/2] qemu-img: Allow source cache mode specification

2014-08-22 Thread Kevin Wolf
Am 22.07.2014 um 22:58 hat Max Reitz geschrieben: > Currently, qemu-img does not allow setting the cache mode for source > images. However, it reads images generally only once, therefore a full > writeback cache unnecessarily clutters the host cache. In case the user > finds this undesirable, there

  1   2   3   >