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 /target-i386/kvm.c | |
parent | 1bcef683bf840a928d633755031ac572d5fdb851 (diff) | |
download | qemu-1354869c380cf4560fa3f0520e914cb5ee380ac8.tar.gz qemu-1354869c380cf4560fa3f0520e914cb5ee380ac8.tar.bz2 qemu-1354869c380cf4560fa3f0520e914cb5ee380ac8.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c index ead34ea38d..b6eef047bf 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 |