From nobody Mon Sep 16 19:31:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1684846226; cv=none; d=zohomail.com; s=zohoarc; b=JPq7pimw5hVwn11kZuz4j9FRnCER5SqSqDcJud/v7UMVC8DqRP6SCoVcxox7JzOqfhO03/PTzPwt5o3T/l5erFvjgP1Taxz2brw1D9mtMvkwSWADYd8R7ZelvHShn4HawS5Ye752tAcZqbxvX7GUwDNIrPQV6aMm3X8kArWCmpQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1684846226; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=O6c49RYzHWdVq3P3yg8J3+/TKBPogcBQppAeDcgAsBA=; b=QJIOOIUPCqrjEHSewL5zMKvJjpqP7uwgbtcU5ZfyFwgxm1FVQTFGktD+3m0/VvQPK58vrjP6vaJdTMifdySNpjvTL7EoGYSe8KdYg1gZYAjxTHiJgVlWaQoKfmDosUb/36VxKmIzlrfaBAO7YQaeC8OKkJtpxVlLRK04ewOw/lU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1684846226425457.38562038393854; Tue, 23 May 2023 05:50:26 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-141-dldExJELPTSi16lm4Nfe4g-1; Tue, 23 May 2023 08:50:21 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 79CF58030CD; Tue, 23 May 2023 12:50:18 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 644EB140E95D; Tue, 23 May 2023 12:50:18 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id E05F719465B3; Tue, 23 May 2023 12:50:12 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id BE82919465A0 for ; Tue, 23 May 2023 12:50:06 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id B158E2029F6E; Tue, 23 May 2023 12:50:06 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A941E20296C8 for ; Tue, 23 May 2023 12:50:06 +0000 (UTC) Received: from us-smtp-inbound-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8D397185A795 for ; Tue, 23 May 2023 12:50:06 +0000 (UTC) Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-274-VjZAolb8PeW8H9gy0aUrJQ-1; Tue, 23 May 2023 08:50:04 -0400 Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3078a3f3b5fso7298000f8f.0 for ; Tue, 23 May 2023 05:50:04 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id s3-20020a5d4243000000b002cea9d931e6sm10972862wrr.78.2023.05.23.05.50.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 05:50:02 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0FACF1FFC2; Tue, 23 May 2023 13:50:02 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684846225; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=O6c49RYzHWdVq3P3yg8J3+/TKBPogcBQppAeDcgAsBA=; b=irV842Vmn8lJM8zx3X+apEBQ0Sr5eZazQj0gkFFYdpHiTe1o4ubTG5zJ+aJ9hFpXnvMXfn xEA9XBwjvB6jgj1gkiw8JmsVSr8sHS236wlYD5IZcxnc76TM6MbxAbnScBYSaw8HSJaHRu XHNt5Q7Cf+Vd1A0qZhTezU0us4C88cE= X-MC-Unique: dldExJELPTSi16lm4Nfe4g-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: VjZAolb8PeW8H9gy0aUrJQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684846203; x=1687438203; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=O6c49RYzHWdVq3P3yg8J3+/TKBPogcBQppAeDcgAsBA=; b=LLBK5BFwPo7WaC33J/6ibsWCLS7DzrhlBnRQzFv5u0Jbuax/rDQJukrkUA8qpe9qLc s1/bRsTxcoHUk1HetnnRN0NwFkffnyEJc98MZ6N5zVxPBJ8wUAyKQPNf7TISm00hoq+G hH9WdoagNksbd93W6LlrttiwSDFaO9tXYPEQbg50AGTUG8GpPJF1Vp5DtS9eyoefM1vY GIwRX/GUvLFdwLFVPpJ5+3WAUXUG3ZRW6qC3yOamHNj3+uEmXTRqcQn9aTunbVYae01B tfnbOE2fkcaO0uYZVDlSYHTnLZZr2SL1GIBqlzy4oFwprxFx3FqeI0dATDo5ptMirQu8 dPAA== X-Gm-Message-State: AC+VfDwKJSw2AXpLlBJXYHvyN4A3BglLkGn3R8+cSPE/qM901PWB69oN DP5REeYsORWtzJyxmy2ryPWi8g== X-Google-Smtp-Source: ACHHUZ4XAznovqbdL4ofYv9FPd+H5uvyDjjJaACFBaiR6IadmiO26F8yjGk+Zlny3Iinj750sF6osA== X-Received: by 2002:a5d:40c2:0:b0:309:839:be3e with SMTP id b2-20020a5d40c2000000b003090839be3emr9870522wrq.33.1684846203793; Tue, 23 May 2023 05:50:03 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org, Stefan Hajnoczi Subject: [PATCH v4 09/10] hw/9pfs: use qemu_xxhash4 Date: Tue, 23 May 2023 13:49:59 +0100 Message-Id: <20230523125000.3674739-10-alex.bennee@linaro.org> In-Reply-To: <20230523125000.3674739-1-alex.bennee@linaro.org> References: <20230523125000.3674739-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eduardo Habkost , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , libvir-list@redhat.com, Michael Roth , Riku Voipio , Christian Schoenebeck , Markus Armbruster , Greg Kurz , Yanan Wang , Marcel Apfelbaum , Kyle Evans , Paolo Bonzini , Richard Henderson , Eric Blake , Warner Losh Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: linaro.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1684846228037100001 No need to pass zeros as we have helpers that do that for us. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Christian Schoenebeck Reviewed-by: Stefan Hajnoczi Reviewed-by: Richard Henderson Message-Id: <20230503091756.1453057-10-alex.bennee@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20230505155336.137393-10-alex.bennee@linaro.org> --- hw/9pfs/9p.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c index 9621ec1341..991645adca 100644 --- a/hw/9pfs/9p.c +++ b/hw/9pfs/9p.c @@ -738,15 +738,14 @@ static VariLenAffix affixForIndex(uint64_t index) return invertAffix(&prefix); /* convert prefix to suffix */ } =20 -/* creative abuse of tb_hash_func7, which is based on xxhash */ static uint32_t qpp_hash(QppEntry e) { - return qemu_xxhash7(e.ino_prefix, e.dev, 0, 0, 0); + return qemu_xxhash4(e.ino_prefix, e.dev); } =20 static uint32_t qpf_hash(QpfEntry e) { - return qemu_xxhash7(e.ino, e.dev, 0, 0, 0); + return qemu_xxhash4(e.ino, e.dev); } =20 static bool qpd_cmp_func(const void *obj, const void *userp) --=20 2.39.2