diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2011-07-29 15:36:43 -0300 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2011-09-15 16:39:32 -0300 |
commit | 1354869c380cf4560fa3f0520e914cb5ee380ac8 (patch) | |
tree | da76e4d2063b81905a66a8446d9301bd910ee856 /hw/kvmclock.c | |
parent | 1bcef683bf840a928d633755031ac572d5fdb851 (diff) | |
download | qemu-1354869c380cf4560fa3f0520e914cb5ee380ac8.zip qemu-1354869c380cf4560fa3f0520e914cb5ee380ac8.tar.gz qemu-1354869c380cf4560fa3f0520e914cb5ee380ac8.tar.bz2 |
Drop the vm_running global variable
Use runstate_is_running() instead, which is introduced by this commit.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hw/kvmclock.c')
-rw-r--r-- | hw/kvmclock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/kvmclock.c b/hw/kvmclock.c index 88961be..5388bc4 100644 --- a/hw/kvmclock.c +++ b/hw/kvmclock.c @@ -46,7 +46,7 @@ static void kvmclock_pre_save(void *opaque) * it on next vmsave (which would return a different value). Will be reset * when the VM is continued. */ - s->clock_valid = !vm_running; + s->clock_valid = !runstate_is_running(); } static int kvmclock_post_load(void *opaque, int version_id) |