Re: [PATCH 2/2] KVM: arm64: Leave vcpu FPSIMD synchronization in host

2020-07-14 Thread Dave Martin
On Mon, Jul 13, 2020 at 09:42:04PM +0100, Andrew Scull wrote: > On Mon, Jul 13, 2020 at 05:04:21PM +0100, Dave Martin wrote: > > On Fri, Jul 10, 2020 at 10:57:54AM +0100, Andrew Scull wrote: > > > The task state can be checked by the host and the vcpu flags updated > > > before calling into hyp.

[PATCH] KVM: arm64: Avoid rewinding the PC for trapped SMCs

2020-07-14 Thread Andrew Scull
When handling a guest's SError that was identified in __guest_exit, it is injected back into the guest at the instruction that caused the switch into hyp. A trapped SMC does not advance the PC so no adjustment needs to be made to the PC. Fixes: ddb3d07cfe90 ("arm64: KVM: Inject a Virtual SError

Re: [Question] About scaling factor of Enhanced Counter Virtualization

2020-07-14 Thread zhukeqian
On 2020/7/14 20:23, Marc Zyngier wrote: > On 2020-07-14 13:15, zhukeqian wrote: >> Hi Marc, >> >> On 2020/7/14 19:34, Marc Zyngier wrote: >>> Hi Keqian, >>> >>> On 2020-07-14 03:20, zhukeqian wrote: Hi all, We are studying Enhanced Counter Virtualization (introduced by ARMv8.6

Re: [Question] About scaling factor of Enhanced Counter Virtualization

2020-07-14 Thread Marc Zyngier
On 2020-07-14 13:15, zhukeqian wrote: Hi Marc, On 2020/7/14 19:34, Marc Zyngier wrote: Hi Keqian, On 2020-07-14 03:20, zhukeqian wrote: Hi all, We are studying Enhanced Counter Virtualization (introduced by ARMv8.6 extension), and here is a question raised by Biaoxiang Ye : Described in

Re: [Question] About scaling factor of Enhanced Counter Virtualization

2020-07-14 Thread zhukeqian
Hi Marc, On 2020/7/14 19:34, Marc Zyngier wrote: > Hi Keqian, > > On 2020-07-14 03:20, zhukeqian wrote: >> Hi all, >> >> We are studying Enhanced Counter Virtualization (introduced by ARMv8.6 >> extension), and here is a question >> raised by Biaoxiang Ye : >> >> Described in the ARMv8.6

Re: [Question] About scaling factor of Enhanced Counter Virtualization

2020-07-14 Thread Marc Zyngier
Hi Keqian, On 2020-07-14 03:20, zhukeqian wrote: Hi all, We are studying Enhanced Counter Virtualization (introduced by ARMv8.6 extension), and here is a question raised by Biaoxiang Ye : Described in the ARMv8.6 Extension Specification: Note: the scaling factor CNTSCALE is designed as a 2.62