]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2eb929af7b8b0d8912a5b3c3c7dbd197f54b400
tree454bfdea72661a0e3e4295a9ee2f9a12dc63b815
parentf1f6da94d81a8d49f4fd56ccfa5cee67e895df9f
kvm: x86: fix apic_base enable check

Commit d3704bf6d0d1c 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