aboutsummaryrefslogtreecommitdiff
path: root/target-i386/kvm.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2011-07-29 15:36:43 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2011-09-15 16:39:32 -0300
commit1354869c380cf4560fa3f0520e914cb5ee380ac8 (patch)
treeda76e4d2063b81905a66a8446d9301bd910ee856 /target-i386/kvm.c
parent1bcef683bf840a928d633755031ac572d5fdb851 (diff)
downloadqemu-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 'target-i386/kvm.c')
-rw-r--r--target-i386/kvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index ead34ea..b6eef04 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -1130,7 +1130,7 @@ static int kvm_get_msrs(CPUState *env)
if (!env->tsc_valid) {
msrs[n++].index = MSR_IA32_TSC;
- env->tsc_valid = !vm_running;
+ env->tsc_valid = !runstate_is_running();
}
#ifdef TARGET_X86_64