Re: [PATCH] KVM: arm64: stop propagating DAIF flags between kernel and VHE's world switch

2017-08-30 Thread Christoffer Dall
On Wed, Aug 30, 2017 at 07:01:39PM +0100, James Morse wrote: > Hi Christoffer, > > On 30/08/17 09:33, Christoffer Dall wrote: > > On Tue, Aug 29, 2017 at 06:10:57PM +0100, James Morse wrote: > >> On 24/08/17 16:23, Christoffer Dall wrote: > >>> On Thu, Aug 10, 2017 at 12:30:21PM +0100, James

Re: [PATCH] KVM: arm64: stop propagating DAIF flags between kernel and VHE's world switch

2017-08-30 Thread James Morse
Hi Christoffer, On 30/08/17 09:33, Christoffer Dall wrote: > On Tue, Aug 29, 2017 at 06:10:57PM +0100, James Morse wrote: >> On 24/08/17 16:23, Christoffer Dall wrote: >>> On Thu, Aug 10, 2017 at 12:30:21PM +0100, James Morse wrote: debug exceptions remain disabled due to the guest exit

Re: [PATCH] KVM: arm64: stop propagating DAIF flags between kernel and VHE's world switch

2017-08-30 Thread Christoffer Dall
On Tue, Aug 29, 2017 at 06:10:57PM +0100, James Morse wrote: > Hi Christoffer, > > > (I suspect I'm using some term differently here ...) > > On 24/08/17 16:23, Christoffer Dall wrote: > > On Thu, Aug 10, 2017 at 12:30:21PM +0100, James Morse wrote: > >> KVM calls __kvm_vcpu_run() in a loop

Re: [PATCH] KVM: arm64: stop propagating DAIF flags between kernel and VHE's world switch

2017-08-29 Thread James Morse
Hi Christoffer, (I suspect I'm using some term differently here ...) On 24/08/17 16:23, Christoffer Dall wrote: > On Thu, Aug 10, 2017 at 12:30:21PM +0100, James Morse wrote: >> KVM calls __kvm_vcpu_run() in a loop with interrupts masked for the >> duration of the call. On a non-vhe system we

Re: [PATCH] KVM: arm64: stop propagating DAIF flags between kernel and VHE's world switch

2017-08-24 Thread Christoffer Dall
Hi James, On Thu, Aug 10, 2017 at 12:30:21PM +0100, James Morse wrote: > KVM calls __kvm_vcpu_run() in a loop with interrupts masked for the > duration of the call. On a non-vhe system we HVC to EL2 and the > host DAIF flags are save/restored via the SPSR. > > On a system with vhe, we branch to

[PATCH] KVM: arm64: stop propagating DAIF flags between kernel and VHE's world switch

2017-08-10 Thread James Morse
KVM calls __kvm_vcpu_run() in a loop with interrupts masked for the duration of the call. On a non-vhe system we HVC to EL2 and the host DAIF flags are save/restored via the SPSR. On a system with vhe, we branch to the EL2 code because the kernel also runs at EL2. This means the other kernel DAIF