]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Refactor hypercall infrastructure (v3)
authorAnthony Liguori <aliguori@us.ibm.com>
Mon, 17 Sep 2007 19:57:50 +0000 (14:57 -0500)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:52:46 +0000 (17:52 +0200)
commitaeba53aa560c5217363f551ebe889f7a68ff04eb
tree6ac8854faf3db2bc499e2c105fdfdab95df52170
parentc42822ca3847e204e7956c3fde254139e2e2ecee
KVM: Refactor hypercall infrastructure (v3)

This patch refactors the current hypercall infrastructure to better
support live migration and SMP.  It eliminates the hypercall page by
trapping the UD exception that would occur if you used the wrong hypercall
instruction for the underlying architecture and replacing it with the right
one lazily.

A fall-out of this patch is that the unhandled hypercalls no longer trap to
userspace.  There is very little reason though to use a hypercall to
communicate with userspace as PIO or MMIO can be used.  There is no code
in tree that uses userspace hypercalls.

[avi: fix #ud injection on vmx]

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
drivers/kvm/svm.c
drivers/kvm/vmx.c
drivers/kvm/x86_emulate.c
include/linux/kvm_para.h