[Devel] [PATCH rh7 0/7] Hyper-V pvpanic equivalent
Andrey Smetanin
asmetanin at virtuozzo.com
Tue Sep 29 03:01:22 PDT 2015
Windows 2012 guests can notify hypervisor about occurred guest crash
(Windows bugcheck(BSOD)) by writing specific Hyper-V msrs. This patch does
handling of this MSR's by KVM and sending notification to user space that
allows to gather Windows guest crash dump by QEMU/LIBVIRT.
The idea is to provide functionality equal to pvpanic device without
QEMU guest agent for Windows.
The idea is borrowed from Linux HyperV bus driver and validated against
Windows 2k12.
Andrey Smetanin (6):
kvm: add hyper-v crash msrs values
kvm/x86: move Hyper-V MSR's/hypercall code into hyperv.c file
kvm: introduce vcpu_debug = kvm_debug + vcpu context
kvm/x86: Move Hyper-V specific fields into new per vm/vcpu Hyper-V
structures
kvm/x86: added hyper-v crash msrs into kvm hyperv context
kvm/x86: add sending hyper-v crash notification to user space
Anup Patel (1):
KVM: Add KVM_EXIT_SYSTEM_EVENT to user space API header
Documentation/virtual/kvm/api.txt | 16 ++
arch/x86/include/asm/kvm_host.h | 24 ++-
arch/x86/include/uapi/asm/hyperv.h | 10 +
arch/x86/kvm/Makefile | 3 +-
arch/x86/kvm/hyperv.c | 371 +++++++++++++++++++++++++++++++++++++
arch/x86/kvm/hyperv.h | 32 ++++
arch/x86/kvm/lapic.h | 2 +-
arch/x86/kvm/x86.c | 286 ++--------------------------
arch/x86/kvm/x86.h | 9 +
include/linux/kvm_host.h | 4 +
include/uapi/linux/kvm.h | 9 +
11 files changed, 489 insertions(+), 277 deletions(-)
create mode 100644 arch/x86/kvm/hyperv.c
create mode 100644 arch/x86/kvm/hyperv.h
--
1.8.3.1
More information about the Devel
mailing list