From nobody Wed Jan 15 11:10:39 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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.133.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=1685120062; cv=none; d=zohomail.com; s=zohoarc; b=c1lilM4Xv1YxQtvV8f2PqiP5qykt52n5wpD11P+Ee0GLju6InzfxE9wVmpKL790AocWTvtX0F0UIm6R+okuxxmuj0McbdJnrnS9x0ikxZKNAcgyNRpnAZsBVGZKcmMoC9hHVN+mBqRz9O0GD/oiAgURzr8f0DdPj7VkIe8U89NM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1685120062; 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=golKvSYvzbphYFdgYW/zJabTWZL4ziquNJ4trhfkWb0=; b=NILBe83/hiKpvukuCID87Dk45JLyz4Hu63iHUVc8GmIN21BN35wkghM7wDvktedMfJmet4jzyiZXPS6o7BZTzdhkxbneLng7IAt1UW51AkzUyqSIu0Ap8UwgX9zTWPlLGWeAqYFYll+/ICf8ie9jmtC/GFvif/tTp3HTxURJWPg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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.133.124]) by mx.zohomail.com with SMTPS id 1685120062620592.4547130198195; Fri, 26 May 2023 09:54:22 -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-320-ngA9ZwAKOW6ClbJXOmSRJA-1; Fri, 26 May 2023 12:54:19 -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 9B6808038E8; Fri, 26 May 2023 16:54:13 +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 79ABA140E965; Fri, 26 May 2023 16:54:13 +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 692DE1946A46; Fri, 26 May 2023 16:54:12 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id B09A51946A44 for ; Fri, 26 May 2023 16:54:10 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 7F54640CFD46; Fri, 26 May 2023 16:54:10 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast07.extmail.prod.ext.rdu2.redhat.com [10.11.55.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 773D540CFD45 for ; Fri, 26 May 2023 16:54:10 +0000 (UTC) Received: from us-smtp-inbound-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (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 5A9E03C14119 for ; Fri, 26 May 2023 16:54:10 +0000 (UTC) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-605-ro3DVSveOPO-7225WsBsyA-2; Fri, 26 May 2023 12:54:08 -0400 Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-3f6e72a1464so7300495e9.1 for ; Fri, 26 May 2023 09:54:08 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id x4-20020a5d54c4000000b002c70ce264bfsm5609626wrv.76.2023.05.26.09.54.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 09:54:07 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4948A1FFC0; Fri, 26 May 2023 17:54:05 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685120061; 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=golKvSYvzbphYFdgYW/zJabTWZL4ziquNJ4trhfkWb0=; b=FsWjRmY1Lm0XEynEFZTm5n8vjo4bXHXzwGDAwQtQil/BK6WY0+zvO2S5qrw1v9CFIndaoS HUbXV26vHKMn55eo+/a6Ly/2XNHty2juLv+n4dAAKKm+8HySl9w4bx5kiftUVxo15uwXEf FYEIRk7x3o/5Mm1/ujYn+CfhxGMg5C4= X-MC-Unique: ngA9ZwAKOW6ClbJXOmSRJA-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: ro3DVSveOPO-7225WsBsyA-2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685120048; x=1687712048; 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=golKvSYvzbphYFdgYW/zJabTWZL4ziquNJ4trhfkWb0=; b=bg0z0kQpY5V0Rv1UU2oIwu5d3O5YC/wDwnQoTbfNCN8I8FuzfIhwPJCtdZKkj6aRI+ 4bC2WfrGXS4Avmgr7O5oWGyL5UhCNLOIzb0XOUHcDkcQ3dUqg5AFjX9zMKvjALep18VH KDXDqQ4cqIQGY39WS5RQuGI8Xz/B2KI5oP5By9sDmqD9o9m7jN1U/ef8unCs+JsE8UBX lQz5tQHVGrvD+03IzpO3DKHV0zPRBnzk8KSbYqq7x5AN1tKaqE1aYUdy23wYwdvWqiO0 bByIh/5CMzggmUv1gBNLnP0zZWgLAm5BlIUb+3RtilZ1KZs9Bc1EkQTOH9vPIPM/wnZT 1fVg== X-Gm-Message-State: AC+VfDz6kwpzSc6mkL1JzU82t1STrRMZ65s8miWVnvYimVtzSoXflQNr +CI4qEnLR6+6AmKhrFKN7F0dTA== X-Google-Smtp-Source: ACHHUZ6F5q9SvNedgHzyeqmemDnGRPcRknN0Xj8QLvd7rzWrlB+KP0j2pvGD7a8R0KJJ+BF/60vABQ== X-Received: by 2002:a05:600c:d2:b0:3f6:536:a4b2 with SMTP id u18-20020a05600c00d200b003f60536a4b2mr1892054wmm.27.1685120047859; Fri, 26 May 2023 09:54:07 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org, Stefan Hajnoczi Subject: [PATCH v6 10/11] hw/9pfs: use qemu_xxhash4 Date: Fri, 26 May 2023 17:54:00 +0100 Message-Id: <20230526165401.574474-11-alex.bennee@linaro.org> In-Reply-To: <20230526165401.574474-1-alex.bennee@linaro.org> References: <20230526165401.574474-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.1 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, Kyle Evans , Riku Voipio , Richard Henderson , Markus Armbruster , Greg Kurz , Yanan Wang , Marcel Apfelbaum , Michael Roth , Paolo Bonzini , Christian Schoenebeck , 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: 1685120063025100010 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 Signed-off-by: Alex Benn=C3=A9e Message-Id: <20230524133952.3971948-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