Re: [PATCH V8 1/3] irq: Add flags to request_percpu_irq function

2017-03-23 Thread Daniel Lezcano
Hi Mark, On Thu, Mar 23, 2017 at 06:54:52PM +, Mark Rutland wrote: > Hi Daniel, > > On Thu, Mar 23, 2017 at 06:42:01PM +0100, Daniel Lezcano wrote: > > In the next changes, we track the interrupts but we discard the timers as > > that does not make sense. The next interrupt on a timer is

Re: [PATCH V8 1/3] irq: Add flags to request_percpu_irq function

2017-03-23 Thread Mark Rutland
Hi Daniel, On Thu, Mar 23, 2017 at 06:42:01PM +0100, Daniel Lezcano wrote: > In the next changes, we track the interrupts but we discard the timers as > that does not make sense. The next interrupt on a timer is predictable. Sorry, but I could not parse this. [...] > diff --git

Re: [PATCH V13 10/10] arm/arm64: KVM: add guest SEA support

2017-03-23 Thread Catalin Marinas
On Tue, Mar 21, 2017 at 04:47:05PM -0600, Tyler Baicar wrote: > Currently external aborts are unsupported by the guest abort > handling. Add handling for SEAs so that the host kernel reports > SEAs which occur in the guest kernel. > > Signed-off-by: Tyler Baicar > --- >

Re: [PATCH V13 05/10] acpi: apei: handle SEA notification type for ARMv8

2017-03-23 Thread Catalin Marinas
On Tue, Mar 21, 2017 at 04:47:00PM -0600, Tyler Baicar wrote: > ARM APEI extension proposal added SEA (Synchronous External Abort) > notification type for ARMv8. > Add a new GHES error source handling function for SEA. If an error > source's notification type is SEA, then this function can be

[PATCH V8 1/3] irq: Add flags to request_percpu_irq function

2017-03-23 Thread Daniel Lezcano
In the next changes, we track the interrupts but we discard the timers as that does not make sense. The next interrupt on a timer is predictable. But, the API request_percpu_irq does not allow to pass a flag, hence specifying if the interrupt type is a timer. Solve this by passing a 'flags'

Re: [PATCH V13 04/10] arm64: exception: handle Synchronous External Abort

2017-03-23 Thread Catalin Marinas
On Tue, Mar 21, 2017 at 04:46:59PM -0600, Tyler Baicar wrote: > SEA exceptions are often caused by an uncorrected hardware > error, and are handled when data abort and instruction abort > exception classes have specific values for their Fault Status > Code. > When SEA occurs, before killing the

Re: [PATCH v4 00/28] arm/arm64: KVM: Rework the hyp-stub API

2017-03-23 Thread Christoffer Dall
On Thu, Mar 23, 2017 at 03:16:49PM +, Marc Zyngier wrote: > On 23/03/17 14:39, Christoffer Dall wrote: > > On Thu, Mar 23, 2017 at 10:53:04AM +, Marc Zyngier wrote: > >> On 22/03/17 17:27, Christoffer Dall wrote: > >>> > >>> I don't think there is a great use case beyond what we already

Re: [PATCH v4 00/28] arm/arm64: KVM: Rework the hyp-stub API

2017-03-23 Thread Marc Zyngier
On 23/03/17 14:39, Christoffer Dall wrote: > On Thu, Mar 23, 2017 at 10:53:04AM +, Marc Zyngier wrote: >> On 22/03/17 17:27, Christoffer Dall wrote: >>> >>> I don't think there is a great use case beyond what we already do, it >>> would just be to have one set of hyp vectors fewer, so that

Re: [PATCH] arm/arm64: KVM: send SIGBUS error to qemu

2017-03-23 Thread James Morse
Hi Dongjiu Geng, On 23/03/17 13:01, Dongjiu Geng wrote: > when the pfn is KVM_PFN_ERR_HWPOISON, it indicates to send > SIGBUS signal from KVM's fault-handling code to qemu, qemu > can handle this signal according to the fault address. I'm afraid I beat you to it on this one:

Re: [PATCH v4 00/28] arm/arm64: KVM: Rework the hyp-stub API

2017-03-23 Thread Christoffer Dall
On Thu, Mar 23, 2017 at 10:53:04AM +, Marc Zyngier wrote: > On 22/03/17 17:27, Christoffer Dall wrote: > > On Wed, Mar 22, 2017 at 04:14:44PM +, Marc Zyngier wrote: > >> Hi Christoffer, > >> > >> On 22/03/17 13:37, Christoffer Dall wrote: > >>> Hi Marc, > >>> > >>> > >>> On Tue, Mar 21,

[PATCH] arm/arm64: KVM: send SIGBUS error to qemu

2017-03-23 Thread Dongjiu Geng
when the pfn is KVM_PFN_ERR_HWPOISON, it indicates to send SIGBUS signal from KVM's fault-handling code to qemu, qemu can handle this signal according to the fault address. Signed-off-by: Dongjiu Geng --- arch/arm/kvm/mmu.c | 20

Re: [PATCH v4 02/28] arm64: KVM: Move lr save/restore to do_el2_call

2017-03-23 Thread Marc Zyngier
On 21/03/17 19:20, Marc Zyngier wrote: > At the moment, we only save/restore lr if on VHE, as we rely only > the EL1 code to have preserved it in the non-VHE case. > > As we're about to get rid of the latter, let's move the save/restore > code to the do_el2_call macro, unifying both code paths. >

Re: [PATCH v4 00/28] arm/arm64: KVM: Rework the hyp-stub API

2017-03-23 Thread Marc Zyngier
On 22/03/17 17:27, Christoffer Dall wrote: > On Wed, Mar 22, 2017 at 04:14:44PM +, Marc Zyngier wrote: >> Hi Christoffer, >> >> On 22/03/17 13:37, Christoffer Dall wrote: >>> Hi Marc, >>> >>> >>> On Tue, Mar 21, 2017 at 07:20:30PM +, Marc Zyngier wrote: As noticed by RMK in this