]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
v2: properly save kvm system time msr registers
authorGlauber Costa <glommer@redhat.com>
Thu, 22 Oct 2009 12:26:56 +0000 (10:26 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 12 Dec 2009 14:17:33 +0000 (08:17 -0600)
commit0014803d23acaccc15b31180f06784f5d6edfd3a
tree559b09e125cbcfe842e37ec4087ab93398fb1938
parent5118f7b47cdb388f7411713d56865a0e610d0abd
v2: properly save kvm system time msr registers

Currently, the msrs involved in setting up pvclock are not saved over
migration and/or save/restore. This patch puts their value in special
fields in our CPUState, and deal with them using vmstate.

kvm also has to account for it, by including them in the msr list
for the ioctls.

This is a backport from qemu-kvm.git

[v2: sucessfully build without kerneldir ]

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 1a03675db146dfc760b3b48b3448075189f142cc)
target-i386/cpu.h
target-i386/kvm.c
target-i386/machine.c