From: Paolo Bonzini Subject: Re: [PATCH] svm: Fix AVIC DFR and LDR handling Date: Wed, 30 Jan 2019 17:10:06 +0100 Message-ID: <56dc4a9d-434c-7fec-f317-b0cc792fbb53@redhat.com> References: <20190129080813.40689-1-suravee.suthikulpanit@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "joro@8bytes.org" , "rkrcmar@redhat.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "hpa@zytor.com" To: "Suthikulpanit, Suravee" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "x86@kernel.org" Return-path: In-Reply-To: <20190129080813.40689-1-suravee.suthikulpanit@amd.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 29/01/19 09:08, Suthikulpanit, Suravee wrote: > +static void avic_inv_logical_id_entry(struct kvm_vcpu *vcpu) > +{ > + struct vcpu_svm *svm = to_svm(vcpu); > + bool flat = svm->dfr_reg == APIC_DFR_FLAT; > + u32 *entry = avic_get_logical_id_entry(vcpu, svm->ldr_reg, flat); > + > + if (entry) > + WRITE_ONCE(*entry, (u32) ~AVIC_LOGICAL_ID_ENTRY_VALID_MASK); > +} > + Renamed the function with s/inv/invalidate/ and queued, thanks. Paolo