diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-08 21:47:11 -0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-03-09 15:16:19 +0200 |
commit | 69dd59a66aaf56d1e8e4c96d0a0923c9cf8f79a0 (patch) | |
tree | e310e5b8bbdacf1870962bc4aedcb04d40a0b15d /kvm-tpr-opt.c | |
parent | ab215240376b3c425b83e95c249eca159211d6b5 (diff) |
kvm-tpr-opt: rename env->update_vapic
And remove the confusingly named enable_vapic function.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'kvm-tpr-opt.c')
-rw-r--r-- | kvm-tpr-opt.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/kvm-tpr-opt.c b/kvm-tpr-opt.c index 6a607f269..429c2f43f 100644 --- a/kvm-tpr-opt.c +++ b/kvm-tpr-opt.c @@ -226,17 +226,11 @@ int kvm_tpr_enable_vapic(CPUState *env) kvm_enable_vapic(env, vapic_phys + (pcr_cpu << 7)); cpu_physical_memory_rw(vapic_phys + (pcr_cpu << 7) + 4, &one, 1, 1); - env->update_vapic = 0; + env->kvm_vcpu_update_vapic = 0; bios_enabled = 1; return 1; } -static int enable_vapic(CPUState *env) -{ - env->update_vapic = 1; - return 1; -} - static void patch_call(CPUState *env, uint64_t rip, uint32_t target) { uint32_t offset; @@ -334,7 +328,7 @@ static int tpr_load(QEMUFile *f, void *s, int version_id) CPUState *env = first_cpu->next_cpu; for (env = first_cpu; env != NULL; env = env->next_cpu) - enable_vapic(env); + env->kvm_vcpu_update_vapic = 1; } return 0; |