[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231115091921.85516-1-zhaotianrui@loongson.cn>
Date: Wed, 15 Nov 2023 17:19:19 +0800
From: Tianrui Zhao <zhaotianrui@...ngson.cn>
To: linux-kernel@...r.kernel.org, kvm@...r.kernel.org
Cc: Paolo Bonzini <pbonzini@...hat.com>,
Huacai Chen <chenhuacai@...nel.org>,
WANG Xuerui <kernel@...0n.name>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
loongarch@...ts.linux.dev, Jens Axboe <axboe@...nel.dk>,
Mark Brown <broonie@...nel.org>,
Alex Deucher <alexander.deucher@....com>,
Oliver Upton <oliver.upton@...ux.dev>, maobibo@...ngson.cn,
Xi Ruoyao <xry111@...111.site>, zhaotianrui@...ngson.cn
Subject: [PATCH v1 0/2] LoongArch: KVM: Add LSX,LASX support
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
Powered by blists - more mailing lists