Re: [PATCH] arm64: KVM: Optimize arm64 guest exit VFP/SIMD register save/restore

2015-06-16 Thread Marc Zyngier
On 16/06/15 04:04, Mario Smarduch wrote: On 06/15/2015 11:20 AM, Marc Zyngier wrote: On 15/06/15 19:04, Mario Smarduch wrote: On 06/15/2015 03:00 AM, Marc Zyngier wrote: Hi Mario, [ ... ] On 13/06/15 23:20, Mario Smarduch wrote: Currently VFP/SIMD registers are always saved and restored

Re: [PATCH] arm64: KVM: Optimize arm64 guest exit VFP/SIMD register save/restore

2015-06-15 Thread Marc Zyngier
Hi Mario, I was working on a more ambitious patch series, but we probably ought to start small, and this looks fairly sensible to me. A few minor comments below. On 13/06/15 23:20, Mario Smarduch wrote: Currently VFP/SIMD registers are always saved and restored on Guest entry and exit.

Re: [PATCH] arm64: KVM: Optimize arm64 guest exit VFP/SIMD register save/restore

2015-06-15 Thread Mario Smarduch
On 06/15/2015 11:20 AM, Marc Zyngier wrote: On 15/06/15 19:04, Mario Smarduch wrote: On 06/15/2015 03:00 AM, Marc Zyngier wrote: Hi Mario, [ ... ] On 13/06/15 23:20, Mario Smarduch wrote: Currently VFP/SIMD registers are always saved and restored on Guest entry and exit. This patch only

Re: [PATCH] arm64: KVM: Optimize arm64 guest exit VFP/SIMD register save/restore

2015-06-15 Thread Marc Zyngier
On 15/06/15 19:44, Mario Smarduch wrote: On 06/15/2015 11:20 AM, Marc Zyngier wrote: On 15/06/15 19:04, Mario Smarduch wrote: On 06/15/2015 03:00 AM, Marc Zyngier wrote: Hi Mario, I was working on a more ambitious patch series, but we probably ought to start small, and this looks fairly

Re: [PATCH] arm64: KVM: Optimize arm64 guest exit VFP/SIMD register save/restore

2015-06-15 Thread Mario Smarduch
On 06/15/2015 11:51 AM, Marc Zyngier wrote: On 15/06/15 19:44, Mario Smarduch wrote: On 06/15/2015 11:20 AM, Marc Zyngier wrote: On 15/06/15 19:04, Mario Smarduch wrote: On 06/15/2015 03:00 AM, Marc Zyngier wrote: Hi Mario, [...] The 32bit code is starting to show its age, and could

Re: [PATCH] arm64: KVM: Optimize arm64 guest exit VFP/SIMD register save/restore

2015-06-15 Thread Mario Smarduch
On 06/15/2015 11:20 AM, Marc Zyngier wrote: On 15/06/15 19:04, Mario Smarduch wrote: On 06/15/2015 03:00 AM, Marc Zyngier wrote: Hi Mario, I was working on a more ambitious patch series, but we probably ought to start small, and this looks fairly sensible to me. Hi Marc, thanks for

Re: [PATCH] arm64: KVM: Optimize arm64 guest exit VFP/SIMD register save/restore

2015-06-15 Thread Mario Smarduch
On 06/15/2015 03:00 AM, Marc Zyngier wrote: Hi Mario, I was working on a more ambitious patch series, but we probably ought to start small, and this looks fairly sensible to me. Hi Marc, thanks for reviewing, I was thinking to post this first and next iteration on guest access switch

Re: [PATCH] arm64: KVM: Optimize arm64 guest exit VFP/SIMD register save/restore

2015-06-15 Thread Marc Zyngier
On 15/06/15 19:04, Mario Smarduch wrote: On 06/15/2015 03:00 AM, Marc Zyngier wrote: Hi Mario, I was working on a more ambitious patch series, but we probably ought to start small, and this looks fairly sensible to me. Hi Marc, thanks for reviewing, I was thinking to post this first

[PATCH] arm64: KVM: Optimize arm64 guest exit VFP/SIMD register save/restore

2015-06-13 Thread Mario Smarduch
Currently VFP/SIMD registers are always saved and restored on Guest entry and exit. This patch only saves and restores VFP/SIMD registers on Guest access. To do this cptr_el2 VFP/SIMD trap is set on Guest entry and later checked on exit. This follows the ARMv7 VFPv3 implementation. Running an