qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 03/12] hw/core: introduce IOMMUSVAContext for


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v3 03/12] hw/core: introduce IOMMUSVAContext for virt-SVA
Date: Fri, 2 Mar 2018 16:13:17 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 01/03/2018 11:33, Liu, Yi L wrote:
> +void iommu_sva_notifier_unregister(IOMMUSVAContext *sva_ctx,
> +                                   IOMMUSVANotifier *notifier)
> +{
> +    IOMMUSVANotifier *cur, *next;
> +
> +    QLIST_FOREACH_SAFE(cur, &sva_ctx->sva_notifiers, node, next) {
> +        if (cur == notifier) {
> +            QLIST_REMOVE(cur, node);
> +            break;
> +        }
> +    }
> +}

It's enough to just do QLIST_REMOVE(notifier, node) here.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]