[Devel] [PATCH RHEL7 COMMIT] ms/kvm: add hyper-v crash msrs values
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Oct 2 01:17:37 PDT 2015
The commit is pushed to "branch-rh7-3.10.0-229.7.2.vz7.8.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-229.7.2.vz7.8.2
------>
commit a838d5278c5d320c75333abb5cefe00aea936d4c
Author: Andrey Smetanin <asmetanin at virtuozzo.com>
Date: Fri Oct 2 12:17:37 2015 +0400
ms/kvm: add hyper-v crash msrs values
Patchset description:
Hyper-V pvpanic equivalent
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
============================
This patch description:
Added Hyper-V crash msrs values - HV_X64_MSR_CRASH*.
ms commit - a88464a8b0ffb2f8dfb69d3ab982169578b50f22
Signed-off-by: Andrey Smetanin <asmetanin at virtuozzo.com>
Signed-off-by: Denis V. Lunev <den at openvz.org>
Reviewed-by: Peter Hornyack <peterhornyack at google.com>
CC: Paolo Bonzini <pbonzini at redhat.com>
CC: Gleb Natapov <gleb at kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
---
arch/x86/include/uapi/asm/hyperv.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/x86/include/uapi/asm/hyperv.h b/arch/x86/include/uapi/asm/hyperv.h
index 462efe7..1808792 100644
--- a/arch/x86/include/uapi/asm/hyperv.h
+++ b/arch/x86/include/uapi/asm/hyperv.h
@@ -187,6 +187,16 @@
#define HV_X64_MSR_SINT14 0x4000009E
#define HV_X64_MSR_SINT15 0x4000009F
+/* Hyper-V guest crash notification MSR's */
+#define HV_X64_MSR_CRASH_P0 0x40000100
+#define HV_X64_MSR_CRASH_P1 0x40000101
+#define HV_X64_MSR_CRASH_P2 0x40000102
+#define HV_X64_MSR_CRASH_P3 0x40000103
+#define HV_X64_MSR_CRASH_P4 0x40000104
+#define HV_X64_MSR_CRASH_CTL 0x40000105
+#define HV_X64_MSR_CRASH_CTL_NOTIFY (1ULL << 63)
+#define HV_X64_MSR_CRASH_PARAMS \
+ (1 + (HV_X64_MSR_CRASH_P4 - HV_X64_MSR_CRASH_P0))
#define HV_X64_MSR_HYPERCALL_ENABLE 0x00000001
#define HV_X64_MSR_HYPERCALL_PAGE_ADDRESS_SHIFT 12
More information about the Devel
mailing list