From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTP id B8E7A5A0271 for ; Tue, 6 Feb 2024 15:28:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707229694; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ECoK9j1tehc0DRI14Omqd0OI+/Sq6zlEaj8tuZ/d1xA=; b=e6AJuTU9CNNA3OH8UQctjFNBFUUjk6jcbCK8YsAYnaIFCqwtkz3BZLhsP+/SpDPvZDlxs/ h5H1q80OF3ZaYuumlTgwOZ3HUH5PTSfKip1H52bS9upb26jq4KKIyevdHaaTfzvq4RLW/E z23vbmBRy4beO+TtRZfSY32+PUViBh8= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-171-yoGFKXlONKWWzmxUZx21mQ-1; Tue, 06 Feb 2024 09:28:13 -0500 X-MC-Unique: yoGFKXlONKWWzmxUZx21mQ-1 Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-785955e985cso27688985a.3 for ; Tue, 06 Feb 2024 06:28:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707229693; x=1707834493; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ECoK9j1tehc0DRI14Omqd0OI+/Sq6zlEaj8tuZ/d1xA=; b=tBeq5/5X/H7jp5GZljtCkISIBshSr5lbKBB/FNDE/J3phlwcjRnuqL6DGhX0FLOc+a hK0j8v7EPpZU7Zn59uUAe5AIMcNZHmF1ktQOL2mRWRUiEWw8Zek+1j2RA+vDpsASywrT omEvcwxf5KsNnhbr3p/EyoruirJvdT/po9+NZn3SxQig+ufU7MlPFSE55UdUMHTWfpDc HtVFUSELFh/rC1KssGyFYrVxxbacFUFKexfz3odp+8K0CY3r9Vmg9RXyGJ2KeiFnJECd ACoUFAh2l1N0F40nFFBVuooh9JM9jVhHRAxlcS7M8kAlZbrm0GaUAx+SdSmh3rKTvXkc BcWw== X-Gm-Message-State: AOJu0YzjiV8jTDlUHoIm9Fk5R2oKtP/B4iQOHr+PpERwZstA6aLVeGNB I1uAGqO9hkmo9nCsxJ+nme5KS9cJhZUZTSl23I84zuPYYbqosIuDXhMOLhP5SxO91uNA+mCb/YM QKoRCWrJkH8uP5hDUGATcsqTGh0VYF/ANSz3KOlJpVC/iYjmNDA== X-Received: by 2002:a0c:f210:0:b0:68c:a3ef:18a1 with SMTP id h16-20020a0cf210000000b0068ca3ef18a1mr2136149qvk.54.1707229693015; Tue, 06 Feb 2024 06:28:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFTJBpODB+8XL78zC3Qwwc4kylrZokWG3OmvfU6HUGkq1l5bXw1gH6KKiy3EyKpga8PZBdUBw== X-Received: by 2002:a0c:f210:0:b0:68c:a3ef:18a1 with SMTP id h16-20020a0cf210000000b0068ca3ef18a1mr2136136qvk.54.1707229692493; Tue, 06 Feb 2024 06:28:12 -0800 (PST) Received: from [192.168.100.30] ([82.142.8.70]) by smtp.gmail.com with ESMTPSA id ow1-20020a0562143f8100b0068caf764281sm903852qvb.39.2024.02.06.06.28.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Feb 2024 06:28:12 -0800 (PST) Message-ID: <0f7bdf00-58cb-4207-94f5-b13d34b1177f@redhat.com> Date: Tue, 6 Feb 2024 15:28:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 01/24] iov: add some functions to manage iovec To: David Gibson References: <20240202141151.3762941-1-lvivier@redhat.com> <20240202141151.3762941-2-lvivier@redhat.com> From: Laurent Vivier In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 Message-ID-Hash: LN5ZSO2FHELEDCMRYVOK7LAEEOE5J4PL X-Message-ID-Hash: LN5ZSO2FHELEDCMRYVOK7LAEEOE5J4PL X-MailFrom: lvivier@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: T24gMi81LzI0IDA2OjU3LCBEYXZpZCBHaWJzb24gd3JvdGU6DQo+IE9uIEZyaSwgRmViIDAyLCAy MDI0IGF0IDAzOjExOjI4UE0gKzAxMDAsIExhdXJlbnQgVml2aWVyIHdyb3RlOg0KPiAuLi4NCj4+ IGRpZmYgLS1naXQgYS9pb3YuYyBiL2lvdi5jDQo+PiBuZXcgZmlsZSBtb2RlIDEwMDY0NA0KPj4g aW5kZXggMDAwMDAwMDAwMDAwLi4zOGE4ZTc1NjYwMjENCj4+IC0tLSAvZGV2L251bGwNCj4+ICsr KyBiL2lvdi5jDQo+Pg0KPj4gKwlmb3IgKGkgPSAwLCBkb25lID0gMDsgKG9mZnNldCB8fCBkb25l IDwgYnl0ZXMpICYmIGkgPCBpb3ZfY250OyBpKyspIHsNCj4gTm90IGltbWVkaWF0ZWx5IHNlZWlu ZyB3aHkgeW91IG5lZWQgdGhlICdvZmZzZXQgfHwnIHBhcnQgb2YgdGhlIGNvbmRpdGlvbi4NCg0K SW4gZmFjdCB0aGUgbG9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