From: Marcelo Tosatti <[email protected]> 1. bios_enabled must already be set when enable_vapic is called. 2. kvm_tpr_vcpu_start is called during vcpu creation, when bios_enabled is always zero.
Signed-off-by: Marcelo Tosatti <[email protected]> Signed-off-by: Avi Kivity <[email protected]> diff --git a/kvm-tpr-opt.c b/kvm-tpr-opt.c index ad60ce1..c7439d4 100644 --- a/kvm-tpr-opt.c +++ b/kvm-tpr-opt.c @@ -250,7 +250,6 @@ int kvm_tpr_enable_vapic(CPUState *env) static int enable_vapic(CPUState *env) { - bios_enabled = 1; env->update_vapic = 1; return 1; } @@ -322,8 +321,6 @@ void kvm_tpr_access_report(CPUState *env, uint64_t rip, int is_write) void kvm_tpr_vcpu_start(CPUState *env) { kvm_enable_tpr_access_reporting(env); - if (bios_enabled) - kvm_tpr_enable_vapic(env); } static void tpr_save(QEMUFile *f, void *s) -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
