diff mbox

[4/7] kvm-tpr-opt: clean up usage of bios_enabled

Message ID 20100309004834.722887121@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Marcelo Tosatti March 9, 2010, 12:47 a.m. UTC
None
diff mbox

Patch

Index: qemu-kvm-tpr/kvm-tpr-opt.c
===================================================================
--- qemu-kvm-tpr.orig/kvm-tpr-opt.c
+++ qemu-kvm-tpr/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
 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)