[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240430014505.2102631-1-maobibo@loongson.cn>
Date: Tue, 30 Apr 2024 09:45:03 +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,
x86@...nel.org,
virtualization@...ts.linux.dev
Subject: [PATCH v2 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.
---
v2:
1. Add PARAVIRT_TIME_ACCOUNTING kconfig option in file
arch/loongarch/Kconfig
2. Function name change such as replace pv_register_steal_time with
pv_enable_steal_time etc
---
Bibo Mao (2):
LoongArch: KVM: Add steal time support in kvm side
LoongArch: Add steal time support in guest side
arch/loongarch/Kconfig | 11 +++
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 | 131 +++++++++++++++++++++++++
arch/loongarch/kernel/time.c | 2 +
arch/loongarch/kvm/exit.c | 29 +++++-
arch/loongarch/kvm/vcpu.c | 120 ++++++++++++++++++++++
10 files changed, 318 insertions(+), 2 deletions(-)
base-commit: 2c8159388952f530bd260e097293ccc0209240be
--
2.39.3
Powered by blists - more mailing lists