kvm: x86: fix apic_base enable check
authorAndrew Jones <drjones@redhat.com>
Wed, 15 Jan 2014 12:39:59 +0000 (13:39 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jan 2014 12:42:14 +0000 (13:42 +0100)
commit0dce7cd67fd9055c4a2ff278f8af1431e646d346
tree454bfdea72661a0e3e4295a9ee2f9a12dc63b815
parent7e22e91102c6b9df7c4ae2168910e19d2bb14cd6
kvm: x86: fix apic_base enable check

Commit e66d2ae7c67bd moved the assignment
vcpu->arch.apic_base = value above a condition with
(vcpu->arch.apic_base ^ value), causing that check
to always fail. Use old_value, vcpu->arch.apic_base's
old value, in the condition instead.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c