Commit Message

We can know the guest is panicked when the guest runs on xen.
But we do not have such feature on kvm.
Another purpose of this feature is: management app(for example:
libvirt) can do auto dump when the guest is panicked. If management
app does not do auto dump, the guest's user can do dump by hand if
he sees the guest is panicked.
We have three solutions to implement this feature:
1. use vmcall
2. use I/O port
3. use virtio-serial.
We have decided to avoid touching hypervisor. The reason why I choose
choose the I/O port is:
1. it is easier to implememt
2. it does not depend any virtual device
3. it can work when starting the kernel
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
---
arch/ia64/kvm/irq.h | 19 +++++++++++++
arch/powerpc/include/asm/kvm_para.h | 18 ++++++++++++
arch/s390/include/asm/kvm_para.h | 19 +++++++++++++
arch/x86/include/asm/kvm_para.h | 20 ++++++++++++++
arch/x86/include/uapi/asm/kvm_para.h | 2 ++
arch/x86/kernel/kvm.c | 53 ++++++++++++++++++++++++++++++++++++
include/linux/kvm_para.h | 18 ++++++++++++
include/uapi/linux/kvm_para.h | 6 ++++
kernel/panic.c | 4 +++
9 files changed, 159 insertions(+)