]> 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)
commitfb1822eb6dba3e53232e474a733604c104eaec00
tree454bfdea72661a0e3e4295a9ee2f9a12dc63b815
parenta78f8fe1e56d0a619fce51c5c3d3bac8bbfa3933
kvm: x86: fix apic_base enable check

Commit 59fd1f5f9c97b 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