svm/avic: Fix invalidate logical APIC id entry
authorSuthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com>
Tue, 26 Mar 2019 03:57:37 +0000 (03:57 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Apr 2019 13:37:32 +0000 (15:37 +0200)
commite44e3eacccfd2294a1ce279f68452b1635d7fa82
treeb1d83b0908bb318449d120cfad034d220ef2d16e
parent4a58038b9e420276157785afa0a0bbb4b9bc2265
svm/avic: Fix invalidate logical APIC id entry

Only clear the valid bit when invalidate logical APIC id entry.
The current logic clear the valid bit, but also set the rest of
the bits (including reserved bits) to 1.

Fixes: 98d90582be2e ('svm: Fix AVIC DFR and LDR handling')
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c