Re: [Qemu-devel] [PATCH v2 5/7] qmp: add set-bootindex command

2014-08-03 Thread Gonglei (Arei)
Hi, > Subject: Re: [Qemu-devel] [PATCH v2 5/7] qmp: add set-bootindex command > > On Fri, Jul 25, 2014 at 02:52:50PM +0800, arei.gong...@huawei.com wrote: > > From: Gonglei > > > > Adds "set-bootindex id=xx,bootindex=xx,suffix=xx" QMP command. > > > > Example QMP command: > > -> { "execute": "se

Re: [Qemu-devel] [PATCH v4 4/8] bootindex: delete bootindex when device is removed

2014-08-03 Thread Gonglei (Arei)
Best regards, -Gonglei > -Original Message- > From: Eduardo Habkost [mailto:ehabk...@redhat.com] > Sent: Friday, August 01, 2014 10:46 PM > To: Gonglei (Arei) > Cc: qemu-devel@nongnu.org; chenliang (T); Huangweidong (C); > m...@redhat.com; a...@ozlabs.ru; hu...@cn.fujitsu.com; > arm.

Re: [Qemu-devel] [questions] about KVM asaMicrosoft-compatiblehypervisor

2014-08-03 Thread Zhang Haoyu
>Hi Zhang, > >No I haven't seen such problem >Which kernel version are you running? Host kernel: RHEL7-RC1(linux-3.10.0). >Does it include the latest lazy eli changes? > lazy eli or lazy eoi? How to confirm whether lazy eli has been included? >Btw, hv_spinlocks=0xfff is a pretty huge value. >

Re: [Qemu-devel] [PATCH v2 4/7] bootindex: delete bootindex when device is removed

2014-08-03 Thread Gonglei (Arei)
Hi, > > > > > > > +del_boot_device_path(dev); > > > > > > You can call this from device_finalize() instead of placing it into each > > > individual device. > > > > > Maybe put this call in device_finalize is not a good idea. > > I have three reasons: > > > > 1. the device's some memory have be

Re: [Qemu-devel] [Xen-devel] [v3][PATCH 0/5] xen: introduce new machine for IGD passthrough

2014-08-03 Thread Chen, Tiejun
On 2014/7/31 20:09, Tiejun Chen wrote: v3: * Drop patch #4 * Add one patch #1 from Michael * Rebase v2: * Fix some coding style * New patch to separate i440fx_init * Just add prefix with XEN_IGD_PASSTHROUGH/xen_igd_passthrough * Based on patch #2 to regenerate * Unify prefix with XEN_IGD_PASST

[Qemu-devel] [PATCH qom v2 2/2] memory: remove object_property_add_child_array

2014-08-03 Thread Peter Crosthwaite
Obsoleted by automatic object_property_add arrayification. Reviewed-by: Paolo Bonzini Signed-off-by: Peter Crosthwaite --- memory.c | 30 +- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/memory.c b/memory.c index 64d7176..5272bf9 100644 --- a/memory

Re: [Qemu-devel] [questions] about KVM as aMicrosoft-compatiblehypervisor

2014-08-03 Thread Vadim Rozenfeld
Hi Zhang, No I haven't seen such problem Which kernel version are you running? Does it include the latest lazy eli changes? Btw, hv_spinlocks=0xfff is a pretty huge value. Best regards, Vadim. - Original Message - From: "Zhang Haoyu" To: "Vadim Rozenfeld" Cc: "Jidong Xiao" , "qe

[Qemu-devel] [PATCH qom v2 1/2] qom: object_property_add: Add automatic arrayification

2014-08-03 Thread Peter Crosthwaite
If "[*]" is given as the last part of a QOM property name, treat that as an array property. The added property is given the first available name, replacing the * with a decimal number counting from 0. First add with name "foo[*]" will be "foo[0]". Second "foo[1]" and so on. Signed-off-by: Peter C

Re: [Qemu-devel] [PATCH v3 16/16] target-arm: Add support for VIRQ and VFIQ

2014-08-03 Thread Edgar E. Iglesias
On Fri, Aug 01, 2014 at 03:32:59PM +0100, Peter Maydell wrote: > On 17 June 2014 09:45, Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > > > Acked-by: Greg Bellows > > Signed-off-by: Edgar E. Iglesias > > --- > > cpu-exec.c | 12 > > target-arm/cpu.c

Re: [Qemu-devel] fpu/softfloat.c licensing

2014-08-03 Thread Alexey Kardashevskiy
On 06/03/2014 09:42 PM, Peter Maydell wrote: > On 3 June 2014 12:38, Alexey Kardashevskiy wrote: >> On 06/03/2014 07:45 PM, Peter Maydell wrote: >>> On 3 June 2014 04:52, Alexey Kardashevskiy wrote: Is there anything I can do to help with this? Chase someone down? :) >>> >>> Confirming that

[Qemu-devel] [Bug 1352130] [NEW] Feature Request: Add OpenGL/3D acceleration support

2014-08-03 Thread G4JC
Public bug reported: Hello, I would like to request that support for OpenGL and 3D acceleration be added to QEMU. I am sure it has been discussed before, but at the dawn of a new century there are a number of possible solutions and I haven't seen anything implemented into upstream. Options -

[Qemu-devel] [v2 3/3] hmp: fix MemdevList memory leak

2014-08-03 Thread Chen Fan
the memdev_list in hmp_info_memdev() is never freed. so we use existent method qapi_free_MemdevList() to free it. and also we can use qapi_free_MemdevList() to replace list loops to clean up the memdev list in error path. Signed-off-by: Chen Fan --- hmp.c | 2 ++ numa.c | 9 ++--- 2 files c

[Qemu-devel] [v2 0/3] Fix some memory leaks about query memdev

2014-08-03 Thread Chen Fan
when using valgrind to test the command "query memdev", I had found some memory leaks. the test result: ==13802== 4 bytes in 1 blocks are definitely lost in loss record 125 of 8,508 ==13802==at 0x4A08934: malloc (vg_replace_malloc.c:291) ==13802==by 0x4A08AA8: realloc (vg_replace_malloc.c:

[Qemu-devel] [v2 2/3] qom/object.c: fix string_output_get_string() memory leak

2014-08-03 Thread Chen Fan
string_output_get_string() uses g_string_free(str, false) to transfer the 'str' pointer to callers and never free it. Signed-off-by: Chen Fan --- hmp.c| 6 -- qom/object.c | 12 ++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/hmp.c b/hmp.c index 4d1838e.

[Qemu-devel] [v2 1/3] query-memdev: fix potential memory leaks

2014-08-03 Thread Chen Fan
Signed-off-by: Chen Fan Reviewed-by: Peter Crosthwaite --- numa.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/numa.c b/numa.c index 7bf7834..a2b4bca 100644 --- a/numa.c +++ b/numa.c @@ -318,10 +318,11 @@ void memory_region_allocate_system_memory(MemoryRegion *mr, Ob

Re: [Qemu-devel] [PATCH v3 15/16] target-arm: Add IRQ and FIQ routing to EL2 and 3

2014-08-03 Thread Edgar E. Iglesias
On Fri, Aug 01, 2014 at 03:27:44PM +0100, Peter Maydell wrote: > On 17 June 2014 09:45, Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > > --- a/target-arm/helper.c > > +++ b/target-arm/helper.c > > @@ -3312,6 +3312,19 @@ unsigned int arm_excp_target_el(CPUState *cs, > > unsigned int

Re: [Qemu-devel] [PATCH v3 13/16] target-arm: A64: Emulate the HVC insn

2014-08-03 Thread Edgar E. Iglesias
On Fri, Aug 01, 2014 at 03:21:08PM +0100, Peter Maydell wrote: > On 17 June 2014 09:45, Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > > > Signed-off-by: Edgar E. Iglesias > > --- > > target-arm/cpu.h | 1 + > > target-arm/helper-a64.c| 1 + > > target-arm/helper.c

Re: [Qemu-devel] [PATCH v3 12/16] target-arm: A64: Correct updates to FAR and ESR on exceptions

2014-08-03 Thread Edgar E. Iglesias
On Fri, Aug 01, 2014 at 02:56:29PM +0100, Peter Maydell wrote: > On 17 June 2014 09:45, Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > > > Not all exception types update both FAR and ESR. > > > > Reviewed-by: Alex Bennée > > Reviewed-by: Greg Bellows > > Signed-off-by: Edgar E. Igle

Re: [Qemu-devel] [PATCH v3 07/16] target-arm: Add HCR_EL2

2014-08-03 Thread Edgar E. Iglesias
On Mon, Aug 04, 2014 at 01:48:10PM +1000, Edgar E. Iglesias wrote: > On Fri, Aug 01, 2014 at 02:29:28PM +0100, Peter Maydell wrote: > > On 17 June 2014 09:45, Edgar E. Iglesias wrote: > > > From: "Edgar E. Iglesias" > > > > > > Signed-off-by: Edgar E. Iglesias > > > > > diff --git a/target-arm/

Re: [Qemu-devel] [PATCH v3 07/16] target-arm: Add HCR_EL2

2014-08-03 Thread Edgar E. Iglesias
On Fri, Aug 01, 2014 at 02:29:28PM +0100, Peter Maydell wrote: > On 17 June 2014 09:45, Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > > > Signed-off-by: Edgar E. Iglesias > > > diff --git a/target-arm/helper.c b/target-arm/helper.c > > index 7170086..b04fb5d 100644 > > --- a/target

Re: [Qemu-devel] [PATCH 2/3] qom/object.c: fix string_output_get_string() memory leak

2014-08-03 Thread chen.fan.f...@cn.fujitsu.com
On Fri, 2014-08-01 at 23:26 +1000, Peter Crosthwaite wrote: > On Fri, Aug 1, 2014 at 8:22 PM, Chen Fan wrote: > > string_output_get_string() always return the data the sov->string > > "returns the data sov->string points to and never frees it" > > Although "sov" is a little out of context howev

Re: [Qemu-devel] [questions] about KVM as aMicrosoft-compatiblehypervisor

2014-08-03 Thread Zhang Haoyu
Hi, Vadim I start a vm(windows server 2008 64bit) with below qemu command, get stuck with black screen during boot stage, no error report by qemu and kvm hypervisor, but if I remove the item "hv_vapic", then start and run the VM successfully. /var/run/qemu-server/5195516385344.pid -daemonize -

[Qemu-devel] [PATCH v1 15/16] ppc: convert g_new(qemu_irq usages to g_new0

2014-08-03 Thread Peter Crosthwaite
To indicate the IRQs are initially disconnected. Signed-off-by: Peter Crosthwaite --- hw/intc/openpic.c | 2 +- hw/ppc/e500.c | 2 +- hw/ppc/mac_newworld.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/intc/openpic.c b/hw/intc/openpic.c index 028529e..7d1

[Qemu-devel] [PATCH v1 16/16] sysbus: Use TYPE_DEVICE GPIO functionality

2014-08-03 Thread Peter Crosthwaite
Re-implement the Sysbus GPIOs to use the existing TYPE_DEVICE GPIO named framework. A constant string name is chosen to avoid conflicts with existing unnamed GPIOs. This unifies GPIOs are IRQs for sysbus devices and allows removal of all Sysbus state for GPIOs. Any existing and future-added funct

[Qemu-devel] [PATCH v1 12/16] qdev: gpio: Remove qdev_init_gpio_out x1 restriction

2014-08-03 Thread Peter Crosthwaite
Previously this was restricted to a single call per-dev/per-name. With the conversion of the GPIO output state to QOM the implementation can now handle repeated calls. Remove the restriction. Signed-off-by: Peter Crosthwaite --- hw/core/qdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletion

[Qemu-devel] [PATCH v1 14/16] ssi: xilinx_spi: Initialise CS GPIOs as NULL

2014-08-03 Thread Peter Crosthwaite
To properly indicate they are unconnected. Signed-off-by: Peter Crosthwaite --- hw/ssi/xilinx_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ssi/xilinx_spi.c b/hw/ssi/xilinx_spi.c index 207f47a..620573c 100644 --- a/hw/ssi/xilinx_spi.c +++ b/hw/ssi/xilinx_spi.c @@

Re: [Qemu-devel] [PATCH v3 10/16] target-arm: Break out exception masking to a separate func

2014-08-03 Thread Edgar E. Iglesias
On Fri, Aug 01, 2014 at 02:51:44PM +0100, Peter Maydell wrote: > On 17 June 2014 09:45, Edgar E. Iglesias wrote: > > > > +static inline bool arm_excp_unmasked(CPUState *cs, unsigned int excp_idx) > > +{ > > +CPUARMState *env = cs->env_ptr; > > + > > +switch (excp_idx) { > > +case EXCP_

[Qemu-devel] [PATCH v1 11/16] qdev: gpio: delete NamedGPIOList::out

2014-08-03 Thread Peter Crosthwaite
All users of GPIO outputs are fully QOMified, using QOM properties to access the GPIO data. Delete. Signed-off-by: Peter Crosthwaite --- hw/core/qdev.c | 1 - include/hw/qdev-core.h | 1 - 2 files changed, 2 deletions(-) diff --git a/hw/core/qdev.c b/hw/core/qdev.c index 4cbf773..77b0b

[Qemu-devel] [PATCH v1 13/16] qdev: gpio: Define qdev_pass_gpios()

2014-08-03 Thread Peter Crosthwaite
Allows a container to take ownership of GPIOs in a contained device and automatically connect them as GPIOs to the container. This prepares for deprecation of the SYSBUS IRQ functionality, which has this feature. We push it up to the device level instead of sysbus level. There's nothing sysbus spe

[Qemu-devel] [PATCH v1 08/16] qdev: gpio: Add API for intercepting an IRQ

2014-08-03 Thread Peter Crosthwaite
To replace the old qemu_irq intercept API (which had users reaching into qdev private state for IRQs). Signed-off-by: Peter Crosthwaite --- hw/core/qdev.c | 25 + include/hw/qdev-core.h | 2 ++ 2 files changed, 27 insertions(+) diff --git a/hw/core/qdev.c b/hw/

[Qemu-devel] [PATCH v1 10/16] irq: Remove qemu_irq_intercept_out

2014-08-03 Thread Peter Crosthwaite
No more users left and obsoleted by qdev_intercept_gpio_out. Signed-off-by: Peter Crosthwaite --- hw/core/irq.c| 6 -- include/hw/irq.h | 1 - 2 files changed, 7 deletions(-) diff --git a/hw/core/irq.c b/hw/core/irq.c index 7d6318a..fef9cc2 100644 --- a/hw/core/irq.c +++ b/hw/core/irq.

[Qemu-devel] [PATCH v1 09/16] qtest/irq: Rework IRQ interception

2014-08-03 Thread Peter Crosthwaite
Change the qtest intercept handler to accept just the individual IRQ being intercepted as opaque. n is still expected to be correctly set as for the original intercepted irq. qemu_intercept_irq_in is updated accordingly. Then covert the qemu_irq_intercept_out call to use qdev intercept version. Th

[Qemu-devel] [PATCH v1 06/16] qom: Demote already-has-a-parent to a regular error

2014-08-03 Thread Peter Crosthwaite
Rather than an abort(). This allows callers to decide whether parenting an already-parented object is a fatal error condition. Useful for providing a default value for an object's parent in the case where you want to set one iff it doesn't already have one. Signed-off-by: Peter Crosthwaite ---

[Qemu-devel] [PATCH v1 07/16] qdev: gpio: Re-impement qdev_connect_gpio QOM style

2014-08-03 Thread Peter Crosthwaite
Re-implement as a link setter. This should allow the QOM framework to keep track of ref counts properly etc. We need to add a default parent for the connecting input incase it's coming from a non-qdev source. We simply parent the IRQ to the machine in this case. Signed-off-by: Peter Crosthwaite

[Qemu-devel] [PATCH v1 04/16] qmp: qstring: Handle NULL strings

2014-08-03 Thread Peter Crosthwaite
Create a valid qobject even if the input string is null. qstring->string will be NULL and length will be 0. This prepares support for clearing of QOM Link properties where NULL canonical path string will be passes through this API. Signed-off-by: Peter Crosthwaite --- qobject/qstring.c | 12 ++

[Qemu-devel] [PATCH v1 05/16] qom: Allow clearing of a Link property

2014-08-03 Thread Peter Crosthwaite
By passing in NULL to object_property_set_link. The lead user of this is the QDEV GPIO framework which will implement GPIO disconnects via an "unlink". Signed-off-by: Peter Crosthwaite --- qom/object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qom/object.c b/qom/o

[Qemu-devel] [PATCH v1 02/16] qdev: gpio: Register GPIO inputs as child objects

2014-08-03 Thread Peter Crosthwaite
To the device that contains them. This will allow for referencing a GPIO input from it's canonical path (exciting for dynamic machine generation!) Signed-off-by: Peter Crosthwaite --- hw/core/qdev.c | 9 + 1 file changed, 9 insertions(+) diff --git a/hw/core/qdev.c b/hw/core/qdev.c ind

[Qemu-devel] [PATCH v1 03/16] qdev: gpio: Register GPIO outputs as QOM links

2014-08-03 Thread Peter Crosthwaite
Within the object that contains the GPIO output. This allows for connecting GPIO outputs via setting of a Link property. Signed-off-by: Peter Crosthwaite --- hw/core/qdev.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/hw/core/qdev.c b/hw/core/qdev.c index 35c266a..5f55709 10

[Qemu-devel] [PATCH v1 01/16] qdev: gpio: Don't allow name share between I and O

2014-08-03 Thread Peter Crosthwaite
Only allow a GPIO name to be one or the other. Inputs and outputs are functionally different and should be in different namespaces. Prepares support for the QOMification of IRQs as Links or Child objects. The alternative is to munge names .e.g. with "-in" or "-out" suffixes when giving QOM names.

[Qemu-devel] [PATCH v1 00/16] GPIO/IRQ QOMification: Phase 2 - Getting rid of SYSBUS IRQs

2014-08-03 Thread Peter Crosthwaite
Hi All, So phase one was the QOMification of qemu_irq. This is the next step. We start to setup GPIOs as proper QOM objects. Inputs are child objects of their device. Outputs are settable Links and connection is made via proper setting of a QOM link. We then cleanup Sysbus to simply re-use device

Re: [Qemu-devel] [PATCH 3/3] hmp: fix MemdevList memory leak

2014-08-03 Thread chen.fan.f...@cn.fujitsu.com
On Fri, 2014-08-01 at 23:38 +1000, Peter Crosthwaite wrote: > On Fri, Aug 1, 2014 at 8:22 PM, Chen Fan wrote: > > Signed-off-by: Chen Fan > > --- > > hmp.c | 9 ++--- > > 1 file changed, 6 insertions(+), 3 deletions(-) > > > > diff --git a/hmp.c b/hmp.c > > index 2414cc7..0b1c830 100644 > >

Re: [Qemu-devel] [PATCH 2/3] qom/object.c: fix string_output_get_string() memory leak

2014-08-03 Thread chen.fan.f...@cn.fujitsu.com
On Fri, 2014-08-01 at 23:26 +1000, Peter Crosthwaite wrote: > On Fri, Aug 1, 2014 at 8:22 PM, Chen Fan wrote: > > string_output_get_string() always return the data the sov->string > > "returns the data sov->string points to and never frees it" > > Although "sov" is a little out of context howev

Re: [Qemu-devel] [PATCH v3 1/8] CODING_STYLE: Section about conditional statement

2014-08-03 Thread Gonglei (Arei)
Hi, > > Yoda conditions lack readability, and QEMU has a > > strict compiler configuration for checking a common > > mistake like "if (dev = NULL)". Make it a written rule. > > > > Signed-off-by: Gonglei > > --- > > CODING_STYLE | 14 ++ > > 1 file changed, 14 insertions(+) > > > > d

Re: [Qemu-devel] [PATCH v4] aarch64: Allow -kernel option to take a gzip-compressed kernel.

2014-08-03 Thread Peter Crosthwaite
On Sun, Aug 3, 2014 at 1:45 AM, Richard W.M. Jones wrote: > On aarch64 it is the bootloader's job to uncompress the kernel. UEFI > and u-boot bootloaders do this automatically when the kernel is > gzip-compressed. > > However the qemu -kernel option does not do this. The following > command does

Re: [Qemu-devel] [PATCH 0/3] arm_gic: Improve handling of GICD_ICFGR

2014-08-03 Thread Christoffer Dall
On 3 August 2014 15:21, Peter Maydell wrote: > On 3 August 2014 09:53, Adam Lackorzynski wrote: >> Hi, >> >> the following three patches address the behavior of the GICD_ICFGR register >> in the ARM GIC. >> >> Adam Lackorzynski (3): >> arm_gic: Fix read of GICD_ICFGR >> arm_gic: SGIs for GICD

Re: [Qemu-devel] [PATCH] dump.c: Fix memory leak issue in cleanup processing for dump_init()

2014-08-03 Thread Laszlo Ersek
comments below On 08/03/14 17:28, Chen Gang wrote: > In dump_init(), when failure occurs, need notice about 'fd' and memory > mapping. So call dump_cleanup() for it (need let all initializations at > front). > > Also simplify dump_cleanup(): remove redundant 'ret' and redundant 'fd' > checking. >

[Qemu-devel] [PATCH] dump.c: Fix memory leak issue in cleanup processing for dump_init()

2014-08-03 Thread Chen Gang
In dump_init(), when failure occurs, need notice about 'fd' and memory mapping. So call dump_cleanup() for it (need let all initializations at front). Also simplify dump_cleanup(): remove redundant 'ret' and redundant 'fd' checking. Signed-off-by: Chen Gang --- dump.c | 18 +- 1

Re: [Qemu-devel] [PATCH 1/3] intel-iommu: introduce Intel IOMMU (VT-d) emulation

2014-08-03 Thread Knut Omang
On Thu, 2014-07-24 at 07:24 +0800, Le Tan wrote: > Hi Stefan, > > 2014-07-24 4:29 GMT+08:00 Stefan Weil : > > Am 22.07.2014 17:47, schrieb Le Tan: > >> Add support for emulating Intel IOMMU according to the VT-d specification > >> for > >> the q35 chipset machine. Implement the logic for DMAR (DM

[Qemu-devel] [PATCH] hw/9pfs: Use little-endian format for xattr values

2014-08-03 Thread Aneesh Kumar K.V
With security_model=mapped-xattr, we encode the uid,gid and other file attributes as extended attributes of the file. We save them under user.virtfs.* namespace. Use little-endian encoding for on-disk values. This enables us to export the same directory from both little-endian and big-endian hosts

Re: [Qemu-devel] [PATCH 0/3] arm_gic: Improve handling of GICD_ICFGR

2014-08-03 Thread Peter Maydell
On 3 August 2014 09:53, Adam Lackorzynski wrote: > Hi, > > the following three patches address the behavior of the GICD_ICFGR register > in the ARM GIC. > > Adam Lackorzynski (3): > arm_gic: Fix read of GICD_ICFGR > arm_gic: SGIs for GICD_ICFGR are WI > arm_gic: GICD_ICFGR: Do not force edge

Re: [Qemu-devel] [Qemu-trivial] [PATCH v1 1/1] hexdump: Add null guard on output file.

2014-08-03 Thread Peter Maydell
On 3 August 2014 02:17, Peter Crosthwaite wrote: > Note that many of the existing call this with stderr as FP argument > which in theory should be change to something that backs onto > qemu_log. I suspect the file handle in this case will be NULL when > logging is disabled and this patch avoid hav

Re: [Qemu-devel] [PATCH] linux-user: Add missing unlock_user_struct to timer_create.

2014-08-03 Thread Peter Maydell
On 3 August 2014 00:45, Erik de Castro Lopo wrote: > Signed-off-by: Erik de Castro Lopo > --- > linux-user/syscall.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/linux-user/syscall.c b/linux-user/syscall.c > index a50229d..5f22b37 100644 > --- a/linux-user/syscall.c > +++ b/linux-use

[Qemu-devel] [PATCH 0/3] arm_gic: Improve handling of GICD_ICFGR

2014-08-03 Thread Adam Lackorzynski
Hi, the following three patches address the behavior of the GICD_ICFGR register in the ARM GIC. Adam Lackorzynski (3): arm_gic: Fix read of GICD_ICFGR arm_gic: SGIs for GICD_ICFGR are WI arm_gic: GICD_ICFGR: Do not force edge-triggered PPIs hw/intc/arm_gic.c | 15 --- 1 file c

[Qemu-devel] [PATCH 3/3] arm_gic: GICD_ICFGR: Do not force edge-triggered PPIs

2014-08-03 Thread Adam Lackorzynski
Using GICD_ICFGR for PPIs forces PPIs to edge-triggered mode, although they have been initialised to level-triggered. This affects all interrupts covered by the write access. Change the handling of PPIs to not force a specific mode. It is implementation defined whether setting the mode of PPIs is s

[Qemu-devel] [PATCH 2/3] arm_gic: SGIs for GICD_ICFGR are WI

2014-08-03 Thread Adam Lackorzynski
Writes to SGIs for GICD_ICFGR register must be ignored. Signed-off-by: Adam Lackorzynski --- hw/intc/arm_gic.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/intc/arm_gic.c b/hw/intc/arm_gic.c index d2b1aaf..cd6e6ea 100644 --- a/hw/intc/arm_gic.c +++ b/hw/intc

[Qemu-devel] [PATCH 1/3] arm_gic: Fix read of GICD_ICFGR

2014-08-03 Thread Adam Lackorzynski
The GICD_ICFGR register covers 4 interrupts per byte. Signed-off-by: Adam Lackorzynski --- hw/intc/arm_gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/intc/arm_gic.c b/hw/intc/arm_gic.c index 1532ef9..d2b1aaf 100644 --- a/hw/intc/arm_gic.c +++ b/hw/intc/arm_gic.c @@