public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] LoongArch: KVM: Add LSX,LASX support
@ 2023-11-15  9:19 Tianrui Zhao
  2023-11-15  9:19 ` [PATCH v1 1/2] LoongArch: KVM: Add lsx support Tianrui Zhao
  2023-11-15  9:19 ` [PATCH v1 2/2] LoongArch: KVM: Add lasx support Tianrui Zhao
  0 siblings, 2 replies; 12+ messages in thread
From: Tianrui Zhao @ 2023-11-15  9:19 UTC (permalink / raw)
  To: linux-kernel, kvm
  Cc: Paolo Bonzini, Huacai Chen, WANG Xuerui, Greg Kroah-Hartman,
	loongarch, Jens Axboe, Mark Brown, Alex Deucher, Oliver Upton,
	maobibo, Xi Ruoyao, zhaotianrui

This patch series add LSX,LASX support for LoongArch KVM.
LSX: LoongArch 128-bits vector instruction
LASX:LoongArch 256-bits vector instruction

There will be LSX,LASX exception in KVM when guest use the
LSX,LASX instructions. KVM will enable LSX,LASX and restore
the vector registers for guest then return to guest to continue
running.

Changes for v1:
(1) Add LSX support for LoongArch KVM.
(2) Add LASX support for LoongArch KVM.

Tianrui Zhao (1):
  LoongArch: KVM: Add lsx support

zhaotianrui (1):
  LoongArch: KVM: Add lasx support

 arch/loongarch/include/asm/kvm_host.h | 12 ++++
 arch/loongarch/include/asm/kvm_vcpu.h | 22 +++++++
 arch/loongarch/kernel/fpu.S           |  1 +
 arch/loongarch/kvm/exit.c             | 36 +++++++++++
 arch/loongarch/kvm/switch.S           | 38 ++++++++++++
 arch/loongarch/kvm/trace.h            |  6 +-
 arch/loongarch/kvm/vcpu.c             | 88 ++++++++++++++++++++++++++-
 7 files changed, 199 insertions(+), 4 deletions(-)

-- 
2.39.1


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

end of thread, other threads:[~2023-11-21 12:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-15  9:19 [PATCH v1 0/2] LoongArch: KVM: Add LSX,LASX support Tianrui Zhao
2023-11-15  9:19 ` [PATCH v1 1/2] LoongArch: KVM: Add lsx support Tianrui Zhao
2023-11-15 19:35   ` kernel test robot
2023-11-16  7:15   ` WANG Xuerui
2023-11-21  9:56     ` zhaotianrui
2023-11-17  8:24   ` maobibo
2023-11-20  1:31     ` zhaotianrui
2023-11-15  9:19 ` [PATCH v1 2/2] LoongArch: KVM: Add lasx support Tianrui Zhao
2023-11-16  7:19   ` WANG Xuerui
2023-11-21 10:02     ` zhaotianrui
2023-11-21 11:55       ` Huacai Chen
2023-11-21 12:17         ` zhaotianrui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox