From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8A357A0032; Fri, 22 Jul 2022 16:01:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6CBD44021E; Fri, 22 Jul 2022 16:01:22 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 2BD2640156 for ; Fri, 22 Jul 2022 16:01:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658498480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=G2VLbK0vLuNaJ/FAX1Mm0iAn++TORvRMd9nGQmU9A4o=; b=b0dVr4v4/XA7/P4SYuEJ4mU0QIGPqJ1RQ5ELONtyPwWchtowVDY4LYC8L0hHuMy6HSQhsZ 2Vf2LYtT0QZOY9Af3jVQdV6Y65+bfEJ6EBnRFQeKtP/hTMp/gkzgRfMWmS9x6rrzfG295i 55QDrEOguzdbRVZw4tReJNE+wZ8MK1g= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-408-izhL6VJxPpe5oGjNfryo8Q-1; Fri, 22 Jul 2022 10:01:09 -0400 X-MC-Unique: izhL6VJxPpe5oGjNfryo8Q-1 Received: by mail-lj1-f200.google.com with SMTP id h21-20020a2e9ed5000000b0025d516572f4so1053345ljk.12 for ; Fri, 22 Jul 2022 07:01:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=G2VLbK0vLuNaJ/FAX1Mm0iAn++TORvRMd9nGQmU9A4o=; b=ZxtRiO8TjnCDGsAxBqecK2kKx3hb9Nt6gi12pzUV2+h4M9cizR4D8vJH1P7vvA3m5R 8IrQO6g3LWBDpltwdfT681d379O9J6XzK3D+OTEGtKg2oqHp+fCMlZ9R5ASWsZQZnwUL UwR5gnj7vkikJyykpG2FuNPmiwWeQi/BZgH6wG/Jmse1wPNZurSHuCVxfK50HBkDjMUW +zoXUdBgrNKjVAi2EE739MLrdX/EmxdSO046SdkURmgQCR90vVVnNPSojq9h1pU3CZRU t9Fhnrh6y8a8uc2oxrxfAreFwH435/7w4uZPtYRg5nDAJZqSn/9LbnQru4LA5oI61bu+ MVIg== X-Gm-Message-State: AJIora8wgqPRhCDfv+gEthCUOY/5EwxNkzh8BkDQrwpnOzq2jP9D0XI8 C4R9vr02APcGfg0WCaV5zb8HtdiYS3N2pvJooXURX4B0BUpngWyDm/Ap1FvXTgxqg/PFdFEEH0h WAKP2kVv4u6PhQRKfRJU= X-Received: by 2002:a2e:a78a:0:b0:25d:767a:dc00 with SMTP id c10-20020a2ea78a000000b0025d767adc00mr61095ljf.159.1658498467918; Fri, 22 Jul 2022 07:01:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vxMqm7EVmMEDinzI04aO4ziWvFkeeubeM1caSwJlw6T/CksgSiDyRrhuhKqmONNdUrX3WHHbdRyHEtOXOZMlY= X-Received: by 2002:a2e:a78a:0:b0:25d:767a:dc00 with SMTP id c10-20020a2ea78a000000b0025d767adc00mr61089ljf.159.1658498467659; Fri, 22 Jul 2022 07:01:07 -0700 (PDT) MIME-Version: 1.0 References: <20220722135320.109269-1-david.marchand@redhat.com> In-Reply-To: <20220722135320.109269-1-david.marchand@redhat.com> From: David Marchand Date: Fri, 22 Jul 2022 16:00:56 +0200 Message-ID: Subject: Re: [PATCH 1/2] vhost: keep a reference to virtqueue index To: dev , Maxime Coquelin Cc: Chenbo Xia Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, Jul 22, 2022 at 3:54 PM David Marchand wrote: > > Having a back reference to the index of the vq in the dev->virtqueue[] > array makes it possible to unify the internal API with only passing dev > and vq. > It also allows displaying the vq index in log messages. Fwiw, this conflicts with the lock annotations I intend to finish for 22.11. -- David Marchand