]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: in-kernel LAPIC save and restore support
authorEddie Dong <eddie.dong@intel.com>
Thu, 6 Sep 2007 09:22:56 +0000 (12:22 +0300)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:25 +0000 (10:18 +0200)
commit1be9f877dbf9e522f71c309833be746fa6e78c65
treedc3596b92981332cee0749004b7076a7d52a90b1
parent7792432e7470bd0ffc59f217c3d86eebb4abc49f
KVM: in-kernel LAPIC save and restore support

This patch adds a new vcpu-based IOCTL to save and restore the local
apic registers for a single vcpu. The kernel only copies the apic page as
a whole, extraction of registers is left to userspace side. On restore, the
APIC timer is restarted from the initial count, this introduces a little
delay, but works fine.

Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com>
Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/irq.h
drivers/kvm/kvm_main.c
drivers/kvm/lapic.c
include/linux/kvm.h