[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240326080625.898051-1-maobibo@loongson.cn>
Date: Tue, 26 Mar 2024 16:06:23 +0800
From: Bibo Mao <maobibo@...ngson.cn>
To: Tianrui Zhao <zhaotianrui@...ngson.cn>,
Huacai Chen <chenhuacai@...nel.org>
Cc: Juergen Gross <jgross@...e.com>,
kvm@...r.kernel.org,
loongarch@...ts.linux.dev,
linux-kernel@...r.kernel.org,
virtualization@...ts.linux.dev,
x86@...nel.org
Subject: [PATCH 0/2] LoongArch: Add steal time support
Para-virt feature steal time is added in both kvm and guest kernel side.
It is silimar with other architectures, steal time structure comes from
guest memory, also pseduo register is used to save/restore base address
of steal time structure, so that vm migration is supported also.
Bibo Mao (2):
LoongArch: KVM: Add steal time support in kvm side
LoongArch: Add steal time support in guest side
arch/loongarch/include/asm/kvm_host.h | 7 ++
arch/loongarch/include/asm/kvm_para.h | 10 ++
arch/loongarch/include/asm/loongarch.h | 1 +
arch/loongarch/include/asm/paravirt.h | 5 +
arch/loongarch/include/uapi/asm/kvm.h | 4 +
arch/loongarch/kernel/paravirt.c | 130 +++++++++++++++++++++++++
arch/loongarch/kernel/time.c | 2 +
arch/loongarch/kvm/exit.c | 35 ++++++-
arch/loongarch/kvm/vcpu.c | 120 +++++++++++++++++++++++
9 files changed, 309 insertions(+), 5 deletions(-)
base-commit: 2ac2b1665d3fbec6ca709dd6ef3ea05f4a51ee4c
--
2.39.3
Powered by blists - more mailing lists