From patchwork Tue May 23 12:49:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 684906 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1697665wrt; Tue, 23 May 2023 05:50:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5qFYWoR3qtreM8H+4kHCb1z58f+qZAbHYQQqgKgyi9oa1aVAFjhgPTbCBPA7eQU9m9LgKv X-Received: by 2002:ac8:7d0c:0:b0:3f5:3982:fa26 with SMTP id g12-20020ac87d0c000000b003f53982fa26mr25640705qtb.14.1684846225583; Tue, 23 May 2023 05:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684846225; cv=none; d=google.com; s=arc-20160816; b=tUAs4e3P/XzU/GkGy2eLQ266RGwRK6yJmAg4l88LSlaKahVMce6ZyfGJ1+T1Eu3TFa SlshtW+6Zni6xp44YXqnYwvzhYnNMh+RuPhSaL/7JtlynvI62PzhhQb9IncT3GGSB9rs TyXAut+jl8wPkI029bdx7bZSoesKS/n7yQBa1loHuzS83ALJ4rXOJMEa95W8y7hwvuva s6jQE64MxNKc+S/kDbL87S6wPAiMq/2rksth0DFKYwsJFuXxxqYfDITQqDsPhc16/j2u iH/V+H6CHWlTeZkr1eDDX6vkzUs4wswJzHHoY59f03eHnRuNrwmovGyxKKUeTXQyhPP/ 2efg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:sender:errors-to:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:delivered-to:delivered-to:dkim-signature; bh=O6c49RYzHWdVq3P3yg8J3+/TKBPogcBQppAeDcgAsBA=; b=MAULMOGmT5H9o9RvsJMw7q1ybHoaRgcLnjhnEUukBq0WBIqodHSR7zgpt6GjZkgkWx kd9x9gBDOobx9I5uOjk+Wa33sD9si1NYEad0WbKqgAbYDXlyP45hl7rPT24MyUD9+cF+ 7mMlGslsgywVOLU1t9dG8RRSmsEgbebWDbYn9lSATOlrmUox/i2ddYNqjV7T/RsDn/Lj d/AcEBO82upUZIKLeyZMM00DAGefiaAlUwCRwWY8WRAnHNsGBI1HWtGPjB74D3jW2yLL Hw4ykRf+e2Y1bNhYccr042b07u1NNo8yH2VObF/ul7WvtVgXXymOyY+Xeyu17QjTgpsy +d5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=irV842Vm; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com. [170.10.129.124]) by mx.google.com with ESMTPS id z20-20020ac87f94000000b003e4e2eaa3adsi5231841qtj.65.2023.05.23.05.50.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 05:50:25 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=irV842Vm; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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= 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 X-MC-Unique: dldExJELPTSi16lm4Nfe4g-1 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) X-Original-To: libvir-list@listman.corp.redhat.com Delivered-To: libvir-list@listman.corp.redhat.com 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) Delivered-To: libvir-list@redhat.com 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 X-MC-Unique: VjZAolb8PeW8H9gy0aUrJQ-1 Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3078a3f3b5fso7298000f8f.0 for ; Tue, 23 May 2023 05:50:04 -0700 (PDT) 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-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) 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) From: =?utf-8?q?Alex_Benn=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_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , =?utf-8?q?Alex_Benn=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 No need to pass zeros as we have helpers that do that for us. Reviewed-by: Philippe Mathieu-Daudé 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ée 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 */ } -/* 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); } static uint32_t qpf_hash(QpfEntry e) { - return qemu_xxhash7(e.ino, e.dev, 0, 0, 0); + return qemu_xxhash4(e.ino, e.dev); } static bool qpd_cmp_func(const void *obj, const void *userp)