Re: [PATCH] svm: Fix AVIC DFR and LDR handling

From: Paolo Bonzini
Date: Wed Jan 30 2019 - 11:10:17 EST


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