kvm-tpr-opt: clean up usage of bios_enabled
commit6d05fec72a3b94eba4318c3a2811dacecf31a6d2
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 9 Mar 2010 00:47:08 +0000 (8 21:47 -0300)
committerAvi Kivity <avi@redhat.com>
Tue, 9 Mar 2010 13:16:19 +0000 (9 15:16 +0200)
tree0b66eefa6e374c56e88f7087a3fd7c4c1d28a7c1
parent561e9f49106f17352a734e9cf3751b469573f789
kvm-tpr-opt: clean up usage of bios_enabled

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 <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
kvm-tpr-opt.c