linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] KVM/arm: enhance arvm7 vfp/simd lazy switch support
@ 2015-09-26 23:43 Mario Smarduch
  2015-09-26 23:43 ` [PATCH v2 1/2] KVM/arm: add hooks for armv7 fp/simd " Mario Smarduch
  2015-09-26 23:43 ` [PATCH v2 2/2] KVM/arm: enable enhanced armv7 fp/simd lazy switch Mario Smarduch
  0 siblings, 2 replies; 10+ messages in thread
From: Mario Smarduch @ 2015-09-26 23:43 UTC (permalink / raw)
  To: linux-arm-kernel

Current lazy vfp/simd implementation switches hardware context only on 
guest access and again on exit to host, otherwise hardware context is
skipped.

This patch set builds on that functionality and executes a hardware context 
switch only when  vCPU is scheduled out or returns to user space.

Patches were tested on FVP sw platform. FP crunching applications summing up 
values, with outcome compared to known result were executed on several guests, 
and host. 

Changes since v1->v2:
* Fixed vfp/simd trap configuration to enable trace trapping
* Removed set_hcptr branch label
* Fixed handling of FPEXC to restore guest and host versions on vcpu_put

Mario Smarduch (2):
  add hooks for armv7 fp/simd lazy switch support
  enable armv7 fp/simd lazy switch

 arch/arm/include/asm/kvm_asm.h  |  1 +
 arch/arm/include/asm/kvm_host.h |  6 +++++
 arch/arm/kernel/asm-offsets.c   |  2 ++
 arch/arm/kvm/arm.c              | 17 ++++++++++++
 arch/arm/kvm/interrupts.S       | 60 ++++++++++++++++++++++++++++++-----------
 arch/arm/kvm/interrupts_head.S  | 12 ++++++---
 6 files changed, 79 insertions(+), 19 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-10-22 21:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-26 23:43 [PATCH v2 0/2] KVM/arm: enhance arvm7 vfp/simd lazy switch support Mario Smarduch
2015-09-26 23:43 ` [PATCH v2 1/2] KVM/arm: add hooks for armv7 fp/simd " Mario Smarduch
2015-10-19  8:53   ` Christoffer Dall
2015-10-19 23:16     ` Mario Smarduch
2015-09-26 23:43 ` [PATCH v2 2/2] KVM/arm: enable enhanced armv7 fp/simd lazy switch Mario Smarduch
2015-10-19 10:14   ` Christoffer Dall
2015-10-19 23:25     ` Mario Smarduch
2015-10-20  7:24       ` Christoffer Dall
2015-10-21  1:10         ` Mario Smarduch
2015-10-22 21:20           ` Christoffer Dall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).