[v2 PATCH 0/4] x86/kvm: Virtual suspend time injection support
From: Hikaru Nishida
Date: Fri Aug 06 2021 - 06:07:37 EST
Hi,
This patch series adds virtual suspend time injection support to KVM.
(It is an updated version of the following series.)
https://lore.kernel.org/kvm/20210426090644.2218834-1-hikalium@xxxxxxxxxxxx/
Changes to v1:
- Using IRQ instead of polling to detect the host's suspension.
- Removed unused arg "updated" from kvm_write_suspend_time()
- Improved comments and commit messages.
Please take a look again.
Thanks,
Hikaru Nishida
Hikaru Nishida (4):
x86/kvm: Reserve KVM_FEATURE_HOST_SUSPEND_TIME and
MSR_KVM_HOST_SUSPEND_TIME
x86/kvm: Add definitions for virtual suspend time injection
x86/kvm: Add host side support for virtual suspend time injection
x86/kvm: Add guest side support for virtual suspend time injection
Documentation/virt/kvm/cpuid.rst | 3 +
Documentation/virt/kvm/msr.rst | 30 ++++++++
arch/x86/Kconfig | 13 ++++
arch/x86/include/asm/idtentry.h | 4 +
arch/x86/include/asm/irq_vectors.h | 7 +-
arch/x86/include/asm/kvm_host.h | 5 ++
arch/x86/include/asm/kvm_para.h | 9 +++
arch/x86/include/uapi/asm/kvm_para.h | 6 ++
arch/x86/kernel/kvmclock.c | 40 ++++++++++
arch/x86/kvm/Kconfig | 13 ++++
arch/x86/kvm/cpuid.c | 4 +
arch/x86/kvm/x86.c | 109 ++++++++++++++++++++++++++-
include/linux/kvm_host.h | 8 ++
include/linux/timekeeper_internal.h | 4 +
kernel/time/timekeeping.c | 37 +++++++++
15 files changed, 290 insertions(+), 2 deletions(-)
--
2.32.0.605.g8dce9f2422-goog