From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650028962905111.29240122286853; Fri, 15 Apr 2022 06:22:42 -0700 (PDT) Received: from localhost ([::1]:36500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfLuL-00011S-H2 for importer@patchew.org; Fri, 15 Apr 2022 09:22:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLrN-0006UP-LR; Fri, 15 Apr 2022 09:19:37 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:34437) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLr0-0007pe-Eg; Fri, 15 Apr 2022 09:19:15 -0400 Received: by mail-ej1-x62b.google.com with SMTP id ks6so15386961ejb.1; Fri, 15 Apr 2022 06:19:13 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.19.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=torG0IiupQqEy7N4LbEac791zMCYlrYAUT0C7dVk8wI=; b=gvNgq2YmpQlxhujrEg9SrpQJWf6jp7vGM1opdOIvKztc8V3FR6PnpAG4Yt6iDB3Zbz DGPP2HTTySwNOfR/hSq5JLftP3o+UQO5V3PXSInulnGY09p0rwaadUcXtTpNB0UNDMQ0 MQgp8W2a1dmxdkFnMVN4TVHIWFOstpRPVzgceMyuYPfuvxj71JO7g8qgogBqOdmeHRo2 fJvGQYE30pUejIJFqYScfifRj4W/HqJSx+1ZRsf2cKG25ysLJ7pMyGwqtqC4Io9Q3Oj/ jJlxow8S60oJ2+Wi5s8oLbukP04D7Spfj48sNdMcNxdDmQ580NdzdQxGcqJCcquDQpKm pwHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=torG0IiupQqEy7N4LbEac791zMCYlrYAUT0C7dVk8wI=; b=kjT1Dql8Ga5lfgVTauf1cmLRX/IiTgiRjhiFKhXbgVR7dPlD+x6jeB0MvIjSMoDBLV IFBv9abJg2B/SO3aOofYtmAiwXYZ/F6UHWScX6Dv0oz8kU9UIeuAempfKfTYmxnp134Z q7ASE71ZBo9uLFDwrdHRbBOFm7hw2AyD7rgDHSmHqUlaMsXlFYLorWycAzN8Q1yvZkxX D42aFlyp7GKW1R/d6eQgT5RBCHsAKGLRYjXaShShIqB614iRRp6rb35cO15psvcz4uPe EEYO8CQngwz47o4juLaRmC3ocEOdcxq3nycyPi7HSD15iH/v/XwG4Ruj70IfKKhIp7pF pKhw== X-Gm-Message-State: AOAM532NYEHJ+UWmxxXKCF61BNQXt6ApC0eFTKKvWzH0+MrgoaK8NC9w XFDj37+RhG4yRMWZtkHOeoZxao58bcTJHA== X-Google-Smtp-Source: ABdhPJxzulSrTt6TtVPSVwxIlOrvwmKXukmsli4dyHxcZIuiyhOWZetZnmdgvc+PQiaijFGlwWFMCg== X-Received: by 2002:a17:907:3e16:b0:6df:b4f0:5cc2 with SMTP id hp22-20020a1709073e1600b006dfb4f05cc2mr6298178ejc.285.1650028752625; Fri, 15 Apr 2022 06:19:12 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 01/26] block: remove incorrect coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:35 +0200 Message-Id: <20220415131900.793161-2-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650028963086100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake --- block/block-backend.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/block/block-backend.c b/block/block-backend.c index e0e1aff4b1..fedf2eca83 100644 --- a/block/block-backend.c +++ b/block/block-backend.c @@ -1391,10 +1391,10 @@ int coroutine_fn blk_co_pwritev(BlockBackend *blk, = int64_t offset, return blk_co_pwritev_part(blk, offset, bytes, qiov, 0, flags); } =20 -static int coroutine_fn blk_pwritev_part(BlockBackend *blk, int64_t offset, - int64_t bytes, - QEMUIOVector *qiov, size_t qiov_o= ffset, - BdrvRequestFlags flags) +static int blk_pwritev_part(BlockBackend *blk, int64_t offset, + int64_t bytes, + QEMUIOVector *qiov, size_t qiov_offset, + BdrvRequestFlags flags) { int ret; =20 --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16500289643351009.2693757244449; Fri, 15 Apr 2022 06:22:44 -0700 (PDT) Received: from localhost ([::1]:36580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfLuM-00014o-S6 for importer@patchew.org; Fri, 15 Apr 2022 09:22:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLrP-0006Vq-JE; Fri, 15 Apr 2022 09:19:39 -0400 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]:46772) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLrC-0007pr-Gr; Fri, 15 Apr 2022 09:19:38 -0400 Received: by mail-ej1-x62d.google.com with SMTP id t11so15299777eju.13; Fri, 15 Apr 2022 06:19:20 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.19.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:19:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AW9UshOwSu9Rwp97X5w5YvNGw7PfmQ7bFCKt0GNupsA=; b=RCEfvOj9Z8ncMCtmam5qW+qz7xydh7+9009iCOpmjC/MzRt8pC4u6wegRB8rPIUwRl J1h0wgdCqmMxQdgcbbG5hTw76rORJvQhQzPFdOv79OCmRPtGkeI1Typ8CtPCHjHfgXDB mIvaEnN1jOm06ITwYCYFOkaTTQhIFvFXNiJwJdBTSUKtmydd39MbjWqc/T2Xn+HE1IDi 0ZbLDoz6HzqTuemnW/5CxvsrvUdfD/sWnJL8CWMv21GMuHZ04VXqarczoShWpi72U+i0 V5ahfc7Oc3qSmfx+CGIxs9svocnBpmx9lecUDldqOEze4Sr35Jq5Hm12yH6By8lhJe0w RUWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=AW9UshOwSu9Rwp97X5w5YvNGw7PfmQ7bFCKt0GNupsA=; b=e7mz5kEK21VYTCgHB3g4xP3FvmmxoQhLVVi4dDimc8/43E4rIP4k8xEKN6r0vQxxNV vdUSacLBvW2Rxn7xMp9c9VBlTzqG/t0+oT1NlxHGwx4MmYo3iqfJwa2dX061hWsrKVq+ 5JQ2/xZrTLA/LwOYP9X6op8edRDxSsvwfIjU9Tqnwth2RgWRnqPqfSBjKqBzyiuka+nR 02xcy4fYEjYnuwnsb9DP7xAdQchTVgsIoAjEEWkZaGUsjNgjACRnC071kGt/T39wWgye 7+56wU7jfi60WsVqpDc3oBqgn7bsiO6b4fftdJm58EGdjec2QJW4G6LwUrS+5ALJdKKC ReBw== X-Gm-Message-State: AOAM5323IzOzd0U0kYt1QI0HYXfld9zfxVLwpOpi6Vq0e/cPt2U4QD8U ELkXfEJzbvSmUPTPBsGnjyxZPcWQ7nBKew== X-Google-Smtp-Source: ABdhPJxjDxQK0Svc2hlPuwN+gjYwMfRCkld1t2o+2g5ta6wExqucjc8Dg02yfxByHvjkS5AM76Exag== X-Received: by 2002:a17:907:6284:b0:6e0:f895:15a with SMTP id nd4-20020a170907628400b006e0f895015amr6312004ejc.713.1650028759100; Fri, 15 Apr 2022 06:19:19 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 02/26] qcow2: remove incorrect coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:36 +0200 Message-Id: <20220415131900.793161-3-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62d; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x62d.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650028965094100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake --- block/qcow2-refcount.c | 4 ++-- block/qcow2.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index b91499410c..b6f90b2702 100644 --- a/block/qcow2-refcount.c +++ b/block/qcow2-refcount.c @@ -1206,7 +1206,7 @@ void qcow2_free_any_cluster(BlockDriverState *bs, uin= t64_t l2_entry, } } =20 -int coroutine_fn qcow2_write_caches(BlockDriverState *bs) +int qcow2_write_caches(BlockDriverState *bs) { BDRVQcow2State *s =3D bs->opaque; int ret; @@ -1226,7 +1226,7 @@ int coroutine_fn qcow2_write_caches(BlockDriverState = *bs) return 0; } =20 -int coroutine_fn qcow2_flush_caches(BlockDriverState *bs) +int qcow2_flush_caches(BlockDriverState *bs) { int ret =3D qcow2_write_caches(bs); if (ret < 0) { diff --git a/block/qcow2.h b/block/qcow2.h index ba436a8d0d..c8d9e8ea79 100644 --- a/block/qcow2.h +++ b/block/qcow2.h @@ -874,8 +874,8 @@ void qcow2_free_any_cluster(BlockDriverState *bs, uint6= 4_t l2_entry, int qcow2_update_snapshot_refcount(BlockDriverState *bs, int64_t l1_table_offset, int l1_size, int addend); =20 -int coroutine_fn qcow2_flush_caches(BlockDriverState *bs); -int coroutine_fn qcow2_write_caches(BlockDriverState *bs); +int qcow2_flush_caches(BlockDriverState *bs); +int qcow2_write_caches(BlockDriverState *bs); int qcow2_check_refcounts(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix); =20 --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650029133665927.7987529364153; Fri, 15 Apr 2022 06:25:33 -0700 (PDT) Received: from localhost ([::1]:46984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfLx6-00083l-E3 for importer@patchew.org; Fri, 15 Apr 2022 09:25:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLrS-0006Xd-1Q; Fri, 15 Apr 2022 09:19:42 -0400 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]:36596) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLrN-0007pv-QG; Fri, 15 Apr 2022 09:19:41 -0400 Received: by mail-ed1-x535.google.com with SMTP id u18so9917313eda.3; Fri, 15 Apr 2022 06:19:23 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.19.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:19:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VqtX2u2JuwzPoUw1zLBzVNxh3lhGq4Pi9htsltfwjw8=; b=Zz1ZQmhVzD2PtSgwK0uTDjBSCPjSpIPGsLCVRf63qESXqroOUYL1oaFUK7uZQhkeJG KrYnOj84aZbYv0u2HM3umRqbNqZPloTAIHJn2h/f5sEeIIepOJxEcJjsSXsYf0JLLzWJ cMIWS+9DRE0Zx6EYF3J/FMxDdg5LXFjhoSg2KbNFr1X1MBcuPMOSPDlzcTxCHrQ6GARz XoMbkltzyC1Xgs592QddxoNqoZUtqIizK58Y+ejj1HqlMj8XdmSNFOnZ37hDGe4xEWTb YKwd8kNk9NGN2TQ+9eIpbNmFuqIcp0KsCEI9tzrn88Cpfrhj1j9vOCC3k9hfcPLjxsEM yqXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=VqtX2u2JuwzPoUw1zLBzVNxh3lhGq4Pi9htsltfwjw8=; b=GkWAH8tQzudXn/28FyUEiYlJzu7XDC2fpG94PxDXiiTki27jrVjwsJ/tL9OWA65Hx7 VSc1I4CbtCKnWlAj9SX8ESDUjUzShhaLAmsiHQjXZXSf706Uh3zqLqikpuAGeAYzeUKG s/5WhyjetSKrGcV4llIlbioWx5l+yWQQXQqp1XA2NOwK4JxdxV5EKqzCJoOZP3KiuRvJ fwpdKvPQyz7NaPkEJN3qwgX9CSd+ofu4h+ZLRgQ5KXiWggXMJRPkMpcwRF38/3q4wROr CdQzL9NIrxXcqwpVgZ/Mtti1P92BcOcIuS6rKBzUjbX/hdJEju3Vhjrfn30IdoY+uP1X NZew== X-Gm-Message-State: AOAM531QpDcsqwxM57aRK85/H+oRCP46DxkLawdFf/AKfrBtmv7GUMTk KyOqWvPNSmPM4Lnu1Sl1e7LGee8pksNQkQ== X-Google-Smtp-Source: ABdhPJznQvz5aoMS9/erfAw0aoaUYIOOf8A1R15e17cx6s1mqz9s0rxsWMaURcxOgN/GkFywNSA/mw== X-Received: by 2002:a05:6402:2709:b0:422:adc9:bc39 with SMTP id y9-20020a056402270900b00422adc9bc39mr1809872edd.111.1650028762878; Fri, 15 Apr 2022 06:19:22 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 03/26] nbd: remove incorrect coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:37 +0200 Message-Id: <20220415131900.793161-4-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::535; envelope-from=paolo.bonzini@gmail.com; helo=mail-ed1-x535.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650029133883100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- include/block/nbd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/block/nbd.h b/include/block/nbd.h index a98eb665da..5c3710fa52 100644 --- a/include/block/nbd.h +++ b/include/block/nbd.h @@ -423,6 +423,6 @@ QIOChannel *coroutine_fn nbd_co_establish_connection(NBDClientConnection *conn, NBDExportInfo *info, bool blocking, Error **errp); =20 -void coroutine_fn nbd_co_establish_connection_cancel(NBDClientConnection *= conn); +void nbd_co_establish_connection_cancel(NBDClientConnection *conn); =20 #endif --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650029216160551.4610208995367; Fri, 15 Apr 2022 06:26:56 -0700 (PDT) Received: from localhost ([::1]:51340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfLyR-0002hB-5C for importer@patchew.org; Fri, 15 Apr 2022 09:26:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLrP-0006Ve-GT; Fri, 15 Apr 2022 09:19:39 -0400 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:45943) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLrK-0007q0-7X; Fri, 15 Apr 2022 09:19:38 -0400 Received: by mail-ed1-x530.google.com with SMTP id v15so9872053edb.12; Fri, 15 Apr 2022 06:19:25 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.19.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ib6o6UHLWxb5ux1+EZCHcprngTMPkaRjB18C9Z4T9yw=; b=cWRvcAfTyWTjPdWRn1QWLL7QhIKQPDLTrIWD42tJE9lRUHV/KlzUn62Rd4p+BX+eB9 wOMltAQ7urLqw9OA3aKvYFjUtteyxsJrhaovvdO6HNNcbq5iftXa01AT5WExblihzGNv /kK9mNpBsjz5QlAa7jPvwbd+P+FREiyem+SGEQAPHDbQz5ln7x7Hhj51N1DVnxK5dl47 fGD8SPI/RuQlJMLQcNs6eJYucXF2s3H7MseVih16Vkn0yIxZYauqT81KadfB5MPJa0bk tkFYDbvd0qaKw/3H3jmGKNh9WFZqL+p5K4zi0kKqhlbR7sTcVr7p7gxtBe0xVF9Tx62k inBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=ib6o6UHLWxb5ux1+EZCHcprngTMPkaRjB18C9Z4T9yw=; b=1UHvOE5A5FhCXCSkZwzDurntuxflIOjSU4Ve0vj40jRRat/qKR3Tr0KDL99bp/lDTF clDoiVBK0yC/RTmoGo6zx/pk0bwIWfc9ArX8yxEqmz6s50xO/An2vV0002jv/aPVI95u boxKnmdIEiVJ+BCNUHISuYtOD9ix7KApoIWc6KkPQ/x+5X9SZKjVoopF0mi0xhM0+Q7I SFCrfIxNYLjR90uSJ9IWTXDlza8x5ctx74O/NuIrIWLfxpaKz6XFp4yBBjnjyBf92/Lj TVnU9Pw/N4n/1s9MPbDtjmLAh3DHTfnFbueFkEAPuybU4HGTl4//yWx+RonH+aMgN6h8 CiMQ== X-Gm-Message-State: AOAM533DCVlpgpUOv1Vv4ycojz+9dO+PHn8FA2bXf8bjhIVMPy0S/1a7 OZFuNe1jOPORPLc8zKOklnzr4v8vRYerpw== X-Google-Smtp-Source: ABdhPJzHgsqAX9vGmU8iqwX966/45EtXYixesbSFZn+Xnt0UtpGiuvlErcwpf32buCen/ol0Ws3p9w== X-Received: by 2002:a05:6402:1e8a:b0:41d:af82:613e with SMTP id f10-20020a0564021e8a00b0041daf82613emr8211933edf.18.1650028764460; Fri, 15 Apr 2022 06:19:24 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 04/26] coroutine: remove incorrect coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:38 +0200 Message-Id: <20220415131900.793161-5-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=paolo.bonzini@gmail.com; helo=mail-ed1-x530.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650029218215100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi --- include/qemu/coroutine.h | 2 +- util/qemu-coroutine.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/qemu/coroutine.h b/include/qemu/coroutine.h index 284571badb..2d9211faff 100644 --- a/include/qemu/coroutine.h +++ b/include/qemu/coroutine.h @@ -92,7 +92,7 @@ void coroutine_fn qemu_coroutine_yield(void); /** * Get the AioContext of the given coroutine */ -AioContext *coroutine_fn qemu_coroutine_get_aio_context(Coroutine *co); +AioContext *qemu_coroutine_get_aio_context(Coroutine *co); =20 /** * Get the currently executing coroutine diff --git a/util/qemu-coroutine.c b/util/qemu-coroutine.c index c03b2422ff..9f2bd96fa0 100644 --- a/util/qemu-coroutine.c +++ b/util/qemu-coroutine.c @@ -200,7 +200,7 @@ bool qemu_coroutine_entered(Coroutine *co) return co->caller; } =20 -AioContext *coroutine_fn qemu_coroutine_get_aio_context(Coroutine *co) +AioContext *qemu_coroutine_get_aio_context(Coroutine *co) { return co->ctx; } --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650029260210291.8085591493276; Fri, 15 Apr 2022 06:27:40 -0700 (PDT) Received: from localhost ([::1]:53950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfLz4-0004OR-So for importer@patchew.org; Fri, 15 Apr 2022 09:27:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLrS-0006Xc-0f; Fri, 15 Apr 2022 09:19:42 -0400 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]:36550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLrN-0007qJ-OW; Fri, 15 Apr 2022 09:19:40 -0400 Received: by mail-ej1-x633.google.com with SMTP id k23so15364627ejd.3; Fri, 15 Apr 2022 06:19:31 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.19.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=M0td3BIo8+I/vX9T6ItFSnDKy+nzpzS9t1PxQm6FyM8=; b=UrgTacxAwdMBaklaRWG6oXfXFpOCeDG71lESHgd3Pv2Mu7F1z1z5zzw8/IrkhdtkKh ScDGI9aSV25zwpGKVUj2nrH58VE1u87e0gGzKj3+KS7u+vH3ogoMG/bdowjog/znbz8m ntE7GfOF8Tk8z5p4isl5VemoFVfZOwEFZHoBJX+A2ClgKo0yif9TzN9HvcVDBpt10FGg QaioWC/MBoxuXtRBu6+FAObjIf6zP+mvvJ1eL3kCf1f3iG/dlfxdWzZuNuRaWUtWnFAO cO10sRYWW+WB2wtm1ALjeFq8w3L0d+AdVe0Wx+6ZRsYuCd8oY7PmDIR9piMyabJABrO2 ecpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=M0td3BIo8+I/vX9T6ItFSnDKy+nzpzS9t1PxQm6FyM8=; b=EP+FmldwuGWB42bf79PlsvGRlCe5cP31lv2ISQgETyv89zJzo18qQBYarrLGb+mLN9 Rqkiu8NCLbXsLIrenmfV03TyNNnlQOoL3sfVcHTb4aI2f1H9hwe6Fz3JQRNUY5tTaqAP eTvX/+74jy0DRkhU+bfGZhjFbhPMOwFjxCmZQyKCwpPKrUIt3ULQtqLx/oX0Hh8oBBz6 oREeP0puxhDvGUz+i5r3jms+aXzXLfVonHJIAkvLepJHew4EHE0dtlZEHdrgXIda2yQv ArRBPf0z8Sm2SP8wovNiavpH2SoZuZ2asyWepRLOA8FeWnJES3uucgNqwPaciJ42GR4v H5Fg== X-Gm-Message-State: AOAM532WGJuBypnY2x9/LnmL8155ZP4+kyRWEod6aeiulO9iqIAv83cQ 5fIe3OoHUywDCYLU3d2azesW/YXUc2psfw== X-Google-Smtp-Source: ABdhPJxRmzelbnm3buYQbzRxGPbbrohBsr8NV3oQDcnTL7I46jbn/uUCXDyCLR3fk/tqozlqQeNDOg== X-Received: by 2002:a17:906:9c82:b0:6e1:2c94:1616 with SMTP id fj2-20020a1709069c8200b006e12c941616mr6260461ejc.64.1650028770886; Fri, 15 Apr 2022 06:19:30 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 05/26] blkdebug: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:39 +0200 Message-Id: <20220415131900.793161-6-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::633; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x633.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650029260450100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake --- block/blkdebug.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/block/blkdebug.c b/block/blkdebug.c index bbf2948703..a93ba61487 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -587,8 +587,8 @@ out: return ret; } =20 -static int rule_check(BlockDriverState *bs, uint64_t offset, uint64_t byte= s, - BlkdebugIOType iotype) +static int coroutine_fn rule_check(BlockDriverState *bs, uint64_t offset, = uint64_t bytes, + BlkdebugIOType iotype) { BDRVBlkdebugState *s =3D bs->opaque; BlkdebugRule *rule =3D NULL; @@ -672,7 +672,7 @@ blkdebug_co_pwritev(BlockDriverState *bs, int64_t offse= t, int64_t bytes, return bdrv_co_pwritev(bs->file, offset, bytes, qiov, flags); } =20 -static int blkdebug_co_flush(BlockDriverState *bs) +static int coroutine_fn blkdebug_co_flush(BlockDriverState *bs) { int err =3D rule_check(bs, 0, 0, BLKDEBUG_IO_TYPE_FLUSH); =20 @@ -791,7 +791,7 @@ static void blkdebug_close(BlockDriverState *bs) } =20 /* Called with lock held. */ -static void suspend_request(BlockDriverState *bs, BlkdebugRule *rule) +static void coroutine_fn suspend_request(BlockDriverState *bs, BlkdebugRul= e *rule) { BDRVBlkdebugState *s =3D bs->opaque; BlkdebugSuspendedReq *r; @@ -810,8 +810,8 @@ static void suspend_request(BlockDriverState *bs, Blkde= bugRule *rule) } =20 /* Called with lock held. */ -static void process_rule(BlockDriverState *bs, struct BlkdebugRule *rule, - int *action_count, int *new_state) +static void coroutine_fn process_rule(BlockDriverState *bs, struct Blkdebu= gRule *rule, + int *action_count, int *new_state) { BDRVBlkdebugState *s =3D bs->opaque; =20 @@ -840,7 +840,7 @@ static void process_rule(BlockDriverState *bs, struct B= lkdebugRule *rule, } } =20 -static void blkdebug_debug_event(BlockDriverState *bs, BlkdebugEvent event) +static void coroutine_fn blkdebug_debug_event(BlockDriverState *bs, Blkdeb= ugEvent event) { BDRVBlkdebugState *s =3D bs->opaque; struct BlkdebugRule *rule, *next; --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16500290895631011.4416097803986; Fri, 15 Apr 2022 06:24:49 -0700 (PDT) Received: from localhost ([::1]:45360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfLwO-0006zb-AA for importer@patchew.org; Fri, 15 Apr 2022 09:24:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLrQ-0006We-Jr; Fri, 15 Apr 2022 09:19:41 -0400 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]:46775) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLrN-0007qT-QG; Fri, 15 Apr 2022 09:19:40 -0400 Received: by mail-ej1-x62d.google.com with SMTP id t11so15300697eju.13; Fri, 15 Apr 2022 06:19:35 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.19.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4T8GsUtcx8uBNvR21n6Vfvw1RaJjYiS0GAlgoMt4AQA=; b=P/A9Czoz6xVVqMHAUSKhBpObf5mBFKp19xfVE2c/nkwVRc/rRX/Wrul1gmW+kx0rQf iGA8OUwnKUEASpaoBFn5pc0U2pT4+GzsradSotX3cF6CnCWaD3Jv95VcitwY/5rI5rQ5 C0jXqTuWmwtpFYFjybvhdQ5AoXuoeVhPuMluidtsYldIyUrK8GYv7G5e+32fraaw1YJx AHN48eK7jsvaDi+t2XhCrZDk+Iqv8xQuy9xAydQgSjipOnkM/RpnFT7FV9g2s1hL4uPv kH/xacI2UvpdG3wdOBx1xfJ2gaACycueucdTNi8G0Uuak3hsuH1mXi5hU8IUH/Jx4qii TqVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=4T8GsUtcx8uBNvR21n6Vfvw1RaJjYiS0GAlgoMt4AQA=; b=6zxDMelQZBwJiz9ccb3nCKB1pIOm2kiPRjv7dNAyefQkG0zIX7JlLHCtP9DatDaPqF yktazfGu+Z++AvUVZn6+k6zoxBBKkO/j0//LAE5KdB9h0IQIsei8YzeYcQMBWgjJnPg3 f3D4Ivmfcm7tgqvkeSaDEdtC1PMG9wh5qk8OneikHW7L5cISCKigtmmLlE6j5uRFUmIH WcILJWsJsjnpseuBZh2swNqPxsAUzcJUBeOSy/YXHKk5ZiXSOdLGSnX9KuucEz2GArLL YNAqKrplPEA7JFi/QWEN/KWaCnWX3cFQYAc0ITTWedxjBWRJyomnITZdJV6vrOVbRwaH KSZQ== X-Gm-Message-State: AOAM533VJ4BcW+hSamggMj4vCMOeNyjCrKISTUU5O4JAnfdAP6G8aJfS q8VR92EdU2jzAZsoH2jsxUSUunS4ShVFtw== X-Google-Smtp-Source: ABdhPJz1bEn3aiX4E4I1h1GtxOUyvYdH6prHtR1RdPu61d2HgFxX13HV8ERKH5MuutC/XcpuYUOAnQ== X-Received: by 2002:a17:907:9493:b0:6ef:6ade:92da with SMTP id dm19-20020a170907949300b006ef6ade92damr614693ejc.630.1650028774300; Fri, 15 Apr 2022 06:19:34 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 06/26] blkverify: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:40 +0200 Message-Id: <20220415131900.793161-7-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62d; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x62d.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650029091948100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake --- block/blkverify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blkverify.c b/block/blkverify.c index e4a37af3b2..020b1ae7b6 100644 --- a/block/blkverify.c +++ b/block/blkverify.c @@ -258,7 +258,7 @@ blkverify_co_pwritev(BlockDriverState *bs, int64_t offs= et, int64_t bytes, return blkverify_co_prwv(bs, &r, offset, bytes, qiov, qiov, flags, tru= e); } =20 -static int blkverify_co_flush(BlockDriverState *bs) +static int coroutine_fn blkverify_co_flush(BlockDriverState *bs) { BDRVBlkverifyState *s =3D bs->opaque; =20 --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650028964366171.60727900067013; Fri, 15 Apr 2022 06:22:44 -0700 (PDT) Received: from localhost ([::1]:36674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfLuN-00018B-BU for importer@patchew.org; Fri, 15 Apr 2022 09:22:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLrS-0006Xf-3j; Fri, 15 Apr 2022 09:19:43 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:35730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLrP-0007qZ-KS; Fri, 15 Apr 2022 09:19:41 -0400 Received: by mail-ed1-x52b.google.com with SMTP id z12so9927664edl.2; Fri, 15 Apr 2022 06:19:37 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.19.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:19:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/b+5wydA9RdU0ZF0qsuG26Wp2w9p/13mEw4B/cEDK5A=; b=BHdYhL9NooFAnQOXQq+DN72delKYZHJ4grdZRsxvl0jYMVoNBBuhLrNfabZPV8uDkc Ww+6KWY3HGNGoqZKh/EYVvxc8egfdHb8YWv2AwX+Cpeldh1ztlUaBFhqZYzSl6qP+63R AUoopeHW7CL98tyxpm9YfocQDgOoY/nEZRfGeA0O+bRJwHAvfFJaXRhVx8uzudeJQt+4 h/07KH9UyyUlJsJ4TST9EwtcIp+Olb9rD8NU+Gy0hkZg4w09dRQ44E3eaYfbk7TSKCwF l7yFFsThwEvdYTpj0Td0uUx0QlkSJfhGEB1qRb3fkDEbB8kYk/0wzsBchgg2BzFP456O f2vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=/b+5wydA9RdU0ZF0qsuG26Wp2w9p/13mEw4B/cEDK5A=; b=v4RA4oFCpJhiGv/uT88p/1c16m0NKGKHnYQ3SX/6R2jca8Bdd5Y/mqUm37Q0M7ybCs FXpiLsvDG9gphUtB5aZy2kyoG8lzNLQxAIdJx/41SLQ0OEe1aofIGrKI6vPllFAOUr67 yG9FUMfv/ByKqvCfKVlvxzM7NIwNMwaUBtzGFiAl+2I0qBKrqF+eS4ES/1ibTFTdPixK C2yglWwzF29Wj24hw0bBQ0/D2Ye7bIEx5Aldv6hVLyOWLlhgDMOw2k/pIhu5b+GymzWQ XeTBX+vO5EosCmG5aC0VNK33fHWZU+EawS0nTHuy30pqSJmfPWUYUG9sNRaE2m5T+KnG 7P6Q== X-Gm-Message-State: AOAM531oCUpRojjN8Yfl52+HCWkuaTTbJ4tBvO/5QSivSSA+xSwXeDEo ObLkMs833DyPPsYj33dc/5AQoCbP+Uo0Jg== X-Google-Smtp-Source: ABdhPJwTwN1ZHbe79445bwgzQVjPbA7k0zXc75Q0jR0Z2nXBToxTs5knIaUIS1uD0O7C5wTrBeuhIg== X-Received: by 2002:a05:6402:1148:b0:413:11e0:1f58 with SMTP id g8-20020a056402114800b0041311e01f58mr8143186edw.113.1650028776531; Fri, 15 Apr 2022 06:19:36 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 07/26] block: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:41 +0200 Message-Id: <20220415131900.793161-8-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=paolo.bonzini@gmail.com; helo=mail-ed1-x52b.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650028965110100004 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- block/block-backend.c | 18 +++++++++--------- block/io.c | 24 ++++++++++++------------ 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/block/block-backend.c b/block/block-backend.c index fedf2eca83..52009b8949 100644 --- a/block/block-backend.c +++ b/block/block-backend.c @@ -1413,8 +1413,8 @@ typedef struct BlkRwCo { BdrvRequestFlags flags; } BlkRwCo; =20 -int blk_pwrite_zeroes(BlockBackend *blk, int64_t offset, - int64_t bytes, BdrvRequestFlags flags) +int coroutine_fn blk_pwrite_zeroes(BlockBackend *blk, int64_t offset, + int64_t bytes, BdrvRequestFlags flags) { IO_OR_GS_CODE(); return blk_pwritev_part(blk, offset, bytes, NULL, 0, @@ -1534,7 +1534,7 @@ static BlockAIOCB *blk_aio_prwv(BlockBackend *blk, in= t64_t offset, return &acb->common; } =20 -static void blk_aio_read_entry(void *opaque) +static void coroutine_fn blk_aio_read_entry(void *opaque) { BlkAioEmAIOCB *acb =3D opaque; BlkRwCo *rwco =3D &acb->rwco; @@ -1546,7 +1546,7 @@ static void blk_aio_read_entry(void *opaque) blk_aio_complete(acb); } =20 -static void blk_aio_write_entry(void *opaque) +static void coroutine_fn blk_aio_write_entry(void *opaque) { BlkAioEmAIOCB *acb =3D opaque; BlkRwCo *rwco =3D &acb->rwco; @@ -1580,8 +1580,8 @@ int blk_pread(BlockBackend *blk, int64_t offset, void= *buf, int bytes) return ret < 0 ? ret : bytes; } =20 -int blk_pwrite(BlockBackend *blk, int64_t offset, const void *buf, int byt= es, - BdrvRequestFlags flags) +int coroutine_fn blk_pwrite(BlockBackend *blk, int64_t offset, const void = *buf, int bytes, + BdrvRequestFlags flags) { int ret; QEMUIOVector qiov =3D QEMU_IOVEC_INIT_BUF(qiov, buf, bytes); @@ -1681,7 +1681,7 @@ int blk_ioctl(BlockBackend *blk, unsigned long int re= q, void *buf) return ret; } =20 -static void blk_aio_ioctl_entry(void *opaque) +static void coroutine_fn blk_aio_ioctl_entry(void *opaque) { BlkAioEmAIOCB *acb =3D opaque; BlkRwCo *rwco =3D &acb->rwco; @@ -1715,7 +1715,7 @@ blk_co_do_pdiscard(BlockBackend *blk, int64_t offset,= int64_t bytes) return bdrv_co_pdiscard(blk->root, offset, bytes); } =20 -static void blk_aio_pdiscard_entry(void *opaque) +static void coroutine_fn blk_aio_pdiscard_entry(void *opaque) { BlkAioEmAIOCB *acb =3D opaque; BlkRwCo *rwco =3D &acb->rwco; @@ -1771,7 +1771,7 @@ int coroutine_fn blk_co_do_flush(BlockBackend *blk) return bdrv_co_flush(blk_bs(blk)); } =20 -static void blk_aio_flush_entry(void *opaque) +static void coroutine_fn blk_aio_flush_entry(void *opaque) { BlkAioEmAIOCB *acb =3D opaque; BlkRwCo *rwco =3D &acb->rwco; diff --git a/block/io.c b/block/io.c index 9769ec53b0..7db9be3c03 100644 --- a/block/io.c +++ b/block/io.c @@ -751,7 +751,7 @@ void bdrv_drain_all(void) * * This function should be called when a tracked request is completing. */ -static void tracked_request_end(BdrvTrackedRequest *req) +static void coroutine_fn tracked_request_end(BdrvTrackedRequest *req) { if (req->serialising) { qatomic_dec(&req->bs->serialising_in_flight); @@ -766,11 +766,11 @@ static void tracked_request_end(BdrvTrackedRequest *r= eq) /** * Add an active request to the tracked requests list */ -static void tracked_request_begin(BdrvTrackedRequest *req, - BlockDriverState *bs, - int64_t offset, - int64_t bytes, - enum BdrvTrackedRequestType type) +static void coroutine_fn tracked_request_begin(BdrvTrackedRequest *req, + BlockDriverState *bs, + int64_t offset, + int64_t bytes, + enum BdrvTrackedRequestType= type) { bdrv_check_request(offset, bytes, &error_abort); =20 @@ -809,7 +809,7 @@ static bool tracked_request_overlaps(BdrvTrackedRequest= *req, } =20 /* Called with self->bs->reqs_lock held */ -static BdrvTrackedRequest * +static coroutine_fn BdrvTrackedRequest * bdrv_find_conflicting_request(BdrvTrackedRequest *self) { BdrvTrackedRequest *req; @@ -1704,10 +1704,10 @@ static bool bdrv_init_padding(BlockDriverState *bs, return true; } =20 -static int bdrv_padding_rmw_read(BdrvChild *child, - BdrvTrackedRequest *req, - BdrvRequestPadding *pad, - bool zero_middle) +static coroutine_fn int bdrv_padding_rmw_read(BdrvChild *child, + BdrvTrackedRequest *req, + BdrvRequestPadding *pad, + bool zero_middle) { QEMUIOVector local_qiov; BlockDriverState *bs =3D child->bs; @@ -3228,7 +3228,7 @@ out: return ret; } =20 -int bdrv_co_ioctl(BlockDriverState *bs, int req, void *buf) +int coroutine_fn bdrv_co_ioctl(BlockDriverState *bs, int req, void *buf) { BlockDriver *drv =3D bs->drv; CoroutineIOCompletion co =3D { --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650029305218208.46809006792876; Fri, 15 Apr 2022 06:28:25 -0700 (PDT) Received: from localhost ([::1]:56302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfLzs-0005y5-2G for importer@patchew.org; Fri, 15 Apr 2022 09:28:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLrU-0006Yt-SK; Fri, 15 Apr 2022 09:19:44 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:33464) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLrT-0007rU-9F; Fri, 15 Apr 2022 09:19:44 -0400 Received: by mail-ed1-x52b.google.com with SMTP id 11so4890026edw.0; Fri, 15 Apr 2022 06:19:42 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.19.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WTccvXQfBFjZvIdZ5/aO1foOdW3bzyYb3HDSU/+9G78=; b=MHn6jvBKLCt7vPOsdV7CIATZnsRWX0BspX2leoq4WzlPEJhB0Zepfl7cd078iYtD1c KnEZgJWCqGnf4XsyC74ZUf0JxwDEhKscsPwUq+fDxb7wzSq7hkjmtaOExiO2kugvnLjI 5fgWRaf0iNdMBNgmc1PY7UxkN8JEJdMJMUGrDPN/fJcP3EKl/jdxNGuN/iX5wWBgnWjq ukD/0+dJnsmF9fU2micOMSnu70dDpb8MDhcwkWhc5xPFcRhDI21GuW4xAV8RQslGreXO r6L3hjSZXzPPJK8JE/hf8S0hTGOblgg1z6r7bgb1cenCbQgpKlKnhaveTfC02z8kA6a3 hgPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=WTccvXQfBFjZvIdZ5/aO1foOdW3bzyYb3HDSU/+9G78=; b=KSURYN/9E7b0eTW8Vr/NAnVTcgFKyD3JW0pzoSemDICsDiz2/VBjUI3uejCBrLbwTQ jrka8B+rttpY0DSsvuzpCYHTpk6DhrZ417xMAaoELuc+jIpKDvB/bt/U7qR1bYBjbTK0 1KiEqJkmlXPTq5rxVi3LmA43MjMIlu9D5W+lBISz6qvY//toQSkIBP9yShne4297Pyjv 5zduWk7VGowXKXZLFG0CcT9sNIA2/PPJgxl2Vq7s+UffSF/VMw3Yc41fCYNzCR6ROQIC NxXrzgJ2SRpUyAi1Xu6SbuTuJkhG45OeFPLuw3Bi2SFBHddncTXZw6Yd1xS5r57uM7St iW/Q== X-Gm-Message-State: AOAM531GcbNdPfaS2Z1AyMadSr1rJs/qeWCMuTSd0eXRbaxDZaIZd4YA QSeZcZ3xruishLG2tRjvvi+f1P3mc9svgg== X-Google-Smtp-Source: ABdhPJyQOYZafFPDc9usCVLlpV1d2yObpI3RjNBJubTfCTjrksZQqzqOtzMfSVfs4s/W02wT/rB7MQ== X-Received: by 2002:aa7:d543:0:b0:416:13eb:6fec with SMTP id u3-20020aa7d543000000b0041613eb6fecmr8413935edr.348.1650028781296; Fri, 15 Apr 2022 06:19:41 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 08/26] file-posix: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:42 +0200 Message-Id: <20220415131900.793161-9-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=paolo.bonzini@gmail.com; helo=mail-ed1-x52b.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650029306762100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake --- block/file-posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/file-posix.c b/block/file-posix.c index bfd9b21111..cf7b5531c8 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -2143,7 +2143,7 @@ static void raw_aio_unplug(BlockDriverState *bs) #endif } =20 -static int raw_co_flush_to_disk(BlockDriverState *bs) +static int coroutine_fn raw_co_flush_to_disk(BlockDriverState *bs) { BDRVRawState *s =3D bs->opaque; RawPosixAIOData acb; --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650029583423681.7095189727992; Fri, 15 Apr 2022 06:33:03 -0700 (PDT) Received: from localhost ([::1]:36600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfM4M-0003Pu-9I for importer@patchew.org; Fri, 15 Apr 2022 09:33:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLrb-0006n1-AV; Fri, 15 Apr 2022 09:19:51 -0400 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]:40550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLrZ-0007uw-UF; Fri, 15 Apr 2022 09:19:51 -0400 Received: by mail-ej1-x62e.google.com with SMTP id p15so15343753ejc.7; Fri, 15 Apr 2022 06:19:49 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.19.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bt/lCu7Al/ofhqAsL2EZtmQPYAWx6O0kFoKyJZvt56k=; b=PjONtCzGVvJ5emVFu5cZHgiu9rU5KQA70jFQTrjny69pcRx9OwfYN0FseIvhoKnD0t oQ99PK0RSuDD/ZnjLF0io844x8QV82jlNq4JeGNiWCxTrazSNmQdPlDnu/LhGcq4R6uE VdxFSPD7BqmRzWw07DWY1jg6Nz1aUY7N7NAw/MV+igIGHCwZmNMhRUPAEhObhCe8BGnn WxUt4n94fRUfkUs8vqhFiQaeoLDtj20i39ZUal6E4wVYzWKsX3Yu+8UulSRUUM7a3YOU r5Jtc0qjr7DXa7qa+9TLQy7wokca4dGOddcYx5pBIxOT2HSyJ5VDZQilWrHnHvILaYN+ CagQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=bt/lCu7Al/ofhqAsL2EZtmQPYAWx6O0kFoKyJZvt56k=; b=q18++tpBl9BAOk1if4xKEl+IyHQ2yxr2Id5Hm6RyJBlLKAblj087LZGGmY8krx2Xls 5JmoK+XVf3yd1uscPUEmZA1RcVtvn0AN2iIHmFgkXHmV/fTEFXsykmv2rMTnlyPzYFOf sqJTGS7UcF5FOg+tvGY/0JV6Ri7dmNv8+nE/xqTMACDWCrX97ru3DcTzR1V5LMqRbcl9 qmEXeQpvLk3nAZ+HTmEypaUQKvxKcEqdvoG7b1uQUK/lgamAWEEI2slmIXuaXIwrTY7o zAAD8Ozz+lPWP3HE3P4nGwUrptHQtZjMvTS5A79LiNvcBHe7szSBInRQzThuQS3Fi0ut Uk7g== X-Gm-Message-State: AOAM530LUjz+V5wAZJkD4zIsSA5K3RTT4wcsE+YFjmmoZ+GpQmPn4/cm rX4AMdzJgiCt0Muy34dgfIHCpiPISK08FA== X-Google-Smtp-Source: ABdhPJxRfiQZBZq8/tt++AiUfL8c6oCXQObYxxqpdAeld8yMCYGNx7NEBArOtnzWKHjMovLQi31kxQ== X-Received: by 2002:a17:907:a427:b0:6e8:d248:f877 with SMTP id sg39-20020a170907a42700b006e8d248f877mr6049144ejc.249.1650028788220; Fri, 15 Apr 2022 06:19:48 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 09/26] iscsi: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:43 +0200 Message-Id: <20220415131900.793161-10-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x62e.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650029584181100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake --- block/iscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/iscsi.c b/block/iscsi.c index d707d0b354..b33eeec794 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -290,7 +290,7 @@ iscsi_co_generic_cb(struct iscsi_context *iscsi, int st= atus, } } =20 -static void iscsi_co_init_iscsitask(IscsiLun *iscsilun, struct IscsiTask *= iTask) +static void coroutine_fn iscsi_co_init_iscsitask(IscsiLun *iscsilun, struc= t IscsiTask *iTask) { *iTask =3D (struct IscsiTask) { .co =3D qemu_coroutine_self(), --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650029859969653.3613672735843; Fri, 15 Apr 2022 06:37:39 -0700 (PDT) Received: from localhost ([::1]:45138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfM8o-0000tf-JQ for importer@patchew.org; Fri, 15 Apr 2022 09:37:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLrh-00078G-1M; Fri, 15 Apr 2022 09:19:57 -0400 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:43604) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLrd-0007vk-IA; Fri, 15 Apr 2022 09:19:56 -0400 Received: by mail-ej1-x629.google.com with SMTP id g18so15314061ejc.10; Fri, 15 Apr 2022 06:19:52 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8phT8uSP5urYracjPftwmXBdQ0AaFj1Ryv0L5uPnOpA=; b=ZGafIZYrqKZSgx/HJ032uuhi8fXOpBt7QSDfO0LiL5jVUSVji0iDhVydjJwyabqAx0 rCr21PqiM/btFnbTSJsm4EH65VepXoXlR0db3bChenRqWx1/oR8wJbFzBQjOSYrdTrtw uIkevVVkSR5ews45qzLI2kV/jbMp8UVzD8bZRUj7rP62fCb1kOTiarae5Tbr+y+xAaIV sfSmdEWtrTcm9n8ArQFKiI29Cnc3lf9FSKvxyMHKI5pVMrZ3vWAfSocQ7UFYlEAqI8Lt RdKrtRPKmDpsiAvcApSuzC6nkIZkA2Mb1qSGF1zWLdHWzD8UUOJFStdWjPcx7z7JRCok Vybg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=8phT8uSP5urYracjPftwmXBdQ0AaFj1Ryv0L5uPnOpA=; b=6gBU4Vxcg68kgvn1u2bsk1cQipJw3XiDbBMeuW4/TRAsN+d7Z858vM04wWWdq46lG1 IALuEIG8JWOPmXqkJ90WUI1PxHJsObGC4z3ayPbLTCT6m1soTaKu730DN7UTtlIgltXL +mkWEWlop8i3wGYOQs4PRigmdQ/o6XA5BfgxtKgwBIqIry5xzHQo8aarFTy+xkMuAfRh IvEyjrr3kZhxZ5NjEqDmrnS1PO5YHJXZEWhbrHA4CzqpBwG81GHVYMLbYdLe9/peSfo5 GfIgGaOKvJzFtW3dLbux2BfGzBZrkCD2cqdW6uxduRAQgupM0LoXSWQbjl5qWgsHuT9n kQuQ== X-Gm-Message-State: AOAM530dGouDv/CV5dkYXAeOJjv3mbSFX+8LM+kumLQ87/wfLEd3VKAG I4nCn83dhTTlu/6A/jvUwE7hhzv2XiMKhg== X-Google-Smtp-Source: ABdhPJxYyRt720lzU8uypKad3E6gNCLnXhYR/N1iwFBn9GTzRI5ncsW3DYbn97Jz2iQ0g0cGKBHy8A== X-Received: by 2002:a17:907:da0:b0:6df:d4a4:9d0f with SMTP id go32-20020a1709070da000b006dfd4a49d0fmr6349207ejc.407.1650028791808; Fri, 15 Apr 2022 06:19:51 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 10/26] nbd: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:44 +0200 Message-Id: <20220415131900.793161-11-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x629.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650029861382100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake --- block/nbd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/block/nbd.c b/block/nbd.c index 5af4deac3f..a4c8d661ad 100644 --- a/block/nbd.c +++ b/block/nbd.c @@ -974,11 +974,11 @@ static void nbd_iter_request_error(NBDReplyChunkIter = *iter, int ret) * nbd_reply_chunk_iter_receive * The pointer stored in @payload requires g_free() to free it. */ -static bool nbd_reply_chunk_iter_receive(BDRVNBDState *s, - NBDReplyChunkIter *iter, - uint64_t handle, - QEMUIOVector *qiov, NBDReply *rep= ly, - void **payload) +static bool coroutine_fn nbd_reply_chunk_iter_receive(BDRVNBDState *s, + NBDReplyChunkIter *i= ter, + uint64_t handle, + QEMUIOVector *qiov, = NBDReply *reply, + void **payload) { int ret, request_ret; NBDReply local_reply; --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650029403461468.8574769911479; Fri, 15 Apr 2022 06:30:03 -0700 (PDT) Received: from localhost ([::1]:33274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfM1S-00013A-Aq for importer@patchew.org; Fri, 15 Apr 2022 09:30:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLrh-00078C-0d; Fri, 15 Apr 2022 09:19:57 -0400 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]:46785) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLrf-0007wJ-HR; Fri, 15 Apr 2022 09:19:56 -0400 Received: by mail-ej1-x634.google.com with SMTP id t11so15301957eju.13; Fri, 15 Apr 2022 06:19:54 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:19:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4PvFr4zAg2gcZWEKCQhyWR6VZ3/7rqXVGgtUQ04S3mk=; b=ooF/DEXkItBC5lQONrK91Va2mKh8mqAxlyZEssRuhKdMafnFjKz0DgwBP8H1S00Y3q NQphNc6yxcUefZ/hEFTxn3mO6aDYaj5wD8xw3/W9RYfvH/5LTfv1uryJENjqRuBhW/a1 fwPDoQdxm4e+pEniSTMyJahU0d89QgNbAaVs2tQHwiy93wvMDz9Qds640wWzFCaDTxa3 Ohd9y9H/KQ2WVSjq0HxK5J4kuhOIcllUgN4P0CK0ssYsyyt8wO1pLHqkNKaX3dvGwPKa UHzYvVLVaIGR8iJgaR5Wso4luhX95zfjAQdK3ZcOZ5G1mXc5FgrG1zEpfAgVpZkPhirP THwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=4PvFr4zAg2gcZWEKCQhyWR6VZ3/7rqXVGgtUQ04S3mk=; b=ebzab9B95sYv1tmJdnhldos8zUnb8idhm0dfQxVOcqb8bfvoTume6ac6QfOKy3UqPf FqvTFwtpn9P1ZiASDK2mqHPk1DHGc78B5qgAjntgpc4lbgk5wINgfAKMLcuCzioaBI/P Waf8u+W2Jn4Mv45ljR98ga0t3V0cYW6jVA6g3cQaLJ6H57dc9DbZZ31od7/Eh7tINeSM n1EhduZkfp0eTs3n0tPKg5/5JZM3jTjwoljougAwMlWIhLIDPjTYQZObt5Z/plSnwsHU OrfdYoQzr9Iy6N/Eeip4KjX/3MS6yWCQ9Q71UlP1aPm69IZD+/ycF7dtVxD9InvfE+qg K2Zg== X-Gm-Message-State: AOAM5308ZQzrtjjCn36Orj5kvMTtKBMTkN0tbVhYSYA4rCfArNNK9AkH a9Rl1giFddL522GCF8+LHQZqOClxi23UcQ== X-Google-Smtp-Source: ABdhPJxW5nyWWf8mkKn9L5EkjQKNTHPT3+4L9Dugo4YcX0rFlISYDnD/m+sTFCLHGBeO2HBH9Mb/CA== X-Received: by 2002:a17:906:e18:b0:6e8:69c2:528c with SMTP id l24-20020a1709060e1800b006e869c2528cmr6064766eji.439.1650028793751; Fri, 15 Apr 2022 06:19:53 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 11/26] nfs: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:45 +0200 Message-Id: <20220415131900.793161-12-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x634.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650029405125100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- block/nfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/nfs.c b/block/nfs.c index 444c40b458..596ebe98cb 100644 --- a/block/nfs.c +++ b/block/nfs.c @@ -223,7 +223,7 @@ static void nfs_process_write(void *arg) qemu_mutex_unlock(&client->mutex); } =20 -static void nfs_co_init_task(BlockDriverState *bs, NFSRPC *task) +static void coroutine_fn nfs_co_init_task(BlockDriverState *bs, NFSRPC *ta= sk) { *task =3D (NFSRPC) { .co =3D qemu_coroutine_self(), --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650029777945682.2047141280278; Fri, 15 Apr 2022 06:36:17 -0700 (PDT) Received: from localhost ([::1]:41712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfM7U-0006vC-Ec for importer@patchew.org; Fri, 15 Apr 2022 09:36:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLrl-0007Dh-GV; Fri, 15 Apr 2022 09:20:06 -0400 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:38454) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLrj-0007zz-Rd; Fri, 15 Apr 2022 09:20:01 -0400 Received: by mail-ed1-x532.google.com with SMTP id z99so9911934ede.5; Fri, 15 Apr 2022 06:19:59 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PTpiMctGFRNCeUD0zfF0QDxVsAAFlrqIKcCLw448UvM=; b=nO7DdlG/3A3dwFh6W9ya2RJV1gsfJw193C12d7XZWPVPdU+hnbxrF/lFy1bPYMXw99 nFA8c6tnCdzuOLlu1GD8HryxMhS77LM9hlrIi3gaGV5d+DcRyDecmEA1fMzqBUPoUOo8 KTiobYT0tbFTmujUk5m9fsZkRQ9j/bDl5VD6oIYTqV2ByhoDTrvBUQ7XDiffpvJlqQwV 1gxBNAa3g3JPd2gjQfoKOYX1sO0BiTUVbAauJn5J3Aceqq+K7tqEvq8evDOWfC/RIxwU RFBrBbXMkyBgTFAnpvBjskIeHOakrTSPJeGZSjxEvtCEuL4fjS9YYnr81SrL61jd+nLz L3bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=PTpiMctGFRNCeUD0zfF0QDxVsAAFlrqIKcCLw448UvM=; b=4xjA4CC0F1osW9UkDag2QWn22zB+MxATMojBkrJ8Hq82wNYA0xlxKBikI71VVemWGI QjgOMmu8VEVobot0LwJtRQRr7iJhK/e4WGvwzeCBEhED+SgWdMunhgBuL8DhlsMKdkXN ej+rrAMqTEC22rJiTcF6fpZg+nFX4PhjHKbkF+h0rsCmIzB77qr3OiB3g9UJGxX0briB TzRG5NOZiuRJTJboMNPxKgd6cF81W/lXwFAni6dwhW7HQ3jZlIPSLi8kdFyqhthzhRQa NWuczjJ6SDzgUjG14E8T1SrEwRmV8Nz3neD5jFeAuX46Aidvda+oiW8FWsrZ7D8SKBsS 3rUA== X-Gm-Message-State: AOAM532pw1imLvfMR7AfThLB53DwndLlkUwUz6EZ9S71FUPCcIlPytNp Vbo9oZneNGQpX3PdoiMGe86Dtjqtic9V7Q== X-Google-Smtp-Source: ABdhPJxtJ0Z5OdsdBr495uFtAwj0ZLgGmGY1NOnHjLALcRww//5b2LSqDbhLJvORhByDAzk83K3Wtg== X-Received: by 2002:a05:6402:2945:b0:41d:aad:c824 with SMTP id ed5-20020a056402294500b0041d0aadc824mr8255859edb.364.1650028798277; Fri, 15 Apr 2022 06:19:58 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 12/26] nvme: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:46 +0200 Message-Id: <20220415131900.793161-13-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=paolo.bonzini@gmail.com; helo=mail-ed1-x532.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650029778882100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- block/nvme.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/block/nvme.c b/block/nvme.c index 01fb28aa63..6519697e40 100644 --- a/block/nvme.c +++ b/block/nvme.c @@ -1234,8 +1234,9 @@ static inline bool nvme_qiov_aligned(BlockDriverState= *bs, return true; } =20 -static int nvme_co_prw(BlockDriverState *bs, uint64_t offset, uint64_t byt= es, - QEMUIOVector *qiov, bool is_write, int flags) +static coroutine_fn int nvme_co_prw(BlockDriverState *bs, + uint64_t offset, uint64_t bytes, + QEMUIOVector *qiov, bool is_write, int flags) { BDRVNVMeState *s =3D bs->opaque; int r; --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650029183572977.5222671851001; Fri, 15 Apr 2022 06:26:23 -0700 (PDT) Received: from localhost ([::1]:48334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfLxu-0000X9-JS for importer@patchew.org; Fri, 15 Apr 2022 09:26:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLrq-0007FM-HD; Fri, 15 Apr 2022 09:20:25 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]:33536) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLrp-0008BI-3s; Fri, 15 Apr 2022 09:20:06 -0400 Received: by mail-ej1-x636.google.com with SMTP id s18so15439190ejr.0; Fri, 15 Apr 2022 06:20:04 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.19.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YqP5juE8so3NQtrdckWYrtnqcc5LeThHKJxEEA5BQq0=; b=cuk3B0GaxoSM1SM9vO5BvzYFHZTTX0d+VGLVDs4w0mPsjzG6vhGVqirkZC4y6fI8Vm eoCj819w3Sv353peJiD+kp9XrIpj6cQZtm9Pp0D6NtZqv8EW07PRv/0x8Ym56udOfd4N wL1q0euzZ+1hxHbnxcvw0KprS7bbqwrYfy+k3rvLJfLYTOV1oU02W5wO83QW7J+jGaqd tg+PabhnXa2m7O4gVxRnngK9S7jMNSbjPrrMEjPsUvS6UvAs0vt3xWmX1RBFaK4TsezV 6ZG6gbNaeHb+c5dWql1b7QWS+IpIqU1zpYF2J1hvtx7TRxYvFFMHFmb/hLkyXE4d3jxa Sz4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=YqP5juE8so3NQtrdckWYrtnqcc5LeThHKJxEEA5BQq0=; b=ejpppJX5oIHJ4QEoAdITnceP+NiqnZb6qDr4S0NUYoZmRDCQIstuYAgfqkV7FxOz7i ELpFSNWnvORN4ugAPSdSjX48zlvGJfhNraPzzj4GfH4wv1OngiN/FRjHMVGSdShvimd7 DYxlRDS5uJKIwVXg3hOnTZmM5lbStE0p4LMKbdpKamT7MXVAlm+eFnUPpbZaW2uEOBG6 LoqrUHwPIh8mf7IQmZpAEVWdWyPtlrX8MFILgHge58LgcCUI/buRP/tnvOzqaYcyVTEJ y/HpVcrfEFLx1nLwAvAGizgXtXb28LL07qX8xKo3Z81lX0mo286B/bfVlotU3C1HfM0M AsKw== X-Gm-Message-State: AOAM5310wixpenvzodRwz5qeruifmAAgNfbLXluA/aH1BSWJreCxtupO kzCktx7+wuI8M5QITNiDlGNFsHKAkwuBiQ== X-Google-Smtp-Source: ABdhPJwHECUxruE+OKB0o6WQ4efdPJk3/tXismSRFzzu/kC1NOUF98ToqS0nueIy1dMnrJt0fPDtvg== X-Received: by 2002:a17:906:1615:b0:6bb:150f:adf8 with SMTP id m21-20020a170906161500b006bb150fadf8mr6210533ejd.272.1650028803367; Fri, 15 Apr 2022 06:20:03 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 13/26] parallels: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:47 +0200 Message-Id: <20220415131900.793161-14-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650029184048100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- block/parallels.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/block/parallels.c b/block/parallels.c index 8879b7027a..bee2ff023d 100644 --- a/block/parallels.c +++ b/block/parallels.c @@ -165,8 +165,9 @@ static int64_t block_status(BDRVParallelsState *s, int6= 4_t sector_num, return start_off; } =20 -static int64_t allocate_clusters(BlockDriverState *bs, int64_t sector_num, - int nb_sectors, int *pnum) +static coroutine_fn int64_t allocate_clusters(BlockDriverState *bs, + int64_t sector_num, + int nb_sectors, int *pnum) { int ret =3D 0; BDRVParallelsState *s =3D bs->opaque; --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650029950583397.76820925067057; Fri, 15 Apr 2022 06:39:10 -0700 (PDT) Received: from localhost ([::1]:49616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfMAH-0003yI-ED for importer@patchew.org; Fri, 15 Apr 2022 09:39:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLru-0007FV-Ak; Fri, 15 Apr 2022 09:20:31 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:35838) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLrs-0008Fv-2x; Fri, 15 Apr 2022 09:20:09 -0400 Received: by mail-ej1-x62b.google.com with SMTP id l7so15389003ejn.2; Fri, 15 Apr 2022 06:20:07 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:20:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W6OUlIhw+Phlbrj8zmiBGLbzAZ/41yV+ixhKmOGR0js=; b=i87JjXFev+z/uqBZ2gjWkZseq1/K5mYWo0I8kDWeypvlDRz6oIWP+liBe9FmYIpa5q 8+mJQ2aNw0dTFn7AHxibdFh18LbKKd0R7Z6QrPICU/zMUAX2DmqLd/Ch59riX4AqDeIO 5dwN4Vsp8tK26cS1olnjpNnvpA7CJE4eNagiE9eLyBT0lPDsZ8uhAi88zYPGmQ7mi1eB cjtsJ4MtjpTjhbA9qYdhGABAc/bczoQ8l6hsrnNdJ+RlRn38M+xCBRwVRGJKrnGYanGs 4xswLXkhbBDGpw4PimAoRTH1D8aNNBuD7F9mQyuEjiopTCpiDDRPqG4q66ukFlOvY0rH 1e4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=W6OUlIhw+Phlbrj8zmiBGLbzAZ/41yV+ixhKmOGR0js=; b=GmKu13HWWC/0Z7/YIrJOJHJU4f0wfFj/ONKN8Nkn5pkRYH2RY9jSDXQaWpBVDGq7g+ M9B9Dtwwl8hjv9wCBli8AAiljXR1Yd2mUZP53RavnMwoi/IeWnGQQNm4XihRZ17tCmZ0 a9Km40hqRmQ8CjsVjcu4X/luViaRc4Q9Ed4hdCPxuW+rUaMZqNMueRSwJQ629/tEgD/s 8ha4lN7wO09ZpkSiom80HP+Jwzli1/9Pl7obEsvF+dIw7sXsSpj0I/iEVcm0jbSdCIE3 dXYGYmEo2KBxZD/JR9xM9bGwcuI23e113S6aiqiD3s9DRu/lmt7SS3xq7qFXrSnpoGXl gHNA== X-Gm-Message-State: AOAM533m06SjkDmR1y9RBA4qKCshKQUv1HV3JirHClWWcEcjFVqJrAoj ENbvBeli3PrAmBt/KHCwNXfIecI1RNiinQ== X-Google-Smtp-Source: ABdhPJxft95Db4duSZnkqZRvIvIGWRS28fe7vPwCWhin+joCx0ghLFFqA8z/4UZV3SbFq9h9T9LlEA== X-Received: by 2002:a17:907:6284:b0:6e0:f895:15a with SMTP id nd4-20020a170907628400b006e0f895015amr6314594ejc.713.1650028806507; Fri, 15 Apr 2022 06:20:06 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 14/26] qcow2: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:48 +0200 Message-Id: <20220415131900.793161-15-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650029951095100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- block/qcow2-cluster.c | 18 +++++++++--------- block/qcow2-refcount.c | 2 +- block/qcow2.c | 4 ++-- block/qcow2.h | 14 +++++++------- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 20a16ba6ee..37fc7b905a 100644 --- a/block/qcow2-cluster.c +++ b/block/qcow2-cluster.c @@ -884,7 +884,7 @@ int qcow2_alloc_compressed_cluster_offset(BlockDriverSt= ate *bs, return 0; } =20 -static int perform_cow(BlockDriverState *bs, QCowL2Meta *m) +static int coroutine_fn perform_cow(BlockDriverState *bs, QCowL2Meta *m) { BDRVQcow2State *s =3D bs->opaque; Qcow2COWRegion *start =3D &m->cow_start; @@ -1024,7 +1024,7 @@ fail: return ret; } =20 -int qcow2_alloc_cluster_link_l2(BlockDriverState *bs, QCowL2Meta *m) +int coroutine_fn qcow2_alloc_cluster_link_l2(BlockDriverState *bs, QCowL2M= eta *m) { BDRVQcow2State *s =3D bs->opaque; int i, j =3D 0, l2_index, ret; @@ -1397,8 +1397,8 @@ static int count_single_write_clusters(BlockDriverSta= te *bs, int nb_clusters, * information on cluster allocation may be invalid now. The cal= ler * must start over anyway, so consider *cur_bytes undefined. */ -static int handle_dependencies(BlockDriverState *bs, uint64_t guest_offset, - uint64_t *cur_bytes, QCowL2Meta **m) +static int coroutine_fn handle_dependencies(BlockDriverState *bs, uint64_t= guest_offset, + uint64_t *cur_bytes, QCowL2Met= a **m) { BDRVQcow2State *s =3D bs->opaque; QCowL2Meta *old_alloc; @@ -1772,9 +1772,9 @@ out: * * Return 0 on success and -errno in error cases */ -int qcow2_alloc_host_offset(BlockDriverState *bs, uint64_t offset, - unsigned int *bytes, uint64_t *host_offset, - QCowL2Meta **m) +int coroutine_fn qcow2_alloc_host_offset(BlockDriverState *bs, uint64_t of= fset, + unsigned int *bytes, uint64_t *ho= st_offset, + QCowL2Meta **m) { BDRVQcow2State *s =3D bs->opaque; uint64_t start, remaining; @@ -2105,8 +2105,8 @@ out: return ret; } =20 -int qcow2_subcluster_zeroize(BlockDriverState *bs, uint64_t offset, - uint64_t bytes, int flags) +int coroutine_fn qcow2_subcluster_zeroize(BlockDriverState *bs, uint64_t o= ffset, + uint64_t bytes, int flags) { BDRVQcow2State *s =3D bs->opaque; uint64_t end_offset =3D offset + bytes; diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index b6f90b2702..ef4cbaedf2 100644 --- a/block/qcow2-refcount.c +++ b/block/qcow2-refcount.c @@ -3561,7 +3561,7 @@ int64_t qcow2_get_last_cluster(BlockDriverState *bs, = int64_t size) return -EIO; } =20 -int qcow2_detect_metadata_preallocation(BlockDriverState *bs) +int coroutine_fn qcow2_detect_metadata_preallocation(BlockDriverState *bs) { BDRVQcow2State *s =3D bs->opaque; int64_t i, end_cluster, cluster_count =3D 0, threshold; diff --git a/block/qcow2.c b/block/qcow2.c index b5c47931ef..d1c35cd290 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -2434,7 +2434,7 @@ static bool merge_cow(uint64_t offset, unsigned bytes, * Return 1 if the COW regions read as zeroes, 0 if not, < 0 on error. * Note that returning 0 does not guarantee non-zero data. */ -static int is_zero_cow(BlockDriverState *bs, QCowL2Meta *m) +static int coroutine_fn is_zero_cow(BlockDriverState *bs, QCowL2Meta *m) { /* * This check is designed for optimization shortcut so it must be @@ -2452,7 +2452,7 @@ static int is_zero_cow(BlockDriverState *bs, QCowL2Me= ta *m) m->cow_end.nb_bytes); } =20 -static int handle_alloc_space(BlockDriverState *bs, QCowL2Meta *l2meta) +static int coroutine_fn handle_alloc_space(BlockDriverState *bs, QCowL2Met= a *l2meta) { BDRVQcow2State *s =3D bs->opaque; QCowL2Meta *m; diff --git a/block/qcow2.h b/block/qcow2.h index c8d9e8ea79..36495d9051 100644 --- a/block/qcow2.h +++ b/block/qcow2.h @@ -895,7 +895,7 @@ int qcow2_change_refcount_order(BlockDriverState *bs, i= nt refcount_order, void *cb_opaque, Error **errp); int qcow2_shrink_reftable(BlockDriverState *bs); int64_t qcow2_get_last_cluster(BlockDriverState *bs, int64_t size); -int qcow2_detect_metadata_preallocation(BlockDriverState *bs); +int coroutine_fn qcow2_detect_metadata_preallocation(BlockDriverState *bs); =20 /* qcow2-cluster.c functions */ int qcow2_grow_l1_table(BlockDriverState *bs, uint64_t min_size, @@ -908,9 +908,9 @@ int qcow2_encrypt_sectors(BDRVQcow2State *s, int64_t se= ctor_num, int qcow2_get_host_offset(BlockDriverState *bs, uint64_t offset, unsigned int *bytes, uint64_t *host_offset, QCow2SubclusterType *subcluster_type); -int qcow2_alloc_host_offset(BlockDriverState *bs, uint64_t offset, - unsigned int *bytes, uint64_t *host_offset, - QCowL2Meta **m); +int coroutine_fn qcow2_alloc_host_offset(BlockDriverState *bs, uint64_t of= fset, + unsigned int *bytes, uint64_t *ho= st_offset, + QCowL2Meta **m); int qcow2_alloc_compressed_cluster_offset(BlockDriverState *bs, uint64_t offset, int compressed_size, @@ -918,13 +918,13 @@ int qcow2_alloc_compressed_cluster_offset(BlockDriver= State *bs, void qcow2_parse_compressed_l2_entry(BlockDriverState *bs, uint64_t l2_ent= ry, uint64_t *coffset, int *csize); =20 -int qcow2_alloc_cluster_link_l2(BlockDriverState *bs, QCowL2Meta *m); +int coroutine_fn qcow2_alloc_cluster_link_l2(BlockDriverState *bs, QCowL2M= eta *m); void qcow2_alloc_cluster_abort(BlockDriverState *bs, QCowL2Meta *m); int qcow2_cluster_discard(BlockDriverState *bs, uint64_t offset, uint64_t bytes, enum qcow2_discard_type type, bool full_discard); -int qcow2_subcluster_zeroize(BlockDriverState *bs, uint64_t offset, - uint64_t bytes, int flags); +int coroutine_fn qcow2_subcluster_zeroize(BlockDriverState *bs, uint64_t o= ffset, + uint64_t bytes, int flags); =20 int qcow2_expand_zero_clusters(BlockDriverState *bs, BlockDriverAmendStatusCB *status_cb, --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 165003004934681.58184268496518; Fri, 15 Apr 2022 06:40:49 -0700 (PDT) Received: from localhost ([::1]:52470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfMBs-0005wb-8U for importer@patchew.org; Fri, 15 Apr 2022 09:40:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLsC-0007G1-F2; Fri, 15 Apr 2022 09:20:31 -0400 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:35332) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLs6-0008IM-NK; Fri, 15 Apr 2022 09:20:24 -0400 Received: by mail-ej1-x62f.google.com with SMTP id l7so15389971ejn.2; Fri, 15 Apr 2022 06:20:20 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.20.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HeXge5WfJ8/fiVVZWO8ojQpT8h7eMYKWb2NNZzpR868=; b=PdajPXAs+iRZzPcQ072YAwyfcOEA1H1jky+uOtDC0/v5RSxW95FsVwOwbP6b2Hjd3e HPdDghgacceRtmlxfLn5pkfNPykaM8/Jssw0pY5LaTmPZAFrOqvKOduKHokQ4Qq3WvRW IxpYW4VgMxB4pVGUyFbm8xf2IDpRgmzwIZmhAX22tZUB0kwIT787iKEjgvm51fntj0Sc qeuTLiwyMZsLYnCfbCOTrhGldH6PVYxaFXDAYo0XrM3j+adprMuZoi6qOxHxii5AE9xP 229LvV8wV05NM9HT7gdbP+dur2wNS8Z2s7MHll/O1tiIeDHvYNDlLIYZyJSMYudUUGQs TQgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=HeXge5WfJ8/fiVVZWO8ojQpT8h7eMYKWb2NNZzpR868=; b=KFXTiocicSL3P0E1IqlJGyTb279oEU8kwfjTTxJPZHNWtfpw40lTuKGeEdUxgVnPX5 uGnkkVAPRtsDN4Kf8D3HOnKW55bkWwVadvAZzAi5l2vaoaMxfsE3nA/PEXcpJHO17AmJ GR0jjMI6YM4MtW00u++x/lf4zzdbQurIlaI87RpXW4LwL4MI+IXWzk1JpH47zgCiWFhW B1YzuNVNVMbsGct3waQlMDng2el4MyVzDPiJmzdEaWhPvNlxjUZo5gMIzaaiWONxXnJu CiOJcxZdqzC0QfdfeVjsImwuEuLPMRLFSa4I5TQir5Q0q5Elh95N2iBjciR+4DU8CrDZ 5nEQ== X-Gm-Message-State: AOAM532sx1nJNsX77Lt5l62pjh+48HmYlwBGFqRe20K9AYa3J9ifapUG zfH0QJUed6+Jk/8inVHobvpiS8/4yXclSA== X-Google-Smtp-Source: ABdhPJwWYmt0QPpfVeCvWhsJjkuSCW5DMdTxz2Vq2/VQTTu3c6NEBrtykOxRfNuZCaNiLtvBxXtv7A== X-Received: by 2002:a17:907:da6:b0:6ec:f599:b053 with SMTP id go38-20020a1709070da600b006ecf599b053mr4186330ejc.503.1650028819090; Fri, 15 Apr 2022 06:20:19 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 15/26] copy-before-write: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:49 +0200 Message-Id: <20220415131900.793161-16-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x62f.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650030051538100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- block/copy-before-write.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/block/copy-before-write.c b/block/copy-before-write.c index a8a06fdc09..5ad9693b13 100644 --- a/block/copy-before-write.c +++ b/block/copy-before-write.c @@ -165,9 +165,9 @@ static int coroutine_fn cbw_co_flush(BlockDriverState *= bs) * It's guaranteed that guest writes will not interact in the region until * cbw_snapshot_read_unlock() called. */ -static BlockReq *cbw_snapshot_read_lock(BlockDriverState *bs, - int64_t offset, int64_t bytes, - int64_t *pnum, BdrvChild **file) +static coroutine_fn BlockReq *cbw_snapshot_read_lock(BlockDriverState *bs, + int64_t offset, int64= _t bytes, + int64_t *pnum, BdrvCh= ild **file) { BDRVCopyBeforeWriteState *s =3D bs->opaque; BlockReq *req =3D g_new(BlockReq, 1); @@ -197,7 +197,7 @@ static BlockReq *cbw_snapshot_read_lock(BlockDriverStat= e *bs, return req; } =20 -static void cbw_snapshot_read_unlock(BlockDriverState *bs, BlockReq *req) +static coroutine_fn void cbw_snapshot_read_unlock(BlockDriverState *bs, Bl= ockReq *req) { BDRVCopyBeforeWriteState *s =3D bs->opaque; =20 --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650030120878486.2712093167088; Fri, 15 Apr 2022 06:42:00 -0700 (PDT) Received: from localhost ([::1]:54724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfMD1-0007cF-Nm for importer@patchew.org; Fri, 15 Apr 2022 09:41:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLsD-0007G2-KS; Fri, 15 Apr 2022 09:20:31 -0400 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]:33537) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLs8-0008Ir-HH; Fri, 15 Apr 2022 09:20:29 -0400 Received: by mail-ej1-x633.google.com with SMTP id s18so15440600ejr.0; Fri, 15 Apr 2022 06:20:22 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.20.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:20:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uQh22lnufKAWgD5CqwEj3x+kz0+ZoWkWusiZbQ7A4AM=; b=lv6P6olkgWSZadYPGtN+SHgR4ERLXdHne+/PBaFEA2mu2Q67256HOqfv5QmEjnuztf iUcs2RkRx2HXvcr7qGugdpxxw+pheicaApR+wHnGqzOcAyB6ZlR4/7VDqxgX5zxeWJ4Y ZorgIp78qDkMw2EylXl3CI4QMHjTQE7u6xrlbK3w3VIq44bKS9W4rIxdNFDedWgORl/0 VkSeNUfCSMx9SaplEPdAxAku1GNdbBa9ZmEyFqgFzBAYPAExQZFdXldenDS3kwfespkF Gr4BsHqjG3ho0yuweO4cYhuxtSjCZf84UR1uaSCZrIQjGJ5W+b4Bq7u0Alj+Hmske7JJ Gwtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=uQh22lnufKAWgD5CqwEj3x+kz0+ZoWkWusiZbQ7A4AM=; b=uRaH8rd2P1N9uGchzP333RjZG2ULxJmbemOsM0KvNgSxdLHijuRLp7f4+7pV1QxEdc BlrjzLiDvaFLyup3gRnq4Abqv1lxFFp6z75HpM2Imdv53gPNFZGCvDnRlg/39egCl5PE r+W1Q17Acy8cADB4l5ian+XxEW5WeoW2LZjmt+suRzY2C5DRQaVr0q4AqykDcuBX1mz4 DTxQ/OiW7YGUyelgc2Z82FBTp2PbJ0QvKRVLEVPqPSTXYtI7HWNC6HbCvQXdmGF7kGOu wR70fbFIQ5CMSSoWRsSg9wQZO0e/Oz2QXA5GbDSBGkskuxPmcCCMabunldwv4JOnK5cl +btA== X-Gm-Message-State: AOAM532Drn6nWkgvAyyEyzbtXAisGw5khd94V2aYDPgqNl3uWEvVdmZ3 vcKCoEWpvLMsiaWaX0zMHHX46Ns97uneKw== X-Google-Smtp-Source: ABdhPJzBuPzAZyG0Llqov/owBzanUTWDZwjS6XADfh1d7wpulwr4tvgzZBW0Jz1zPTh9KyifhuA0SA== X-Received: by 2002:a17:907:6e0d:b0:6e0:59ae:21f1 with SMTP id sd13-20020a1709076e0d00b006e059ae21f1mr6384387ejc.362.1650028821499; Fri, 15 Apr 2022 06:20:21 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 16/26] curl: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:50 +0200 Message-Id: <20220415131900.793161-17-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::633; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x633.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650030121910100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- block/curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/curl.c b/block/curl.c index 1e0f609579..cba4c4cac7 100644 --- a/block/curl.c +++ b/block/curl.c @@ -855,7 +855,7 @@ out_noclean: return -EINVAL; } =20 -static void curl_setup_preadv(BlockDriverState *bs, CURLAIOCB *acb) +static void coroutine_fn curl_setup_preadv(BlockDriverState *bs, CURLAIOCB= *acb) { CURLState *state; int running; --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16500302561259.32694463488724; Fri, 15 Apr 2022 06:44:16 -0700 (PDT) Received: from localhost ([::1]:59082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfMFC-00028T-QU for importer@patchew.org; Fri, 15 Apr 2022 09:44:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLsI-0007HY-9S; Fri, 15 Apr 2022 09:20:36 -0400 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:42934) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLsG-0008SV-MB; Fri, 15 Apr 2022 09:20:34 -0400 Received: by mail-ej1-x62f.google.com with SMTP id i27so15335794ejd.9; Fri, 15 Apr 2022 06:20:31 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.20.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:20:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A7C8lG6R8RX27Fo+XJU6Uqyin0IHJd8cGVFwfHkJe4Q=; b=cB5lJ7uAdz3jBbuQ8fuqA10d69GcCcXMXdVoqHmqzVNidj92/V4zkjYS33dBxACH4j Fruz6XN9WXatwvjY1ovw55qRaKr/e3P7A4lb2iuOvb+DZ5jSGknOIWDsAOeIHuyNS3MI VGj0pBS/wQ51ytCHR2H3Klp/ZFi0WjA+XpEtb3hd5ppHFNP1HCoPg8FGQJAAf0DAzXpi ARx5Tr3+9mIXz9GESostT4BbrprsKr9HUNMKCE7AGIfnI3MNwXIMGy/KBO+tZs7ydY+H 5Dp5vEfaqD4kL1sqexf8hv+OMuLV69nB1O4I9d+zSJE5vxvHPvOHysN6x0fcZpbvBj7/ VM1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=A7C8lG6R8RX27Fo+XJU6Uqyin0IHJd8cGVFwfHkJe4Q=; b=KFHgbgt29H1rcZaWGTejTj2UE07Z31+BvD8DaUKwXd200o23Y9yP3nUVNHO7Z64/C8 wLxIb04RfA7T9befrXFsBNHW8sUYYb1UdBpAlOCAb8V/Jjjcp/gxEt1yGQ6rypVPfxvp uB1sO7Eq1kk1GMe6kk063v64KVueHOxFN3+BrEQ/vvs5GhN5ronSk7YVVY0v3B7/l7jk 1b6DQl+NkczZJNUQ9mErZmTly52W0il1W5qOsmInWVYU/0/UfcTaRhBOPvEMOlpLbZ2q SuG1UNjvxK66xe0zubXCySbqc/x6i4z0iC4TlULsrFVSvVTmHhuo8YaYPV9vVwnOYiib 37Yg== X-Gm-Message-State: AOAM533hcYx7/+s8vgfTwlewwVaLxO72ZogS9AkRx3qmFD6sGRJYJI5s m8MY0fLnVe1MTg6xmHzAPSt51aN9sTAw5w== X-Google-Smtp-Source: ABdhPJyXJ5VfLh7pfrCKSJNq7Ztebv+37KbUiMpjHwk/q3gUDmD5/Mo3BnvAZilaVaTsnc/5KIllKg== X-Received: by 2002:a17:907:3e16:b0:6df:b4f0:5cc2 with SMTP id hp22-20020a1709073e1600b006dfb4f05cc2mr6302462ejc.285.1650028830476; Fri, 15 Apr 2022 06:20:30 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 17/26] qed: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:51 +0200 Message-Id: <20220415131900.793161-18-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x62f.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650030257049100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- block/qed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/qed.c b/block/qed.c index f34d9a3ac1..208128d679 100644 --- a/block/qed.c +++ b/block/qed.c @@ -259,7 +259,7 @@ static CachedL2Table *qed_new_l2_table(BDRVQEDState *s) return l2_table; } =20 -static bool qed_plug_allocating_write_reqs(BDRVQEDState *s) +static bool coroutine_fn qed_plug_allocating_write_reqs(BDRVQEDState *s) { qemu_co_mutex_lock(&s->table_lock); =20 @@ -278,7 +278,7 @@ static bool qed_plug_allocating_write_reqs(BDRVQEDState= *s) return true; } =20 -static void qed_unplug_allocating_write_reqs(BDRVQEDState *s) +static void coroutine_fn qed_unplug_allocating_write_reqs(BDRVQEDState *s) { qemu_co_mutex_lock(&s->table_lock); assert(s->allocating_write_reqs_plugged); --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650029584897956.1586484004146; Fri, 15 Apr 2022 06:33:04 -0700 (PDT) Received: from localhost ([::1]:36742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfM4N-0003VD-66 for importer@patchew.org; Fri, 15 Apr 2022 09:33:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLsP-0007Ik-45; Fri, 15 Apr 2022 09:20:44 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:40544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLsM-0008Td-C9; Fri, 15 Apr 2022 09:20:40 -0400 Received: by mail-ed1-x52b.google.com with SMTP id v4so9899717edl.7; Fri, 15 Apr 2022 06:20:37 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.20.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:20:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WqtILOyZNJAH6lSpTMECSN6V7UXBlL2LcrOyrAYW4Co=; b=qTl/X5FIF3+gJaoVATSI1Diq4+HYQbfQLVdn7uWQ3M4rg5Au6v+U7uBui+EKHMfB9x NeRteEgndg9rtlRP7cG8Penez1/2rRhlBs1ZvvaELtICITd/zli/M7WHvOB5nouPxUu6 DyEmahp/aTauNkaxFuPVBxV9bn8B53XHBZV4k3XAohvduRkNGNtq4tjJYnlCj2FBpMpO zHe7oVxQcrqizH/7x/dVLdiqxaK5p723qVGS1O45VeWC4EBItLfk2djYU2gW42BBzbjQ wXC/hLTxID40lQXAzo1z9GvLolAzipa4czdpt5W+SNbsGwqtZskNtstlBouwHSR6LvjL NK5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=WqtILOyZNJAH6lSpTMECSN6V7UXBlL2LcrOyrAYW4Co=; b=Ky8AeKtqzFAJ8vRYcq9ji3UKHq5IHY37QVaVEj+reJ2Wi+hkfYS3k4a30ycwTZ71TQ wNSK9DTG6Ft9mr97RvmRFH2Ym8KguIyh1PwYhE+E9uD5QJzL+WdWH12yAuk10DpvRkk4 lzVhZf0UgNWhCzk3v6Mr+2M+yQBhwi6hJRSCRYV6dUD8QkM/fo2UcXr9ElcOvvfIvVIJ zvkADkPmsisE6tLbT9D3luJUes07bLzH70CEHwLh4WNSOjTrUjSkxXYqNdBfQ39WC/Nl zALjpklZtosKdolC/oc7X4gQmT2fBJqfaRt2P9bmRt35/TxtWbn0/BsjzKn8cg1HTKys FA3Q== X-Gm-Message-State: AOAM532WikvAALualfMioQKICcHKs0mwaJ0KFx6VAsAcRKHxNUIduDNk D7G7UacOdqudDlbamecNvWQ10OnR+15wkw== X-Google-Smtp-Source: ABdhPJyeM5Q7buk/hKAPjUQ16dKrm9VF1TA9h+wGPebZYe81KnSSQFfiqnKsLYgcHVnuS84g3LqtZA== X-Received: by 2002:a05:6402:1909:b0:418:d876:3119 with SMTP id e9-20020a056402190900b00418d8763119mr8455403edz.266.1650028836161; Fri, 15 Apr 2022 06:20:36 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 18/26] quorum: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:52 +0200 Message-Id: <20220415131900.793161-19-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=paolo.bonzini@gmail.com; helo=mail-ed1-x52b.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650029585989100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- block/quorum.c | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/block/quorum.c b/block/quorum.c index f33f30d36b..5ff69d7443 100644 --- a/block/quorum.c +++ b/block/quorum.c @@ -161,11 +161,10 @@ static bool quorum_64bits_compare(QuorumVoteValue *a,= QuorumVoteValue *b) return a->l =3D=3D b->l; } =20 -static QuorumAIOCB *quorum_aio_get(BlockDriverState *bs, - QEMUIOVector *qiov, - uint64_t offset, - uint64_t bytes, - int flags) +static QuorumAIOCB *coroutine_fn quorum_aio_get(BlockDriverState *bs, + QEMUIOVector *qiov, + uint64_t offset, uint64_t = bytes, + int flags) { BDRVQuorumState *s =3D bs->opaque; QuorumAIOCB *acb =3D g_new(QuorumAIOCB, 1); @@ -273,7 +272,7 @@ static void quorum_report_bad_versions(BDRVQuorumState = *s, } } =20 -static void quorum_rewrite_entry(void *opaque) +static void coroutine_fn quorum_rewrite_entry(void *opaque) { QuorumCo *co =3D opaque; QuorumAIOCB *acb =3D co->acb; @@ -574,7 +573,7 @@ free_exit: quorum_free_vote_list(&acb->votes); } =20 -static void read_quorum_children_entry(void *opaque) +static void coroutine_fn read_quorum_children_entry(void *opaque) { QuorumCo *co =3D opaque; QuorumAIOCB *acb =3D co->acb; @@ -602,7 +601,7 @@ static void read_quorum_children_entry(void *opaque) } } =20 -static int read_quorum_children(QuorumAIOCB *acb) +static int coroutine_fn read_quorum_children(QuorumAIOCB *acb) { BDRVQuorumState *s =3D acb->bs->opaque; int i; @@ -643,7 +642,7 @@ static int read_quorum_children(QuorumAIOCB *acb) return acb->vote_ret; } =20 -static int read_fifo_child(QuorumAIOCB *acb) +static int coroutine_fn read_fifo_child(QuorumAIOCB *acb) { BDRVQuorumState *s =3D acb->bs->opaque; int n, ret; @@ -664,8 +663,9 @@ static int read_fifo_child(QuorumAIOCB *acb) return ret; } =20 -static int quorum_co_preadv(BlockDriverState *bs, int64_t offset, int64_t = bytes, - QEMUIOVector *qiov, BdrvRequestFlags flags) +static int coroutine_fn quorum_co_preadv(BlockDriverState *bs, + int64_t offset, int64_t bytes, + QEMUIOVector *qiov, BdrvRequestFl= ags flags) { BDRVQuorumState *s =3D bs->opaque; QuorumAIOCB *acb =3D quorum_aio_get(bs, qiov, offset, bytes, flags); @@ -684,7 +684,7 @@ static int quorum_co_preadv(BlockDriverState *bs, int64= _t offset, int64_t bytes, return ret; } =20 -static void write_quorum_entry(void *opaque) +static void coroutine_fn write_quorum_entry(void *opaque) { QuorumCo *co =3D opaque; QuorumAIOCB *acb =3D co->acb; @@ -715,9 +715,9 @@ static void write_quorum_entry(void *opaque) } } =20 -static int quorum_co_pwritev(BlockDriverState *bs, int64_t offset, - int64_t bytes, QEMUIOVector *qiov, - BdrvRequestFlags flags) +static int coroutine_fn quorum_co_pwritev(BlockDriverState *bs, int64_t of= fset, + int64_t bytes, QEMUIOVector *qio= v, + BdrvRequestFlags flags) { BDRVQuorumState *s =3D bs->opaque; QuorumAIOCB *acb =3D quorum_aio_get(bs, qiov, offset, bytes, flags); @@ -746,8 +746,9 @@ static int quorum_co_pwritev(BlockDriverState *bs, int6= 4_t offset, return ret; } =20 -static int quorum_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, - int64_t bytes, BdrvRequestFlags flags) +static int coroutine_fn quorum_co_pwrite_zeroes(BlockDriverState *bs, + int64_t offset, int64_t by= tes, + BdrvRequestFlags flags) =20 { return quorum_co_pwritev(bs, offset, bytes, NULL, --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 165002986125046.942441717699694; Fri, 15 Apr 2022 06:37:41 -0700 (PDT) Received: from localhost ([::1]:45272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfM8q-0000ye-4P for importer@patchew.org; Fri, 15 Apr 2022 09:37:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLsS-0007Iu-Kr; Fri, 15 Apr 2022 09:20:45 -0400 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]:37702) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLsP-0008To-BI; Fri, 15 Apr 2022 09:20:44 -0400 Received: by mail-ed1-x535.google.com with SMTP id b15so9908393edn.4; Fri, 15 Apr 2022 06:20:40 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.20.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=v1wXjy3dOvISKhKrLTVr4XDRoBc4ykMCUe9x4ZrVMjo=; b=VRqt2mBqqSCI++Sv9wSC9LjYb4cUzCvPamdy7ADbVLY2S099LMSy8s4G7JW/yjRdyY sxcKJPpjQKwPgIWkT78izK3os5zss2hKWhH4fS7CV712gFqqXkhAHJYb1kegCJvq0G/N Lg868L2jhPz7s13khUfVSrUacwSu/2qVBmqpG+w8NBbcc/cn2vnLtc6C/hofbIDTXk9x Z+jt+Dxhf61ZQhJ6/2mXsJCuTkq+1nDT/IALDaUjrKfosvyvXWo4/8hgNA1TGpA6+MPL pMPC+EGNuRHRVg49xKxKGQ/Bl79lTNqs2hDEIlD/S1tDw2kjx34akJpZR9W2sJOmCMjN urDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=v1wXjy3dOvISKhKrLTVr4XDRoBc4ykMCUe9x4ZrVMjo=; b=y/L++x/7nKzI2K/xvUx0qFi6kydGup2PynOz7z6LcL6vgAxt+Tfu9Hl/ULPMKy7eAK wi74If7a+HHIEnDagLsE+WgBoFKyUOkmNBiPiVa/C1ehyPIf7Xwv2hGg+OKYLRte2DmJ OO2NgEU4vpba3J6j0gm7ib3QAbOyMfrrYplR3x8ErH4yhw74cma6tequf6KGJzWW7Fh8 tuQ2+thLJ/8wDZEtVoBaUKfa7wFFjcCcfn4AIKPFtoL6RtnSXCA9YShDMy8OshwZzg/+ PV8SUowIg5puKTHU3KxinKXIxS+lcGPbn7WcLXGY79qrimcgciBg6C9E/4H8y81/1cVj 1RBQ== X-Gm-Message-State: AOAM532xXmfmt64vTpnH1ZVRIhVBGz+r1KbqAD9GAtT/Rj6vAQf5OFGw K1xbnraB4mUhlqMal/ifQRjH6mC6TeYLUg== X-Google-Smtp-Source: ABdhPJzv+p339WCtdSxVk6vHTCJuUdOxCUCDFSnbD6sAjVZJQ1f0qJrsrNyB6BYA1KI8tuubsTpeXg== X-Received: by 2002:a05:6402:50d0:b0:419:7df9:55c8 with SMTP id h16-20020a05640250d000b004197df955c8mr8083309edb.79.1650028839704; Fri, 15 Apr 2022 06:20:39 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 19/26] throttle: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:53 +0200 Message-Id: <20220415131900.793161-20-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::535; envelope-from=paolo.bonzini@gmail.com; helo=mail-ed1-x535.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650029863406100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- block/throttle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/throttle.c b/block/throttle.c index 6e8d52fa24..ddd450593a 100644 --- a/block/throttle.c +++ b/block/throttle.c @@ -162,7 +162,7 @@ static int coroutine_fn throttle_co_pwritev_compressed(= BlockDriverState *bs, BDRV_REQ_WRITE_COMPRESSED); } =20 -static int throttle_co_flush(BlockDriverState *bs) +static int coroutine_fn throttle_co_flush(BlockDriverState *bs) { return bdrv_co_flush(bs->file->bs); } --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650030528624814.7443456344324; Fri, 15 Apr 2022 06:48:48 -0700 (PDT) Received: from localhost ([::1]:35594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfMJb-0005T2-IS for importer@patchew.org; Fri, 15 Apr 2022 09:48:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLsU-0007Nq-Fx; Fri, 15 Apr 2022 09:20:46 -0400 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]:44666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLsS-0008U8-M9; Fri, 15 Apr 2022 09:20:46 -0400 Received: by mail-ed1-x531.google.com with SMTP id c64so9888435edf.11; Fri, 15 Apr 2022 06:20:43 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.20.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:20:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hHG9UaL2QFsVN2h+2yuEM3KkGGegTuTWP1BniOMjvDg=; b=bKOMtu3GM90eOe1rigWKdi4qhkvEsNc6Nou4JfHTSCzD8JBwWz3PiYILM7Fz+vSVOe 3b4pGRAMdXUEyjkVT3XXKsSRcCwoEJJ2UOhNasOXshKeYgX0aKpxomtg4NzfngzEt4DN c2XRSrnvhigXmcjkuH3W3jnJm+5+OVlwHDKCDG4RWuxV0Bg+3ceAYLiFQRYVL/a6NhUq j4OSExNXI6J6JIqaHIjTbMON/aJCvgzIY1zfqwR3FU6gXmbNLP42sJohXxM5rcuiW5K0 2v52qOPa9vOuzAUbafIaCSozvYE7sJhqTJDtG4oFgNUcFhyy38L8DX0Z2eZ0OSydwhK2 3PKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=hHG9UaL2QFsVN2h+2yuEM3KkGGegTuTWP1BniOMjvDg=; b=uu0Sd8quPXyfjOlLl6UnFj0VywJTxCz/qWCDkxDpxrlfwOz5CIeNO35r81W2JH4A0Y Ni8+K+FHxHcY7DPn4c3+679URMrkAxp3y5HZGqppoyJYDot789rxgZU4zDpVY/1pNbtC X3rDkupeuaAb4eUPtpEcfUYIFCy3jjdsQ3C+nge5IAKSRQyd4mIt9j7LtugwcSZIu1uQ S3x52eLOR1LUZjOn6DpVtJxdRUkKtPbJv7M4M/ivbfU68irWgOfefaSPVZM/N/1qw4o1 2SnTvmd9f0Cog4yA9rNKpH2AyBKquRnu1jCCQG+SxaaNbFMh9kKAqojJTMIOKaTaDtOe jF4A== X-Gm-Message-State: AOAM530T9HXV5KE4KQXHV0dkQSxzAVFp2H9gpuCTczi6sYaf5+ESAAaW JCJ60rsRelBo0OLhFPAQz2boDHNhR7iUkg== X-Google-Smtp-Source: ABdhPJwTYOX9zgv8n2NCTTRcKiz22MDQe5vgjyQqLC7AGCOCTxkf1rSsgAbRvzzP7f4PxXNfzJyT1w== X-Received: by 2002:a50:baa8:0:b0:415:b0bc:6353 with SMTP id x37-20020a50baa8000000b00415b0bc6353mr8370264ede.220.1650028842898; Fri, 15 Apr 2022 06:20:42 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 20/26] vmdk: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:54 +0200 Message-Id: <20220415131900.793161-21-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=paolo.bonzini@gmail.com; helo=mail-ed1-x531.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650030529353100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- block/vmdk.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 37c0946066..27d3732255 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -1741,10 +1741,10 @@ static int coroutine_fn vmdk_co_block_status(BlockD= riverState *bs, return ret; } =20 -static int vmdk_write_extent(VmdkExtent *extent, int64_t cluster_offset, - int64_t offset_in_cluster, QEMUIOVector *qiov, - uint64_t qiov_offset, uint64_t n_bytes, - uint64_t offset) +static int coroutine_fn vmdk_write_extent(VmdkExtent *extent, int64_t clus= ter_offset, + int64_t offset_in_cluster, QEMUIO= Vector *qiov, + uint64_t qiov_offset, uint64_t n_bytes, + uint64_t offset) { int ret; VmdkGrainMarker *data =3D NULL; @@ -1822,9 +1822,9 @@ static int vmdk_write_extent(VmdkExtent *extent, int6= 4_t cluster_offset, return ret; } =20 -static int vmdk_read_extent(VmdkExtent *extent, int64_t cluster_offset, - int64_t offset_in_cluster, QEMUIOVector *qiov, - int bytes) +static int coroutine_fn vmdk_read_extent(VmdkExtent *extent, int64_t clust= er_offset, + int64_t offset_in_cluster, QEMUIOV= ector *qiov, + int bytes) { int ret; int cluster_bytes, buf_bytes; @@ -1971,9 +1971,9 @@ fail: * * Returns: error code with 0 for success. */ -static int vmdk_pwritev(BlockDriverState *bs, uint64_t offset, - uint64_t bytes, QEMUIOVector *qiov, - bool zeroed, bool zero_dry_run) +static int coroutine_fn vmdk_pwritev(BlockDriverState *bs, uint64_t offset, + uint64_t bytes, QEMUIOVector *qiov, + bool zeroed, bool zero_dry_run) { BDRVVmdkState *s =3D bs->opaque; VmdkExtent *extent =3D NULL; --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650030259863626.8946999633561; Fri, 15 Apr 2022 06:44:19 -0700 (PDT) Received: from localhost ([::1]:59378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfMFG-0002K1-EP for importer@patchew.org; Fri, 15 Apr 2022 09:44:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLsW-0007Vi-Cb; Fri, 15 Apr 2022 09:20:48 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:41871) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLsU-0008Uj-SK; Fri, 15 Apr 2022 09:20:48 -0400 Received: by mail-ed1-x52b.google.com with SMTP id c6so9892311edn.8; Fri, 15 Apr 2022 06:20:46 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.20.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XT/5ko8xXdFB2oZI4c5/NazeRRBkHp1p2r7GLP5NiZo=; b=ezU9/d+Tzu03IeCj+ZnoFlNRT6CKORQFLe/xk5ld0YkBt57Yn6e5vxedAVvpc7QmVZ A1bF8Et7Z9ttBmKtjIY79Qyum2P6R1Jb822JdlN+Frg4/BDekJcFMH8Gg0mpkiPwp7Fl y++xxCoIJyyRFzyWgOUKtooeMNG1iwKnm/vcvyJmpwNRhIMydq9mhe788FdBcTHIqfMW j0lhCeMP31JXITrcOiEWSsD1oTDUFa5L7/1yVOJyubRFfPGkI4PbACOcADt6ijKdnjTJ xxUsFjlLp39zkSy4cW7E57GuVxPD10OF7Pd65/z9i8Ppqk9YRMfv08RrMhBFDJ9hcyQg aNGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=XT/5ko8xXdFB2oZI4c5/NazeRRBkHp1p2r7GLP5NiZo=; b=bAw4caOXHmlaSLBBR9gQ+3L0Xc2Kn1DclAp95A1ujDajFsKhUUXj+ng6Bi/aP9+crQ BRR4Yn4bIH6W1dsmQCyH0M6EVdSNS0/PGnW/lxq+RH450EI5MHjTJdATR7HD8bGRzXoR 1E5rO/A11MxLGF4UZlUZ0qN/TaT3BUgrylaIy9iHar+5gxUZJMnUc1AwRlhR5qDnRYep tRqOXfRzxFovC28V4/Sl+mBPK12kOaeihmO5jHk6ddVwrD2o2yz+shoE0TsrOF64FRyw 6VUIMSRWfqW88NQogKHckWuGAUoxBBNooGoao6kfYq/7h14lOb9K5rAZy+HbP96HSP0L TUfw== X-Gm-Message-State: AOAM533R6M07x6Yws3YrHWyUU9/1QOzQiV2AtV1VFU/cNliNgAenE004 B8Z0mhulexc2cqTYQDZYNF1RIdy49HRJZg== X-Google-Smtp-Source: ABdhPJz5yMnu8uf/VrpsOmCgXAq4/c8EiSCCqW0SSNTcFICdT+pgpDtaEb+G4lK9W+UaQ3zJL5JJQA== X-Received: by 2002:a05:6402:2752:b0:423:f9:f335 with SMTP id z18-20020a056402275200b0042300f9f335mr801538edd.22.1650028845224; Fri, 15 Apr 2022 06:20:45 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 21/26] job: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:55 +0200 Message-Id: <20220415131900.793161-22-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=paolo.bonzini@gmail.com; helo=mail-ed1-x52b.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650030261047100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- include/qemu/job.h | 2 +- job.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/qemu/job.h b/include/qemu/job.h index c105b31076..397ac39608 100644 --- a/include/qemu/job.h +++ b/include/qemu/job.h @@ -436,7 +436,7 @@ void coroutine_fn job_pause_point(Job *job); * * Yield the job coroutine. */ -void job_yield(Job *job); +void coroutine_fn job_yield(Job *job); =20 /** * @job: The job that calls the function. diff --git a/job.c b/job.c index 075c6f3a20..20f0d8b2cd 100644 --- a/job.c +++ b/job.c @@ -525,7 +525,7 @@ void coroutine_fn job_pause_point(Job *job) } } =20 -void job_yield(Job *job) +void coroutine_fn job_yield(Job *job) { assert(job->busy); =20 --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650030707302163.4271556510189; Fri, 15 Apr 2022 06:51:47 -0700 (PDT) Received: from localhost ([::1]:39956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfMMU-00009d-6C for importer@patchew.org; Fri, 15 Apr 2022 09:51:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLsY-0007fE-Ty; Fri, 15 Apr 2022 09:20:50 -0400 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]:43622) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLsX-0008VG-Bi; Fri, 15 Apr 2022 09:20:50 -0400 Received: by mail-ej1-x630.google.com with SMTP id g18so15317956ejc.10; Fri, 15 Apr 2022 06:20:48 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.20.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:20:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=V1ImhP8nQI3nDHWkOKXvAHXmp0Nf/es+1XlM7xHuiCI=; b=arcCmDy5WCYZ2ZdSMJE+bWZ5jtI/JVG7ypPLKnVIa1Bk1eK9gXmLAFgK3Hb0WaIMaC Z6PGj0fffdS9AEcNUXtE5VyVLD1PX5VRm5tUtwCsrIRhfOBApk3o5563Ni1Gor8/seXh inpTto+AnHNMMfQBPnUP5yp0cJ2bvmxKkIMsClV25h7OtFr1qjK7G56+LD4ImT42cODs nTJfBRgDcGFzF9/l2kJJxg2H9BRJoA5Zns4QcIRXXoPki9bWSIV8lKdzXdR92H/cfMba G54Pp04JJjGYcn99woOptt7rl5Us3gTdTw4NsUwc7kxqNrbuCLiptw8v/rCHcZSqs+qt 7QGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=V1ImhP8nQI3nDHWkOKXvAHXmp0Nf/es+1XlM7xHuiCI=; b=eizhKeG6O6fhDTtL9V5vQ3BlBWi8XalUoV3srULALtquVkDPDtnY6Rhmvku5d+hOlY 6XjE0mFSDvTTeuFwxaaX/GQDDsmlRiQCvyYWH5ov/FlW32LBUR6KK/ICjKO4wmJUGD8w pZzxrxqm1rL8zer434D1DaBvddh+2HiRL9dW37XAdz7SQbCMf4YNmtBeN4fy50mOZiUD zdLJjKNh+f4b1uc6Pq22a0nffu/oGQMj8r7SNxIXGGq4t5RDLzbpeHT7T5edXzExDmlM F6x9/0wWI731KTpZJaUO2dG+WF/fE1BGIxJPI1Gsjx8ls9BEc40SiDVFY1zVbO5niiV2 EvfQ== X-Gm-Message-State: AOAM532ZYigaifpBZxmPnhDLZJxkPQDfln1uPyrI5izhHIam7oT9HQbG HRGfZ8u3Zi37PUaJ5RZVQMaeFCOAiFM3Yw== X-Google-Smtp-Source: ABdhPJyhbVDtm9ER3GYOx/tWRKV1QJMIiQ3qB4kxNO+IAvzNFxXdIodpIvMGf6t8rU2z6exbGLktOA== X-Received: by 2002:a17:906:a2c2:b0:6e7:efc2:17f2 with SMTP id by2-20020a170906a2c200b006e7efc217f2mr5984664ejb.542.1650028847662; Fri, 15 Apr 2022 06:20:47 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 22/26] coroutine-lock: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:56 +0200 Message-Id: <20220415131900.793161-23-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x630.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650030709075100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- util/qemu-coroutine-lock.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/util/qemu-coroutine-lock.c b/util/qemu-coroutine-lock.c index 2669403839..ec55490b52 100644 --- a/util/qemu-coroutine-lock.c +++ b/util/qemu-coroutine-lock.c @@ -144,7 +144,7 @@ typedef struct CoWaitRecord { QSLIST_ENTRY(CoWaitRecord) next; } CoWaitRecord; =20 -static void push_waiter(CoMutex *mutex, CoWaitRecord *w) +static void coroutine_fn push_waiter(CoMutex *mutex, CoWaitRecord *w) { w->co =3D qemu_coroutine_self(); QSLIST_INSERT_HEAD_ATOMIC(&mutex->from_push, w, next); @@ -341,7 +341,7 @@ void qemu_co_rwlock_init(CoRwlock *lock) } =20 /* Releases the internal CoMutex. */ -static void qemu_co_rwlock_maybe_wake_one(CoRwlock *lock) +static void coroutine_fn qemu_co_rwlock_maybe_wake_one(CoRwlock *lock) { CoRwTicket *tkt =3D QSIMPLEQ_FIRST(&lock->tickets); Coroutine *co =3D NULL; @@ -374,7 +374,7 @@ static void qemu_co_rwlock_maybe_wake_one(CoRwlock *loc= k) } } =20 -void qemu_co_rwlock_rdlock(CoRwlock *lock) +void coroutine_fn qemu_co_rwlock_rdlock(CoRwlock *lock) { Coroutine *self =3D qemu_coroutine_self(); =20 @@ -399,7 +399,7 @@ void qemu_co_rwlock_rdlock(CoRwlock *lock) self->locks_held++; } =20 -void qemu_co_rwlock_unlock(CoRwlock *lock) +void coroutine_fn qemu_co_rwlock_unlock(CoRwlock *lock) { Coroutine *self =3D qemu_coroutine_self(); =20 @@ -417,7 +417,7 @@ void qemu_co_rwlock_unlock(CoRwlock *lock) qemu_co_rwlock_maybe_wake_one(lock); } =20 -void qemu_co_rwlock_downgrade(CoRwlock *lock) +void coroutine_fn qemu_co_rwlock_downgrade(CoRwlock *lock) { qemu_co_mutex_lock(&lock->mutex); assert(lock->owners =3D=3D -1); @@ -427,7 +427,7 @@ void qemu_co_rwlock_downgrade(CoRwlock *lock) qemu_co_rwlock_maybe_wake_one(lock); } =20 -void qemu_co_rwlock_wrlock(CoRwlock *lock) +void coroutine_fn qemu_co_rwlock_wrlock(CoRwlock *lock) { Coroutine *self =3D qemu_coroutine_self(); =20 @@ -447,7 +447,7 @@ void qemu_co_rwlock_wrlock(CoRwlock *lock) self->locks_held++; } =20 -void qemu_co_rwlock_upgrade(CoRwlock *lock) +void coroutine_fn qemu_co_rwlock_upgrade(CoRwlock *lock) { qemu_co_mutex_lock(&lock->mutex); assert(lock->owners > 0); --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650030783911319.159563551852; Fri, 15 Apr 2022 06:53:03 -0700 (PDT) Received: from localhost ([::1]:42630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfMNi-0001x3-TJ for importer@patchew.org; Fri, 15 Apr 2022 09:53:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLsb-0007oQ-65; Fri, 15 Apr 2022 09:20:53 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:38436) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLsZ-000051-Kt; Fri, 15 Apr 2022 09:20:52 -0400 Received: by mail-ej1-x62b.google.com with SMTP id r13so15358891ejd.5; Fri, 15 Apr 2022 06:20:50 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.20.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:20:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hS2bdLYJd1/LDmXPmGLqhJIOHD/m7LY1SJSJcfAc9/o=; b=I40HwVlBeIKyZMUTb2Gk7afIhmwmpLupAZzZi4Y897ChSZQVaOTihGKcnsxP+oQ/Pr CBm45J6uSgSl5gwSpVjmz+iYr2oFW4BQr3b5AexGRbf9Q1tbcnaKwGxPJKFm415BYrs+ 988XWVVlKgkCVjvLD5HNYf6I44xw/efygirK+PUKA4HTx9j3xXOE+c+YXIGhO6TK/UkR UagKQJZKx2koA3tem70QnbqITmvrn6I4LGCUQCuisYH/ccSqW39AuXkHhHGVB/186XXj C4edhSHkw6oPEOhMxDPWustfCzdl1cZpuW58TN3TRJtIidn5JXsZhC9Nnn3HWjTuqYJ9 58dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=hS2bdLYJd1/LDmXPmGLqhJIOHD/m7LY1SJSJcfAc9/o=; b=nrecWJcNQr48ClKPBfgZKPBpPwtIOp+w207WqSzAXECtfX5eUdnY1db8qS8SaKqy39 HnWkEiqRnVKa+4BdKbw0a5uQWSWw390MHMnStEvF/R+XBhgDRrbSXgtPnR/K68oxu6g5 qtOjPg8j11+v3vUcj6ymhxdnyFKtSXXeiy4yPihU3CzsQk94PgtHrQpJpCoMxfRm4sOv 9iSxCOXmW4xzmCclKOylvJUK+K4/3r4Bx5ZWoU/hvQ5HSPraTskH1dKqruycXJnLWGmv pcL/Zkcea52B2L9nwa3g0e74RethRGFKQ9larYRPrPOIevT5zgkx9OVzcZ6u0GIn4VGC zp0g== X-Gm-Message-State: AOAM532ai9vlLtOUfsdGZwlyrNp7cKZ2cMvyi2PJwsC0vPnaBchxJAOD Im7e0NwOjE9FQS+QmZxdRxK8G7hHG3WzKw== X-Google-Smtp-Source: ABdhPJzCIYE1XerwZTlEYS49V2ELikck6ud62l9P/jr5EF4hiv4EDQCjR31nc4aYBG9c78vLMFj+oQ== X-Received: by 2002:a17:907:2cc4:b0:6df:a036:a025 with SMTP id hg4-20020a1709072cc400b006dfa036a025mr6645721ejc.554.1650028849949; Fri, 15 Apr 2022 06:20:49 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 23/26] raw-format: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:57 +0200 Message-Id: <20220415131900.793161-24-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: malureau@redhat.com, kwolf@redhat.com, hreitz@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650030785500100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- block/raw-format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/raw-format.c b/block/raw-format.c index 69fd650eaf..45440345b6 100644 --- a/block/raw-format.c +++ b/block/raw-format.c @@ -411,7 +411,7 @@ static void raw_lock_medium(BlockDriverState *bs, bool = locked) bdrv_lock_medium(bs->file->bs, locked); } =20 -static int raw_co_ioctl(BlockDriverState *bs, unsigned long int req, void = *buf) +static int coroutine_fn raw_co_ioctl(BlockDriverState *bs, unsigned long i= nt req, void *buf) { BDRVRawState *s =3D bs->opaque; if (s->offset || s->has_size) { --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650029377821446.2202149997328; Fri, 15 Apr 2022 06:29:37 -0700 (PDT) Received: from localhost ([::1]:59234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfM12-0007vQ-QX for importer@patchew.org; Fri, 15 Apr 2022 09:29:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLsd-0007xZ-I4; Fri, 15 Apr 2022 09:20:55 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]:44748) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLsc-00006k-0U; Fri, 15 Apr 2022 09:20:55 -0400 Received: by mail-ej1-x636.google.com with SMTP id u15so15298116ejf.11; Fri, 15 Apr 2022 06:20:53 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.20.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=n6inZnLXWnAkdrOe9Q2dok2RBXEig9r/WC+XNq10mjA=; b=YdGSahfK8tWJnhUoygEuCwQR+KuIvbvAPirEaJ1eI/09vmcJFG1Fx2Tf++MzTLXthd NzNR5JRNP3DINLkCUhZoG7nz+SY7gOeWaohPuSJvBVGy5Y0Po4BccfAuvuhfMPCRRrwV Sck+SvjBBEK6H+SdrljDvaII7WvXua27Hkk404imH+FfUaDF0taytMvP8m3sy+pZQLIm cd543sqxmxhXODK0Ebf3ddPMMsgZFvHH/rSaPba8oZqLA21PIoSANP5EgV6+at1F5KNe w/TbHS1t49C57DeK+jV3QH20dH+LB2M3MTDF94z27PrMP3FQlh+h7v+dlykZholge5Da sUAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=n6inZnLXWnAkdrOe9Q2dok2RBXEig9r/WC+XNq10mjA=; b=FBlrCPM6VZutlX0w9twqfgD/uL/CynPbNnzQ2UqoVYODZ4l7IcZQz0DFH3NsGAee4W b1JeI6Ihv1xp6zAGas4swMx1ROGe4060gOX+xOTFVj59mla5TvAqcguuY2ER/AkzsSeK jwzptwpC+yTrWoBnOW+vpdVJpEh77iE55msuyxmbVeUMkanGZNroMfrKePhM+AM2eqKZ ZonwwDjFo2NTBPE4YUYpUtHYCwjOYXQJDhYNxEhTYd/KsWixyfcjFQKyisVFeuQT/QBH ndAa+PMsdN1wXEjjtBrStOrwqEv6OrmtKEQhgRIokssuwZnGKgcplKAIQjYAg/nkE8XU 1EOQ== X-Gm-Message-State: AOAM533u60dHFklOqCQ/6bcDgR8Agl6P2A5DprxQMXnCMJ35Fr2YJ6bq H2DBThR1ja+21CKaPPnNB5X4RogZ0is7DQ== X-Google-Smtp-Source: ABdhPJwLc4SFhZbsFRnypFtEhxowL5Sl+Yl/QSsr7u9TXrRyFw84OJTgsfw42gBs4E8jjbX4dAFweg== X-Received: by 2002:a17:906:944a:b0:6e8:ac79:2b6e with SMTP id z10-20020a170906944a00b006e8ac792b6emr6106415ejx.377.1650028852331; Fri, 15 Apr 2022 06:20:52 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 24/26] 9p: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:58 +0200 Message-Id: <20220415131900.793161-25-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-type: text/plain Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, PP_MIME_FAKE_ASCII_TEXT=0.999, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, qemu-block@nongnu.org, Greg Kurz , malureau@redhat.com, hreitz@redhat.com, stefanha@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650029379065100001 From: Marc-Andr=C3=A9 Lureau Signed-off-by: Marc-Andr=C3=A9 Lureau Acked-by: Greg Kurz Signed-off-by: Paolo Bonzini Reviewed-by: Christian Schoenebeck --- hw/9pfs/9p.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/9pfs/9p.h b/hw/9pfs/9p.h index 994f952600..a523ac34a9 100644 --- a/hw/9pfs/9p.h +++ b/hw/9pfs/9p.h @@ -424,21 +424,24 @@ typedef struct V9fsGetlock extern int open_fd_hw; extern int total_open_fd; =20 -static inline void v9fs_path_write_lock(V9fsState *s) +static inline void coroutine_fn +v9fs_path_write_lock(V9fsState *s) { if (s->ctx.export_flags & V9FS_PATHNAME_FSCONTEXT) { qemu_co_rwlock_wrlock(&s->rename_lock); } } =20 -static inline void v9fs_path_read_lock(V9fsState *s) +static inline void coroutine_fn +v9fs_path_read_lock(V9fsState *s) { if (s->ctx.export_flags & V9FS_PATHNAME_FSCONTEXT) { qemu_co_rwlock_rdlock(&s->rename_lock); } } =20 -static inline void v9fs_path_unlock(V9fsState *s) +static inline void coroutine_fn +v9fs_path_unlock(V9fsState *s) { if (s->ctx.export_flags & V9FS_PATHNAME_FSCONTEXT) { qemu_co_rwlock_unlock(&s->rename_lock); --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650030938125311.37972165308383; Fri, 15 Apr 2022 06:55:38 -0700 (PDT) Received: from localhost ([::1]:45018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfMQC-0003bW-Mk for importer@patchew.org; Fri, 15 Apr 2022 09:55:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLsl-0008IT-TH; Fri, 15 Apr 2022 09:21:03 -0400 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]:43623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLsj-0000Bb-TW; Fri, 15 Apr 2022 09:21:03 -0400 Received: by mail-ej1-x62e.google.com with SMTP id g18so15318880ejc.10; Fri, 15 Apr 2022 06:21:01 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.20.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ng/MMAsFc5CpeAXbm3bo8f/X5MEJRElx0xHJ1ZVX/1A=; b=KaS5u96kHa+YkVSUHJ10Vb0U5cpLxvgFWKbWfQ+4H6UKlZgfAGK+EdZNosn/lazQIq HHZLzvVj4w6P6iZftaScemiLXB9+I7+Bn1CQKm8zOABdKUjfdzvdPDPtfC684ggFtHms DYafNrALIvmr2ATjg+OC8RSasH42BnPJe6Lq2pqDLdeMQb5j3cznv7kCK4eq2oM5uet3 aha2iSzi/TqMY7qGSvHQ0hry+qhLHRwq05z4g61jW+iRUXrq/q1lCPTW+DlxekJrjhVG XEZtTrFy3SVxPZ4oSEIkOUwr5YUubhlda8MZJwAUkkwEhaX9vLr5S2mxlVODe52bTnkg jJlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Ng/MMAsFc5CpeAXbm3bo8f/X5MEJRElx0xHJ1ZVX/1A=; b=W/3p6fKX09GgTqLu5EIq8hrgTypVAjg4ub/C3YCXqIfWyJT8+1HPGC4kTPrcly6Lox xt56RNM/gNWDJTl2ptSHjvmFXw5OJQCH3/x958McT0EKSOCuoPLDxp9uT0q9sNYcASTb ur4ntBl+vrJ4CDYMO3PwRsUmfjM+dFsEha7odn+LL6sloVfTrCFnnBPx6liusB7wyGg9 bE4mzdpSA5BIxgSlH8nLh6UXfOeyCSJqWXNGqT8vv5I7TsODfGv1ocfEx3x0EmsXGMdS QA5jhJEzdHRoudKSdsp4QlG/LE0g6nVMMxT56kDShuUKexzWgal/wkbgHq5gEAnRk5ng gIOA== X-Gm-Message-State: AOAM532pWD9skXvMqodpFvvS94Sui9OPAvKkqUTF85xHQJDmiiK1QKe9 +sWnLesVbwK6Vv+rBa9Cg3sTaDZIR4veDw== X-Google-Smtp-Source: ABdhPJzbCiTh/EnTD1hQQvj/pR+1uMNeqvhXSpcFoNqcFrVoHb3HFCMgiv05Ho4e+r24EieO92B8ng== X-Received: by 2002:a17:907:e8b:b0:6ec:d4d:5534 with SMTP id ho11-20020a1709070e8b00b006ec0d4d5534mr4948997ejc.416.1650028860223; Fri, 15 Apr 2022 06:21:00 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 25/26] migration: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:18:59 +0200 Message-Id: <20220415131900.793161-26-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-type: text/plain Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x62e.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, PP_MIME_FAKE_ASCII_TEXT=0.999, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, qemu-block@nongnu.org, Juan Quintela , malureau@redhat.com, hreitz@redhat.com, stefanha@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650030941069100001 From: Marc-Andr=C3=A9 Lureau Signed-off-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Juan Quintela Reviewed-by: Stefan Hajnoczi Signed-off-by: Paolo Bonzini --- migration/migration.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migration/migration.c b/migration/migration.c index 4dcb511bb6..23781f6277 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -553,7 +553,8 @@ static void process_incoming_migration_bh(void *opaque) migration_incoming_state_destroy(); } =20 -static void process_incoming_migration_co(void *opaque) +static void coroutine_fn +process_incoming_migration_co(void *opaque) { MigrationIncomingState *mis =3D migration_incoming_get_current(); PostcopyState ps; --=20 2.35.1 From nobody Thu May 9 07:36:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16500297125191023.9306182029851; Fri, 15 Apr 2022 06:35:12 -0700 (PDT) Received: from localhost ([::1]:40366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfM6R-000618-IM for importer@patchew.org; Fri, 15 Apr 2022 09:35:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfLsp-0008Tt-4K; Fri, 15 Apr 2022 09:21:07 -0400 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:39736) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfLsn-0000Dt-7S; Fri, 15 Apr 2022 09:21:06 -0400 Received: by mail-ej1-x62f.google.com with SMTP id bv19so15367439ejb.6; Fri, 15 Apr 2022 06:21:04 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id dn7-20020a17090794c700b006e8b176143bsm1683529ejc.155.2022.04.15.06.21.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 06:21:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4Jj2He4XMwehAE3Uqy98FnggkYD9lJQ14hPgJS+DCGk=; b=D5TDVGUgvxiGXsu3fTJdhOytolnfG1WL2JTCRbHcdJ4C0T1ri6Cckk9rpqljPc6gW4 nE5GDSOakuHLl7+lXVevffNrCq5Di7Pn2mJL42e8tgvOdfnYOT12/+7JFHQnADFcAdtm FExG4vMFjyc+OzNkw+naRYl8q618IdPdIs3GqHuRiUWGGMnsv5BTs+ZzvU3KZu1nLJ2w u6IPN+dl2fbu81uMPVYvW0hw6jw6+GkwNzgSYmgFuNgUi1yo3zwTzJ2LvSl5n+9LNPXr ISEmJvTuJ4EVQY5tyK/ooe4JaPjyP6J6Y1hjQkQMk+6vSU1XhyyCTLA+/eiffvW1S0k9 5BBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=4Jj2He4XMwehAE3Uqy98FnggkYD9lJQ14hPgJS+DCGk=; b=23EYXLvkVGZO6OLmihoPkZKp/KsQyAh+JBUV4TDenW5Cu7uuQewIOzBWhLVFBdd2IC xrcglT4Ik+yXOFMCuMXHx04uqThSWTEmgNo2ndY6DrzJPsWjoC0bJVWlKCA/HtACPbng KAe746GlREpCUpzvO83Ff2GY13pM5iI+4koCD2afkp5ZUU1vGG/INOotrl7g1MTz6i2H OvHVZpss5u96JR9AlUQ9IJh31QNzYoJJiunnHxsmYygB5Smwj3HbeWXDT2oK5jGDPrrl 0tC5zRe5n5AipwhUNmWcsAhlmUM0pIL+4gjP2F0dJM4r9E8fs3EoQdxd+fwlEyakbo0G BvBw== X-Gm-Message-State: AOAM530htcb89nSG1EdGnNADijMfoIg2kvCALthBCWoj9XDuL3kpo2qt Shcfm03ctyX56B6RMugIreBHeXIwcVIFUg== X-Google-Smtp-Source: ABdhPJwbSZi7P9tfScj2HHBRWETQAAqZh0KHj5ov9VZHaxeVNTletqTvoAFlt8Jl8NYiUxAfxpXffQ== X-Received: by 2002:a17:907:9493:b0:6ef:6ade:92da with SMTP id dm19-20020a170907949300b006ef6ade92damr619402ejc.630.1650028863592; Fri, 15 Apr 2022 06:21:03 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 26/26] test-coroutine: add missing coroutine_fn annotations Date: Fri, 15 Apr 2022 15:19:00 +0200 Message-Id: <20220415131900.793161-27-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415131900.793161-1-pbonzini@redhat.com> References: <20220415131900.793161-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-type: text/plain Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x62f.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, PP_MIME_FAKE_ASCII_TEXT=0.999, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, TVD_SPACE_RATIO=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, qemu-block@nongnu.org, malureau@redhat.com, hreitz@redhat.com, stefanha@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650029714832100001 From: Marc-Andr=C3=A9 Lureau Signed-off-by: Marc-Andr=C3=A9 Lureau Message-Id: <20170704220346.29244-4-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini --- tests/unit/test-coroutine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test-coroutine.c b/tests/unit/test-coroutine.c index aa77a3bcb3..e16b80c245 100644 --- a/tests/unit/test-coroutine.c +++ b/tests/unit/test-coroutine.c @@ -610,7 +610,7 @@ static void perf_baseline(void) g_test_message("Function call %u iterations: %f s", maxcycles, duratio= n); } =20 -static __attribute__((noinline)) void perf_cost_func(void *opaque) +static __attribute__((noinline)) void coroutine_fn perf_cost_func(void *op= aque) { qemu_coroutine_yield(); } --=20 2.35.1