[PATCH v3 0/5] Export offsets of VMCS fields as note information for kdump

2012-06-27 Thread Yanfei Zhang
This patch set exports offsets of VMCS fields as note information for kdump. We call it VMCSINFO. The purpose of VMCSINFO is to retrieve runtime state of guest machine image, such as registers, in host machine's crash dump as VMCS format. The problem is that VMCS internal is hidden by Intel in its

[PATCH v3 1/5] x86: Add helper variables and functions to hold VMCSINFO

2012-06-27 Thread Yanfei Zhang
This patch provides a set of variables to hold the VMCSINFO and also some helper functions to help fill the VMCSINFO. Signed-off-by: zhangyanfei zhangyan...@cn.fujitsu.com --- arch/x86/include/asm/vmcsinfo.h | 219 ++ arch/x86/include/asm/vmx.h | 158 +

[PATCH v3 2/5] KVM: Export symbols for module vmcsinfo-intel

2012-06-27 Thread Yanfei Zhang
A new module named vmcsinfo-intel is used to fill VMCSINFO. And this module depends on kvm-intel and kvm module. So we should export some symbols of kvm-intel and kvm module that are needed by vmcsinfo-intel. Signed-off-by: zhangyanfei zhangyan...@cn.fujitsu.com --- arch/x86/include/asm/vmx.h |

[PATCH v3 4/5] Sysfs: Export VMCSINFO via sysfs

2012-06-27 Thread Yanfei Zhang
This patch export offsets of fields via /sys/devices/cpu/vmcs/. Individual offsets are contained in subfiles named by the filed's encoding, e.g.: /sys/devices/cpu/vmcs/0800 Signed-off-by: zhangyanfei zhangyan...@cn.fujitsu.com --- drivers/base/core.c | 13 + 1 files changed, 13

[PATCH v3 5/5] Documentation: Add ABI entry for vmcs sysfs interface

2012-06-27 Thread Yanfei Zhang
Signed-off-by: zhangyanfei zhangyan...@cn.fujitsu.com --- Documentation/ABI/testing/sysfs-devices-cpu-vmcs | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-devices-cpu-vmcs diff --git

Re: [PATCH v3 4/5] Sysfs: Export VMCSINFO via sysfs

2012-06-27 Thread Greg KH
On Wed, Jun 27, 2012 at 04:54:54PM +0800, Yanfei Zhang wrote: This patch export offsets of fields via /sys/devices/cpu/vmcs/. Individual offsets are contained in subfiles named by the filed's encoding, e.g.: /sys/devices/cpu/vmcs/0800 Signed-off-by: zhangyanfei zhangyan...@cn.fujitsu.com