===================================================================
@@ -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
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;
===================================================================
@@ -971,7 +971,7 @@ void kvm_arch_load_regs(CPUState *env, i
kvm_load_lapic(env);
}
if (level == KVM_PUT_FULL_STATE) {
- if (env->update_vapic)
+ if (env->kvm_vcpu_update_vapic)
kvm_tpr_enable_vapic(env);
}
if (kvm_irqchip_in_kernel()) {
===================================================================
@@ -735,7 +735,7 @@ typedef struct CPUX86State {
uint16_t fptag_vmstate;
uint16_t fpregs_format_vmstate;
- int update_vapic;
+ int kvm_vcpu_update_vapic;
} CPUX86State;
CPUX86State *cpu_x86_init(const char *cpu_model);