OpenCloudOS-Kernel/arch/loongarch/kernel
Bibo Mao ec943318bc LoongArch: Add steal time support in guest side
Upstream: no

Percpu struct kvm_steal_time is added here, its size is 64 bytes and
also defined as 64 bytes, so that the whole structure is in one physical
page.

When vcpu is onlined, function pv_register_steal_time() is called. This
function will pass physical address of struct kvm_steal_time and tells
hypervisor to enable steal time. When vcpu is offline, physical address
is set as 0 and tells hypervisor to disable steal time.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Xianglai Li <lixianglai@loongson.cn>
2024-04-12 20:59:07 +08:00
..
.gitignore
Makefile LoongArch: Add pv ipi support on guest kernel side 2024-04-12 20:59:06 +08:00
access-helper.h LoongArch: Add exception/interrupt handling 2022-06-03 20:09:28 +08:00
acpi.c LoongArch: Old BPI compatibility 2024-03-21 19:07:28 +08:00
alternative.c LoongArch: Use common function sign_extend64() 2023-01-17 11:42:16 +08:00
asm-offsets.c LoongArch: KVM: Implement vcpu world switch 2024-04-12 20:49:43 +08:00
cacheinfo.c LoongArch: Refactor cache probe and flush methods 2022-10-12 16:36:14 +08:00
cpu-probe.c LoongArch: Add Loongson Binary Translation (LBT) extension support 2023-09-06 22:53:55 +08:00
crash_dump.c LoongArch: Add kdump support 2022-10-12 16:36:19 +08:00
dma.c LoongArch: use arch specific phys_to_dma 2024-03-21 19:07:28 +08:00
efi-header.S LoongArch: Calculate various sizes in the linker script 2023-06-29 20:58:42 +08:00
efi.c LoongArch: Old BPI compatibility 2024-03-21 19:07:28 +08:00
elf.c LoongArch: Fix and simplify fcsr initialization on execve() 2024-01-25 15:35:44 -08:00
entry.S LoongArch: Use SYM_CODE_* to annotate exception handlers 2023-10-18 08:42:52 +08:00
env.c LoongArch: Old BPI compatibility 2024-03-21 19:07:28 +08:00
fpu.S LoongArch: KVM: Add LASX (256bit SIMD) support 2024-04-12 20:49:44 +08:00
ftrace.c LoongArch/ftrace: Add basic support 2022-12-14 08:41:53 +08:00
ftrace_dyn.c LoongArch: ftrace: Add direct call support 2023-05-01 17:19:53 +08:00
genex.S LoongArch: Use SYM_CODE_* to annotate exception handlers 2023-10-18 08:42:52 +08:00
head.S LoongArch: Add KASAN (Kernel Address Sanitizer) support 2023-09-06 22:54:16 +08:00
hw_breakpoint.c LoongArch: Fix hw_breakpoint_control() for watchpoints 2023-08-26 22:21:57 +08:00
idle.c arch/idle: Change arch_cpu_idle() behavior: always exit with IRQs disabled 2023-01-13 11:48:15 +01:00
image-vars.h efi: loongarch: Drop exports of unused string routines 2022-11-09 12:42:02 +01:00
inst.c LoongArch: Add larch_insn_gen_break() to generate break insns 2023-06-29 20:58:44 +08:00
io.c LoongArch: Add misc common routines 2022-06-03 20:09:28 +08:00
irq.c LoongArch: Add pv ipi support on guest kernel side 2024-04-12 20:59:06 +08:00
jump_label.c LoongArch: Add jump-label implementation 2023-06-29 20:58:44 +08:00
kfpu.c LoongArch: Allow usage of LSX/LASX in the kernel 2023-09-06 22:53:55 +08:00
kgdb.c LoongArch: Add basic KGDB & KDB support 2023-09-06 22:53:55 +08:00
kprobes.c LoongArch: Use larch_insn_gen_break() for kprobes 2023-06-29 20:58:44 +08:00
lbt.S LoongArch: Add Loongson Binary Translation (LBT) extension support 2023-09-06 22:53:55 +08:00
legacy_boot.c LoongArch: Fixed EIOINTC structure members 2024-03-21 19:07:28 +08:00
legacy_boot.h LoongArch: Old BPI compatibility 2024-03-21 19:07:28 +08:00
machine_kexec.c LoongArch: kexec: Add compatibility with old interfaces 2024-03-21 19:07:30 +08:00
mcount.S LoongArch: Replace #include <asm/export.h> with #include <linux/export.h> 2023-08-25 23:40:26 +08:00
mcount_dyn.S LoongArch: Remove unneeded #include <asm/export.h> 2023-08-25 23:40:26 +08:00
mem.c LoongArch: Old BPI compatibility 2024-03-21 19:07:28 +08:00
module-sections.c LoongArch: Fix some build warnings with W=1 2023-09-20 14:26:28 +08:00
module.c LoongArch: Add support for 64_PCREL relocation type 2023-09-27 16:19:13 +08:00
numa.c LoongArch: Old BPI compatibility 2024-03-21 19:07:28 +08:00
paravirt.c LoongArch: Add steal time support in guest side 2024-04-12 20:59:07 +08:00
perf_event.c LoongArch/smp: Refine some ipi functions on LoongArch platform 2024-04-12 20:59:05 +08:00
perf_regs.c LoongArch: Add perf events support 2022-10-12 16:36:14 +08:00
proc.c LoongArch: Introduce hardware page table walker 2023-06-29 20:58:44 +08:00
process.c LoongArch: Fix and simplify fcsr initialization on execve() 2024-01-25 15:35:44 -08:00
ptrace.c LoongArch: Add Loongson Binary Translation (LBT) extension support 2023-09-06 22:53:55 +08:00
relocate.c LoongArch: Silence the boot warning about 'nokaslr' 2023-12-20 17:01:57 +01:00
relocate_kernel.S LoongArch: Remove dead code in relocate_new_kernel 2023-09-20 14:26:29 +08:00
reset.c LoongArch: Old BPI compatibility 2024-03-21 19:07:28 +08:00
rethook.c LoongArch: Replace kretprobe with rethook 2023-06-29 20:58:44 +08:00
rethook.h LoongArch: Replace kretprobe with rethook 2023-06-29 20:58:44 +08:00
rethook_trampoline.S LoongArch: Replace kretprobe with rethook 2023-06-29 20:58:44 +08:00
setup.c LoongArch: kdump: Add high memory reservation 2024-03-21 19:07:30 +08:00
signal.c LoongArch: Fix some build warnings with W=1 2023-09-20 14:26:28 +08:00
smp.c LoongArch: Add pv ipi support on guest kernel side 2024-04-12 20:59:06 +08:00
stacktrace.c LoongArch: Set unwind stack type to unknown rather than set error flag 2024-01-20 11:51:42 +01:00
switch.S LoongArch: Add basic STACKPROTECTOR support 2022-12-14 08:41:53 +08:00
syscall.c LoongArch: Fix some build warnings with W=1 2023-09-20 14:26:28 +08:00
sysrq.c tty: sysrq: switch sysrq handlers from int to u8 2023-07-25 19:21:03 +02:00
time.c LoongArch: Add steal time support in guest side 2024-04-12 20:59:07 +08:00
topology.c LoongArch: Fix some build warnings with W=1 2023-09-20 14:26:28 +08:00
traps.c LoongArch: Fix some build warnings with W=1 2023-09-20 14:26:28 +08:00
unaligned.c LoongArch: Delete unnecessary debugfs checking 2023-06-29 20:58:42 +08:00
unwind.c LoongArch: Set unwind stack type to unknown rather than set error flag 2024-01-20 11:51:42 +01:00
unwind_guess.c LoongArch: Strip guess unwinder out from prologue unwinder 2023-01-17 11:42:16 +08:00
unwind_prologue.c LoongArch: Set unwind stack type to unknown rather than set error flag 2024-01-20 11:51:42 +01:00
uprobes.c LoongArch: Add uprobes support 2023-06-29 20:58:44 +08:00
vdso.c LoongArch: Add support to clone a time namespace 2023-06-29 20:58:43 +08:00
vmlinux.lds.S LoongArch: Fix lockdep static memory detection 2023-09-20 14:26:28 +08:00