From nobody Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652093172; cv=none; d=zohomail.com; s=zohoarc; b=Og9Xqkb3VvOKnaAt7UorwsS/sVwvsYPSf5VD0GZlTw+GMjAs3GvW+YGbM6rNdr6NL9dHw20GTNIyE42KTUG26E1P73RC8OWy04nhtVgkn7fuJXzJ3pKZej8wmeLQRr3+AQ14970pkN85VbDbXUvuCu6eMp8Fdy406MnUviQWJDc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652093172; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=m7eQMU/MNT2j16i5jmqBt6QjHezLYbmXNfnGxCR7DVo=; b=i6Y179QEEtYT7YjfRZM5XDTUsmGDX5a9NZQVBIDKtJXf7vtX8vW/GfHnuDYrXX/q55NLBPy2jOfBktzlR5B1Bk0mwcWLw8/5+zH8qf5k+hNAwPDx7cIfIzQg8diM40UB/CrHJ6uIkGUe7x/jcF5DLBCLxaDRVzW068CIPMLp1xg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652093172290978.9497738664346; Mon, 9 May 2022 03:46:12 -0700 (PDT) Received: from localhost ([::1]:38122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no0u3-0002AJ-1x for importer@patchew.org; Mon, 09 May 2022 06:46:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0ez-0004LZ-Cv for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:37 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:39955) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0ex-0002lp-3z for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:37 -0400 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-552-pHFbScKhMWW7ewNlH020Vw-1; Mon, 09 May 2022 06:30:25 -0400 Received: by mail-wr1-f69.google.com with SMTP id p18-20020adf9592000000b00207bc12decbso5602699wrp.21 for ; Mon, 09 May 2022 03:30:25 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id az11-20020a05600c600b00b003942a244f3asm15091584wmb.19.2022.05.09.03.30.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=m7eQMU/MNT2j16i5jmqBt6QjHezLYbmXNfnGxCR7DVo=; b=iYA+I3UHNC+F6QnfgMbYa37PoE34HpCihVon3ezivdFHG+nXVj9XQX+gPRREPRtsD9luTS MRpsA1rw0mB08t6TOuYfy7RDECD4uSOiVvV+QsHBZnohoVqIVNAeqKiI3abNYEJgy1XrH8 JZh/nDyCQI96Y7oSC7e6EXnMnq/hlpg= X-MC-Unique: pHFbScKhMWW7ewNlH020Vw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=m7eQMU/MNT2j16i5jmqBt6QjHezLYbmXNfnGxCR7DVo=; b=V021LC9ieAph+UEKuvyUZxD+65QI58sKKOllZWh6u/TeDBab3PW+Ctl6DO4ofxQc9H lwQh+aamuDM+60b+lbp3rABORgkVwn3hYtj6Pemo5u77kypN4Ar2IYQ0ds+mOZm6pIEg C9JH5Q1u5BkRADUzrHpUleCzXluXPGVRFJ2XhMal5WPdbkuIKzr7D/1bRKw0teSM8Aal nvN4//BLcvQfLXsXTEgkJItZsF2VOaZlUqzoxGxTLivb33hyeEE2Pr3QA7qhemnJAI0h 5u+qYDD6jiKnfXnVGvp9Ggw17Kj5G+xn0k9a5iW6n03O9EU1UKzS3wdzWX1Ih2rLZkZm xAPA== X-Gm-Message-State: AOAM533xAj4R/ySkML1oFlHlDlaCqe82fCROfKWkBPcXw46C9b0bdWDi vJxuiVxJcDBnUIMagaY3B63W+25DRiMDoW2jPxcfMCFZyu3xT/WQ93wEYhroe3ijywdPmOpYI7/ F5uUO7H3289nQ8BN2SE8UQDWXaTkKeTPL6MFTpMRYuWEYCYI9HnROCkvHWmDN08EZKos= X-Received: by 2002:a5d:4344:0:b0:20c:cad4:9e9b with SMTP id u4-20020a5d4344000000b0020ccad49e9bmr2552239wrr.187.1652092223911; Mon, 09 May 2022 03:30:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFXB/NSuKzhvy5DIp3gO9uaWiOd9mkpIgFtS55iXPfpQSI/O18ulIqDvEQ9fO5P59ybYJ2hA== X-Received: by 2002:a5d:4344:0:b0:20c:cad4:9e9b with SMTP id u4-20020a5d4344000000b0020ccad49e9bmr2552211wrr.187.1652092223525; Mon, 09 May 2022 03:30:23 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 01/26] block: remove incorrect coroutine_fn annotations Date: Mon, 9 May 2022 12:29:54 +0200 Message-Id: <20220509103019.215041-2-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652093173656100003 Content-Type: text/plain; charset="utf-8" This is incorrect because blk_pwritev_part() is called by blk_pwrite_zeroes() and blk_pwrite(), neither of which has to be called from a coroutine. Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652092504; cv=none; d=zohomail.com; s=zohoarc; b=HjwG0ewxoIKOG31CDBatjUIOWhRcxjqYcsrhPEByO8mI2C6xb60iLywMkK6qSmi7YkK2XGBbt1FBEQQg4LYJrkLl/pJVkTxfBD7mBB6KwO7HK9YE/3YJrBxZcpxuyBHFWphpnuZ/2aO7hQ4Wqxzoa8lh/ZXfopJkKBM0zEHgu30= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652092504; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=k/ZY2DnKQibUIJ1DhsG+2xI2KWffEJgbAJWUvZ3IJVo=; b=g2LrX/kDIsfwmZvn+GDRJ9mZHxmedeMY0FgugjMmHpcSdo+6aYSUw5GW8P+Od8UuD6a2T0LoqpJRroH80J2dizxOWe5Kma9sU4JYAvRl3IeWqu2DEx0zHI6eQ8SAO/+OiKHSIn9WS998wojZfSpAWLqm+mQdPtowrkFmIowgJIU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652092504474856.9673015317579; Mon, 9 May 2022 03:35:04 -0700 (PDT) Received: from localhost ([::1]:49158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no0jH-0007Ay-7H for importer@patchew.org; Mon, 09 May 2022 06:35:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0eu-0004FJ-RV for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:32 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:48419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0es-0002lG-DQ for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:31 -0400 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-576-bYx7Y8zsOjaIh0j7bhoRiQ-1; Mon, 09 May 2022 06:30:28 -0400 Received: by mail-wr1-f69.google.com with SMTP id u11-20020a056000038b00b0020c9ea8b64fso4315016wrf.2 for ; Mon, 09 May 2022 03:30:28 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id u21-20020a7bc055000000b003942a244ee6sm11946008wmc.43.2022.05.09.03.30.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k/ZY2DnKQibUIJ1DhsG+2xI2KWffEJgbAJWUvZ3IJVo=; b=OTL56X5ypB067Ctz9DJBo9WT/5IyD2qXxcMaPENClg3g05vfhHPgHlBGoZNJo5P43mcmfe YE0j1ZNwq8HA6frBVs0jwfrdIMuXdC6qQGYRZj73qYJXaDk1TEx90rIqXhtznKeeGAOi9I Q+HLMBInRJDE4o0IhSmINs2Ct7XrubA= X-MC-Unique: bYx7Y8zsOjaIh0j7bhoRiQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=k/ZY2DnKQibUIJ1DhsG+2xI2KWffEJgbAJWUvZ3IJVo=; b=HLGSBpcgyt/VqIcYdRTjzzr34XcD+4iHNrEty8GOR63ZkR/12bJh+xz/FgkiPBIBDI IZlSGKFCNLql6jncIAV44ZlhyRXtKP3L22vv3Ciyv7lAi3/GCGI643wJzv68e1oToRFx ilSc3onIauEBru7e0pSsUb/FRilU+0bt+oCMj2K2za6qiR7/OqgbVzgD9aDLWDfS1+tH 94sUz/ODPEIQyMBzg0tiRGdsoSpeOEbmpZKpAxmKRBogQT5IQVR3Chn2bXWETkOODeUK COPr80hCw9rqDlL2RCb7fibhlcOqT/PJJsg8L6qrbHN7mgeHpKHOeB8mCvNukSjs7SzD sy6g== X-Gm-Message-State: AOAM533VETK/uAlLGS0QZQH9/AavfhdWW6U/9aorJCCdLALqVS5ENVhO fVZeAqBkw03/ysoTIxKRJu9y5V4DEKj6YTjq/2P5xxe3EEqhh/zXoM6fUE8W5G1LJjU2PIG6av8 hXQwbMWbq0eidIUC8vEM59peQ27arRhPh8KyGGDqMxTiQZvnNQz7xEA6r1I+Cxf4zB+Q= X-Received: by 2002:a5d:67c6:0:b0:20c:3e1c:d333 with SMTP id n6-20020a5d67c6000000b0020c3e1cd333mr12764393wrw.66.1652092226773; Mon, 09 May 2022 03:30:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+tg22NB+OAK8iycck+SZq22Uhi68Uf1APS904T/ugMIHFe4xe/s+foVdKGMPxMDS5UpUxBg== X-Received: by 2002:a5d:67c6:0:b0:20c:3e1c:d333 with SMTP id n6-20020a5d67c6000000b0020c3e1cd333mr12764359wrw.66.1652092226310; Mon, 09 May 2022 03:30:26 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 02/26] qcow2: remove incorrect coroutine_fn annotations Date: Mon, 9 May 2022 12:29:55 +0200 Message-Id: <20220509103019.215041-3-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652092506110100001 Content-Type: text/plain; charset="utf-8" This is incorrect because qcow2_mark_clean() calls qcow2_flush_caches(). qcow2_mark_clean() is called from non-coroutine context in qcow2_inactivate() and qcow2_close(). Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria 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 ed0ecfaa89..404d56e258 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652092779; cv=none; d=zohomail.com; s=zohoarc; b=ZT0F+EN5sAF1uwMeJdyuonwNS8qJzTNZgEDRz56bIUvTjdRhlhpnAgd6cwfLrbtZ+WV5Fj54uJGKSGZXaJ2kVgOjx2SkCqE38UqUN7GEQG8nwJU+iTAaWmc3bG8OUZFdWVhr/Gt8tj9s8vsQVRKT81fChFKvvEce6zXbXP2GBSg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652092779; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=izAfP/QtznA3u1TE1I3jkt0p4z5pNFEZWn9uB+9n4wQ=; b=eL4ZmydkR7DkNKCRGN5o216N/rvqSbbmwDj9RgmA7LpiNbu4Gw6g9b3WZqo0LueWy32Lov2OE67tK0r2aS2G7g7yj6/Pp+YShhc5IAmG2EOw7MtkmmYwLNcv63t8ufj8Ira2jO8B389FzROyqi0Eib5ECjZN2n5AnDc3XVa/dp4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652092779218368.90689688994837; Mon, 9 May 2022 03:39:39 -0700 (PDT) Received: from localhost ([::1]:57754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no0ni-0004hz-39 for importer@patchew.org; Mon, 09 May 2022 06:39:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0ew-0004Gr-Kg for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:34 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:58190) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0ev-0002lZ-2w for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:34 -0400 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-46-ubp6k_HPPSCXi0SUPK0KYA-1; Mon, 09 May 2022 06:30:31 -0400 Received: by mail-wr1-f69.google.com with SMTP id v29-20020adfa1dd000000b0020ad932b7c0so5580595wrv.0 for ; Mon, 09 May 2022 03:30:30 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id r12-20020a5d52cc000000b0020c5253d8c0sm10668459wrv.12.2022.05.09.03.30.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092232; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=izAfP/QtznA3u1TE1I3jkt0p4z5pNFEZWn9uB+9n4wQ=; b=EClEBL939pFqiD+DjYIDGtlObTd2pTVx9KygrG11IuphHoa7Im7sNsJdWSVm91/ulFdOD/ 1UF3ed1VziKbr+890mV36nPe+XEo3PH4dp3TOGoAj5Z8oQxT13TiPnjFHfcl53EvANhgh2 XatXnr5f1ZWKRLdAnpFL0g8DtJ19Is8= X-MC-Unique: ubp6k_HPPSCXi0SUPK0KYA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=izAfP/QtznA3u1TE1I3jkt0p4z5pNFEZWn9uB+9n4wQ=; b=xbhjpquTSXgDPblkadhdWYLVDp+aOCUhCNHDa8MIYGFI+CRjnpj+LziQEwfqLshjxk bLVBVpM+FDXFARFlUNZoH1fbChTwOzHeeEn8HPzdqCw8vq3xXOp06tJAJbJwsH5nkVFB Kxm8al20TXjqzVTkb2pVrNw6dP2LlCP/P7Suj5glNcC+/tKp/Mo3UUNFkmGaku0gGeiX FmQxde8a8gRDlhi8vFuqoM+63yOyDtm3MnPhMIfROwhThnumbq0hj1GFzpQ7p8ShOPqh 0JGEIgfTKuCKWHlUFOqhhRtMxhwiPA95M6FSB7pSGK7x+PwOMW9ivvi76G4jxtK+Htf4 uoRg== X-Gm-Message-State: AOAM531nTcnPIuBoY0XaE/DGgOwO4rhrbIe+Ag2zzM1eE9WubXUVMHqP V8/jCrRFTZEHpKotQSkzA2bPigQcrQiu8PkYYYmXmy0Qaa3zZcs2J/ILD61rF0iyaH0uJ5EKbn0 xR2Xwz+NX1fub2lSptIVYFEwDQKdFUrBM/WwXtJfp1fzZShyrsnxTT5DyXpWBTnQbuTs= X-Received: by 2002:a05:6000:1681:b0:20c:5aa2:ae14 with SMTP id y1-20020a056000168100b0020c5aa2ae14mr12986905wrd.443.1652092229400; Mon, 09 May 2022 03:30:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNzq8N2ULTUCYgcsu4RNmAEKBPaJ60iwTUxLVGh955iX4LLkvjrvG+vOJt6dKB0N2rbIyTsw== X-Received: by 2002:a05:6000:1681:b0:20c:5aa2:ae14 with SMTP id y1-20020a056000168100b0020c5aa2ae14mr12986874wrd.443.1652092228961; Mon, 09 May 2022 03:30:28 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 03/26] nbd: remove incorrect coroutine_fn annotations Date: Mon, 9 May 2022 12:29:56 +0200 Message-Id: <20220509103019.215041-4-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652092780340100003 Content-Type: text/plain; charset="utf-8" nbd_co_establish_connection_cancel() cancels a coroutine but is not called from coroutine context itself, for example in nbd_cancel_in_flight() and in timer callbacks reconnect_delay_timer_cb() and open_timer_cb(). Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria Reviewed-by: Eric Blake --- 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652092507; cv=none; d=zohomail.com; s=zohoarc; b=XF2qAQvxp6qYFECjTrmHe0vRS3EW57ambwToDbk8E/Pl3t1gmMyqf6qiurnL8+gX1Ho3eU3eM1SuTVqTAsFPcLzA2xp7M0f13TpxjheTl0DAxesjYZbWU9s42C/ueMTf9uTn7ObbRpN6wT5BrqtKofbhXglIUM9jP1yKr3/3fYc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652092507; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=m/mj1SaQTVCgoy08BW44Sedmj+eBxFuLCQj4Q1loEXI=; b=Ol1mzAV7E0Cyeb4lrwvXYNgOPigsKrI3tP9J/O1wlh1pmpFBYKSPApWt3/k4jx3J1MUueenph6KVe09OIoCWRRxvA+ssAGIuUuAeBWcnuk8RK1y0erU37iyqg9wvQNohDBysa6i2Md77tvFrLBk6ynUNCPvoTap+zEmEEDMYmVY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652092507196188.4623650131589; Mon, 9 May 2022 03:35:07 -0700 (PDT) Received: from localhost ([::1]:49340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no0jK-0007Kf-3Z for importer@patchew.org; Mon, 09 May 2022 06:35:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0ey-0004J1-68 for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:36 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:54236) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0ew-0002lh-LH for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:35 -0400 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-107-Pfa-zS_gOSmhxI8QVEs1nw-1; Mon, 09 May 2022 06:30:32 -0400 Received: by mail-wm1-f69.google.com with SMTP id v191-20020a1cacc8000000b0038ce818d2efso4097589wme.1 for ; Mon, 09 May 2022 03:30:32 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id p6-20020a05600c358600b0039429bfebeasm24129117wmq.2.2022.05.09.03.30.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092233; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=m/mj1SaQTVCgoy08BW44Sedmj+eBxFuLCQj4Q1loEXI=; b=LbwyOkyOHQy5GX2tPtMHvdzCvrUrOoqxOGxe2iB8+j8TinEjQfbPuJyOWewMyysvH/KBTr obX2yaZ87CP480mBbVJtZcLAMaBJIBKNpNlJnKHZywChvRUNB3De4nMyGl1dnvWDPtCqZi ZHOIE7kj9DDN+ayitHGYzrkFUZr5y6w= X-MC-Unique: Pfa-zS_gOSmhxI8QVEs1nw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=m/mj1SaQTVCgoy08BW44Sedmj+eBxFuLCQj4Q1loEXI=; b=bnLwBBSt9Wsqr36Cn8NZGPmj0kxfIYpW20YhbGLQ/1wic6yJ8OE44Ig+aYyuIWgLjt hxxLhBi7T43oA9SzqYqXUFJN4qgp057+e6EJCoE88wERyc74uT3paDmKtUX4a4tFrTfV BzpUQM7l3e6NCbR+aL6ciWsVx+oMc/BXhVjYiznj6kQ9XzYaPgg+Fp5U/lA8GC/7FBcS ZOMA3tUHkb4yPjhaCvblCVJReuQg1P//iFpnaqsvIhQgVDXeZiaAstvdB5GUE/Icd9IL VNKqX2GOAGtLlA9XFeFXNxjeMbyRFQVbKxP09nlh2QJ4v3pl5fqm9sXFSJSeotmC5+d/ zJHA== X-Gm-Message-State: AOAM532sly+wipEtbDQHHjl32ExUwL9OkWxRvskjXHZA1VciPr18VhSa BFaprxjAgLlKD7GGR4GB5hOATc7dn93hO6D1uA+rwNk47pbeYpO1gII15iotRLSJA1kUI1Xy8h8 067zSoB6lMg4z4kvUHg1NJhmuLESPkhuOgs1nayXfkyZocFhsk4wNG2ZQ4aG7GxY3HPA= X-Received: by 2002:a05:6000:168a:b0:20c:5bed:1c37 with SMTP id y10-20020a056000168a00b0020c5bed1c37mr13325663wrd.684.1652092231004; Mon, 09 May 2022 03:30:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCh3AQOZ2PPh5SfMe6lQHKGdq7XvJw+nQPTLOOLq4sgF12m0AmnarsEOXLo3PxeqWpetsJWw== X-Received: by 2002:a05:6000:168a:b0:20c:5bed:1c37 with SMTP id y10-20020a056000168a00b0020c5bed1c37mr13325623wrd.684.1652092230546; Mon, 09 May 2022 03:30:30 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 04/26] coroutine: remove incorrect coroutine_fn annotations Date: Mon, 9 May 2022 12:29:57 +0200 Message-Id: <20220509103019.215041-5-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652092508088100005 Content-Type: text/plain; charset="utf-8" qemu_coroutine_get_aio_context inspects a coroutine, but it does not have to be called from the coroutine itself (or from any coroutine). Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria Reviewed-by: Eric Blake --- 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 f3e8300c8d..32c7ae8f21 100644 --- a/util/qemu-coroutine.c +++ b/util/qemu-coroutine.c @@ -207,7 +207,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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652092777; cv=none; d=zohomail.com; s=zohoarc; b=FSttJJv3SCOfTEpDlmtXvOYJY3wYLB0M17QXnzgYBEXiFwLYh4PpBKfGO04lkjTq6Loi6CcrZKhN8yrL4T3HVL4OLEpNJeMHPiLj8qmlT389NXL2+rZImpinf/fwIOvuCnHQg8TALxnHvpFz9dzVoZtchQkLc2JRw2gtUYHPgUs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652092777; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=M0td3BIo8+I/vX9T6ItFSnDKy+nzpzS9t1PxQm6FyM8=; b=n0RNCj/eb+OIC5X/WXAxW7j40zwq96at17sPZShrCtsyLTIIAs3428iEabPgyMgrKG9+Qk4jPOXgu+et47hHQlnYlwwxQIZJNZxnOgNbfsEALlTj1+85x4If1e+olZRa55160D+Zo4gczZfGcFu/5dbhbC5ULfHYmdxh/5lpen8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652092777558803.1517427348527; Mon, 9 May 2022 03:39:37 -0700 (PDT) Received: from localhost ([::1]:57672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no0ng-0004ek-CT for importer@patchew.org; Mon, 09 May 2022 06:39:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0ez-0004Mt-UU for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:37 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:28041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0ey-0002m4-5u for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:37 -0400 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-237-_OUx7TYDMsiqJx1gti6M2w-1; Mon, 09 May 2022 06:30:34 -0400 Received: by mail-wm1-f71.google.com with SMTP id o24-20020a05600c379800b003943412e81dso3714790wmr.6 for ; Mon, 09 May 2022 03:30:34 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id h3-20020a05600016c300b0020c5253d8cesm10353064wrf.26.2022.05.09.03.30.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092235; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=M0td3BIo8+I/vX9T6ItFSnDKy+nzpzS9t1PxQm6FyM8=; b=jETv6V43+SWRRPjbxrAgG4+FLfDJBtWqU/4i2gBPc8jz+7MV+84QXLdAPLc76ebb+kEttl /Oz0kBwpjI/sGct0XVGvBzZmnT5+yh07KWLflI284zcnil2G7bt7EwGmxGmKdTKtpW/VfX IhJQcgk25sNoKOXyeJ7ld2ffR4fPG18= X-MC-Unique: _OUx7TYDMsiqJx1gti6M2w-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=M0td3BIo8+I/vX9T6ItFSnDKy+nzpzS9t1PxQm6FyM8=; b=kWJqUvbddjAs1DCUhLJC+kDXk3Z0PlxT/NwcSr3oQbO6IbNNPfXCysk+7J+L0O9L8h /N5tWC6zE0DKnrvtxWKAUPXDGWPv8mh1dxZ7Hx/PIXqjy+krcmttw/imcc0O8A0V2w6d 5VL7VRxAxV5VpcEKRgNb7nOEniSIaZD31nyoNRndTjeE5+XClXBUh+YO7CbWGieKlTYw CGD1WFDwbphkg+OxmAbCx7g5CC4vLp8sk0CcMl885WP537tCiIa584G6Ni4huhnQ54yN 33Fr2IvgRS/hy+pbGoHKKO/wa5Djyd5ZVAL8tfcmVZQWiYFL3ecRqB6TQ7H+AaJxfsE1 ldXw== X-Gm-Message-State: AOAM530kG1W/5BglvszAXSAZuSTV8jwJiYzzhPlWNg3TgfRZskp+FzzH F3lam8+5thmc9WlqzmhqIvxxXklOCpeMnSjCb9yj5gaiAR4As/lETFNyKgt1n5q4lIL5vM9xN1D utt0gOW/GhCDyYC3/MKFKsqnDqECeZyZ371by0iLNMDf0HzJGbN3+PKfa2NX1uaVrVKU= X-Received: by 2002:a05:600c:4ed1:b0:394:8352:3ea1 with SMTP id g17-20020a05600c4ed100b0039483523ea1mr9755108wmq.153.1652092232760; Mon, 09 May 2022 03:30:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrtc9eIWMhWrT4QhsjW1ljSDGoNVEVp5BSxRL0SgGE5H8PC2eMo92BKFuPTcpCERDyhKdsXA== X-Received: by 2002:a05:600c:4ed1:b0:394:8352:3ea1 with SMTP id g17-20020a05600c4ed100b0039483523ea1mr9755065wmq.153.1652092232248; Mon, 09 May 2022 03:30:32 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 05/26] blkdebug: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:29:58 +0200 Message-Id: <20220509103019.215041-6-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652092778538100001 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652093170; cv=none; d=zohomail.com; s=zohoarc; b=Mo7uejSv8mBBscb5z6bHN1+i8EieLLL6m9ddntj0/YwOd8K5/aPoh2KbJISnd3kZBsEabagAnXLBR4PgwrpHPKAl2+FguxdFYSsvWblPnq+yQd0Qk85xo3BA/XMJbk3wEiDlfNm8vIZ0ljdP8A+pVH0DhpRVag25ThVJl8Y3Crc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652093170; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=4T8GsUtcx8uBNvR21n6Vfvw1RaJjYiS0GAlgoMt4AQA=; b=XZv3gG1uHVPD+NRXNXwC1Bjbn8Caxw774+Xa8sPiWpiQVlcmDc+v6faCSinUaVHyGS2nv1AgEkB+t+zeyPEc1XTHytcpyjRf3H87DtEmLCrHUPOq6KQue/cH7LiC2IVmwoYIMajM1E4/sv/3IC0dbg8AUXjgyMtp86/PR+/TN2k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652093170655880.2787713805228; Mon, 9 May 2022 03:46:10 -0700 (PDT) Received: from localhost ([::1]:37954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no0u1-00023h-3V for importer@patchew.org; Mon, 09 May 2022 06:46:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0f1-0004Pf-Cr for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:39 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:30659) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0ez-0002mQ-TD for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:39 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-81-o1fl7cVUPY-p3IAPColDUA-1; Mon, 09 May 2022 06:30:35 -0400 Received: by mail-wr1-f70.google.com with SMTP id u26-20020adfb21a000000b0020ac48a9aa4so5607476wra.5 for ; Mon, 09 May 2022 03:30:35 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id k7-20020a05600c1c8700b003946433a829sm12382328wms.11.2022.05.09.03.30.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092237; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4T8GsUtcx8uBNvR21n6Vfvw1RaJjYiS0GAlgoMt4AQA=; b=IbmSpClpimlcvmGH0zpPMGen8fOJqJ+1vzPhwfZgJ8QDZ9nyn1KpjKne+EGyP4qgDPD2+p E3h0KEmbpBz6iiGh1WNxgBuCm3CtA5GUzteMTh7I9xvFvWPPorPQ4jGbWHOp5BYjylQegt PqG4d6LiP2dyI2UvyyLfC4Y6w+SfqSQ= X-MC-Unique: o1fl7cVUPY-p3IAPColDUA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4T8GsUtcx8uBNvR21n6Vfvw1RaJjYiS0GAlgoMt4AQA=; b=pRUKFyVsw+zsspB2JKI/GVkcqFGBYo8pAz0HHPWCAuDOcb4bS3UM21K3u8IvOGQKEY gtMFdcwKhBGfPiRKmkyhC6Uz17WA+mnl4uMWaPFoS06EtAsjV43TiXR/BvDDItg6H6kC W27zcsOJ40i3ihNxOANJarWekNTwPNNi00j7t1TWFlOb2ryqJoOiH1KxqHkhFPnmlHFy kUcvSJYDiR+LE4JLUvIttxVEO4LR2MwdDVk484TFgCbh1FlOStz1muif7ea2fUUUvLDF y6/IvVMcyvYMP5pncCY8q6BjypKRstt8OhVFrxIWw2Up/yEHZkjk+/uSIuR+DUvHwHlr IfmA== X-Gm-Message-State: AOAM5308g+A/yK6fyLBshegWJCokuenw1V9EE4CV1GwEryCy38ngJEQb W1QvZL3Gt6YZLgBCUH7AarXXSkGDOS6hyU42uk7+YtXQ7tUy0gP8z6MKfl5V1wU4CGbvOA1YhZf +ef8/wTZc1qCmloqpCJZqnKfTPVWx9keyybwPOvjvBP4sWh1+xWjOSyPAuBYenndv+gQ= X-Received: by 2002:a05:600c:1552:b0:394:52a9:e48a with SMTP id f18-20020a05600c155200b0039452a9e48amr21894406wmg.45.1652092234140; Mon, 09 May 2022 03:30:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZ4d/SdBU8ZM/viC+pXqRrCNR9OPufg7qi5YNBUACFjJPpGV5i2N46TJ/B85Ste/y/90mpcg== X-Received: by 2002:a05:600c:1552:b0:394:52a9:e48a with SMTP id f18-20020a05600c155200b0039452a9e48amr21894375wmg.45.1652092233747; Mon, 09 May 2022 03:30:33 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 06/26] blkverify: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:29:59 +0200 Message-Id: <20220509103019.215041-7-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652093171976100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652092791; cv=none; d=zohomail.com; s=zohoarc; b=QKMmLVl8gS3J1YnvZlE+hdA2QQZJl5ses7pcoJPo03JM8xKs9EOGjh9aBxkcjN4BG9sVzhM8tMHZc9NvMCEzkDQNPy0do9iSoc30jcBPaQT/jVC5UJm6tL+Znrurf0elTYSsaRegjSqoZZhexDdF9mr8BHf1S8i+la47c1pZtSk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652092791; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=/b+5wydA9RdU0ZF0qsuG26Wp2w9p/13mEw4B/cEDK5A=; b=YomEs8uwDeqqp7zWr77XuhTA/LjjnSBjgyRWG6GeDbs9Lp9dSAAn3ldhQGwhXfPXyUOuhpmzcvDyMng1AUHhcO2pdHnWLWEiKU6Se+8iN74GRpNJlCQFwmCWtUnCrY/svEPUJjzq7O1A4i4K4HFVB9Y+JjhbXPcPPVuCi7VDyTA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 165209279194541.604281215113474; Mon, 9 May 2022 03:39:51 -0700 (PDT) Received: from localhost ([::1]:58596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no0nu-0005Gr-U3 for importer@patchew.org; Mon, 09 May 2022 06:39:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0f3-0004UW-Kq for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:41 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:24041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0f1-0002mh-OP for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:41 -0400 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-517-kOqagIxBNGaOdRIal_5X4Q-1; Mon, 09 May 2022 06:30:37 -0400 Received: by mail-wm1-f72.google.com with SMTP id h6-20020a7bc926000000b0039470bcb9easo2229967wml.1 for ; Mon, 09 May 2022 03:30:37 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id r17-20020a05600c425100b003942a244ee2sm13083420wmm.39.2022.05.09.03.30.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092239; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/b+5wydA9RdU0ZF0qsuG26Wp2w9p/13mEw4B/cEDK5A=; b=cZTKwhf7JVqwRBYMu7AqPYFIvPQYjIKLvLmhHcpqmULw3QHkTRhmmt/LfMfb50dSTAAM9o zuD2uNnFQuPivpO4Ln+CMwPOQO9ZczkpKAk4YrUBW5yJLZEBqMfwvsDVKKcxjvkYkEWtfg lpcS69HoNKSJd2BvDXWjMwfkORgyuy0= X-MC-Unique: kOqagIxBNGaOdRIal_5X4Q-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/b+5wydA9RdU0ZF0qsuG26Wp2w9p/13mEw4B/cEDK5A=; b=jCrRPG3wXNFhVeJbUXR31uM/l/P0Wt9EykJ+8BWzLVv6fvjr9RIF24tGOUBTAcHBxi ojIT7ldl6y436ntg3nkdzSEe19p02UcF8rqD3/ZCdO4ZUo3itU12FDkjqS8K6X+h79/y GmD4Dyhu5Akd+gPenwSzfD2PJ0LjjwJ388MnLV0eh0GDUFnprLvQKKntPPdxOnRuIeMf 4GuIchCbxwRd7Sc77yRCEo6cI6JG5tNxhktDg8YGVIBeBIW8721k9Gya8TiMOBPWFMb/ SbIApGAQc266g6yVb8KdLuPkclT5ZWWG2L5eYt6oXP3VkKBgp+yTSTL8JNldzXg5xorP 6dtg== X-Gm-Message-State: AOAM533B/LZtM32Gu5YGlOcHpZpxsDOVqQvy8JRM9yH3VKPm4b7EiinH nPdpvvM/wSNFr8x1rcluDyhvxzBbYzgsqPVkLQlIFDBi+XdRVsnua5uxCkyjpUETWZaDtcPE/y+ dWtvehKwaxpA2v30puPuR39KOhFc2+bPLo8PxzmY5PFJBY6zDL/W8i4fF3Cu1oxEDdx8= X-Received: by 2002:adf:f649:0:b0:20a:df27:d7e8 with SMTP id x9-20020adff649000000b0020adf27d7e8mr12736907wrp.288.1652092236167; Mon, 09 May 2022 03:30:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSxtl75TBy1eW3/jBxifyc7BuchNa0a/ddPTMn5ypcBHF/iuKCalnBgfO9tyWnLjH+gdbbCg== X-Received: by 2002:adf:f649:0:b0:20a:df27:d7e8 with SMTP id x9-20020adff649000000b0020adf27d7e8mr12736874wrp.288.1652092235661; Mon, 09 May 2022 03:30:35 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 07/26] block: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:00 +0200 Message-Id: <20220509103019.215041-8-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652092792339100001 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652093670; cv=none; d=zohomail.com; s=zohoarc; b=H08/srQJ14ifJ7xWaOacIyeMblFMeu8XRxqkSmYFzxeKiXUenLTMfJT9E3DqRqFbJ4fpNaJn4v33OOEDC0tLwKHYFp9B/e5Ar4MPKqKXbFpcbPy61LNpceMsb3h8yjO3sLeLRyGs6Wtj/su554sOINqkQZ8lrJYdsmyrjcncwjM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652093670; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=BjKxDsM6JMdOOXJmgTB6DwHRYA3FRd1PM2p7yAZWPzo=; b=Wk7/F/YdAtGIF2K7O3LEaH0TBOK1vcsLgdEnp6Qo2v9eZ9AaH/CVmJogaQwslgiFYkkE4I0XLosm836JCOFV2lk5J8ZwT9QVxNsK/wUEYjwzFLbIHgBjj3Rr267In6gzbw0vKOveXnLcLutW6Q7PrRhuD7LMfIqKZyhSspT/YDc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652093670028751.5420179526574; Mon, 9 May 2022 03:54:30 -0700 (PDT) Received: from localhost ([::1]:46656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no124-0008LZ-Ux for importer@patchew.org; Mon, 09 May 2022 06:54:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0f4-0004Vo-Sj for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:43 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:29475) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0f3-0002n3-CU for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:42 -0400 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-198-gQp-BKT8P5KrTxvbnRLzkQ-1; Mon, 09 May 2022 06:30:39 -0400 Received: by mail-wm1-f70.google.com with SMTP id s14-20020a05600c29ce00b00394611a8059so6966437wmd.4 for ; Mon, 09 May 2022 03:30:39 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id g6-20020a056000118600b0020c5253d8d6sm10884109wrx.34.2022.05.09.03.30.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092240; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BjKxDsM6JMdOOXJmgTB6DwHRYA3FRd1PM2p7yAZWPzo=; b=WXnLF8uXhzRgR3l+xgwIHLKxbRx/qvA+CgBW47wqeYSQsooe7LUrIdhLecyhQwKTI4gKSq pakPZOvj3acxzuPMdaOuN9gpoUu+DHL4vvfUxyWJmLP4BF9Q/30B0X3DBhW3kGPTajfHwY O6CTfPOPCwL4DYbhs88735H/RWwRx+A= X-MC-Unique: gQp-BKT8P5KrTxvbnRLzkQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BjKxDsM6JMdOOXJmgTB6DwHRYA3FRd1PM2p7yAZWPzo=; b=RbtR/DKuFSQlTYDNB09eFqvLu7j5sAqrazTIwn9GTUBea4dbatl80F5TD22QUEAmfD DC5SaD1YUlzLX7mkK3YIu/113EhwBL6SIbRWqQkjh3jxTqW+DjelW1pQP38uzuww1tZ0 TBfyWq/tgeymWw6sJas5L10MCvNJyz1rV9Js46BayOra9TOGjE07rx3eokmWdawTnVBi zZd/HptUE0adsZomv1sHmBC75PrnsPaKfqa3azGNP/pGnSc8m5xabsjojkJ1MPuBB+4c mPjA81j0sKHQ8/4tepVJc8Qw6hgg/o2VR6F7EmD10UjSB5GO9OS2l8lbu1FJmrb7CzHe /yRw== X-Gm-Message-State: AOAM531i2aPuHO+tjaLn90DUgEWlNmA0UDAK7hGi677CUgVbuqRtEZdt q5N6KiEMH8WjKPiV53S1EQPosUhsNgEUnR/DFDRTlVZIQ/0kzfgru/v4yi37T47fb6hbIVI/pP8 Ux9oyszZdQsoaRZIjs/bozXguwaT7YPgDb2Pg6ID5Q98MrB2lHztl3rbKakVBaqxw9fw= X-Received: by 2002:a05:6000:1788:b0:20c:a43c:10fa with SMTP id e8-20020a056000178800b0020ca43c10famr12933087wrg.511.1652092237764; Mon, 09 May 2022 03:30:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwruBEgxVDD8kjkvK7d2XwVDsesCMyjk5njx3Ozm863VVFYeQkxpVBL0q9DRsjtSSm5C/yQ3Q== X-Received: by 2002:a05:6000:1788:b0:20c:a43c:10fa with SMTP id e8-20020a056000178800b0020ca43c10famr12933061wrg.511.1652092237336; Mon, 09 May 2022 03:30:37 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 08/26] file-posix: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:01 +0200 Message-Id: <20220509103019.215041-9-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652093670839100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria 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 48cd096624..76eea8d350 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -2158,7 +2158,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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652092780; cv=none; d=zohomail.com; s=zohoarc; b=l0ms2t4fCT7nDZSRxdik2sI+f2ZRtp1eX+qt37+NEO0Hbn1u23XcPq4FNC6XIBC0YjD6jkunBnMwj17cnu8rEPRhbhsAhFOaA0Rz55/mbfLlSS8oqhoWoZ+QxRofhwncoXtRLjZWAqFbTwkMtGmXQOnf9qzD+GMbIdA+EWS2BIc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652092780; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=bt/lCu7Al/ofhqAsL2EZtmQPYAWx6O0kFoKyJZvt56k=; b=SjpngOO2Jfzeuw4sv48ITW8hHDj7PnnO1FEoApnOnPWNAOTz4vjzCX4WkdiPdEu5zm0G/pWOqOOgaFVfuPK7UIwJFzDCjit/wzVaIrmBCVo0sNA2ObYhCb47vI+qQqZ2dkLA2DjPWKdEC8+tslg17FbuWJCilUL4/ucAgmdExJs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652092780258149.30964196632578; Mon, 9 May 2022 03:39:40 -0700 (PDT) Received: from localhost ([::1]:57806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no0nj-0004k0-7p for importer@patchew.org; Mon, 09 May 2022 06:39:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0f6-0004Yw-JO for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:44 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:32047) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0f5-0002nN-3W for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:44 -0400 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-613-2n1VyYNEMEWjM9IfCKXweA-1; Mon, 09 May 2022 06:30:41 -0400 Received: by mail-wm1-f69.google.com with SMTP id 26-20020a05600c021a00b003940660c053so4095119wmi.2 for ; Mon, 09 May 2022 03:30:41 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id u26-20020a05600c00da00b00394517e7d98sm11839221wmm.25.2022.05.09.03.30.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092242; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bt/lCu7Al/ofhqAsL2EZtmQPYAWx6O0kFoKyJZvt56k=; b=VxxCi65oocog38ybMs58w3sIb22zAE/2g00oWQpFDKk5FKlLXpXAhpTPo858wjl1MgWtno kyT7rpCaOxgLQq2YGgdv8X3mukrSbgZ+B/193vZXoyXo3kRnnGRABOxyX68kLpgY1jmqaE LhU0E000QiVpLgppYmvS+N+42r+e734= X-MC-Unique: 2n1VyYNEMEWjM9IfCKXweA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bt/lCu7Al/ofhqAsL2EZtmQPYAWx6O0kFoKyJZvt56k=; b=cfVI10c4oBEAK/6iaGh+je4XcXNzZYUKCZnB0HUVaqrRztqnYqrj0hQJIpWMB7rryj 7MrSAMPwengYSCpj3UmD5AOg26IiK60uxhY8wUoeFc0yeXGUdGPDmCRoMS7h+osJXfJn XrRxkMgzZqwu4jMzZ72cZTTBLXLJ0z4rr9FW7lpQjkoJpPgELZ34NYxHBpkaCCb9CxIi 8OlCarwmE24cEGEVDfiLa8G+Tm916PaZwjIiMym2U+brH+/D3dfdgnzrV3fTCEDxkrFO HJQrcaQ+qjrzLYEzzPj6GFLTdbKejzujISyliC+xu21PGASV+UdT9UjCX8G8T92w05AU BvBQ== X-Gm-Message-State: AOAM532R0aOwFCfg+0bpT9drLGOT0jArwBjzb8bfHEinrI0nI/h/x+SH fu8xUuoB6tdNRi7Mjk4nO7UaWdZfG6VE0zoI5X6r/LfSn5rtRqAkO0r+YFdqQ/A5i8UTdpVw6Qy FThSOrKStwRmIBNjZ3pxNyCi9lI9cisKsqj8EoR9uYW3INJej36qdPV52XEmSfGlALwA= X-Received: by 2002:a7b:c3c2:0:b0:394:9229:3b40 with SMTP id t2-20020a7bc3c2000000b0039492293b40mr3504683wmj.195.1652092239690; Mon, 09 May 2022 03:30:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXsasSXXQPdXKSaw9809OtyqO9Z6rhjNrVUK6Ddkpt2DVmtLlUuDxOjPahnR7qkAZDXqrPgw== X-Received: by 2002:a7b:c3c2:0:b0:394:9229:3b40 with SMTP id t2-20020a7bc3c2000000b0039492293b40mr3504652wmj.195.1652092239247; Mon, 09 May 2022 03:30:39 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 09/26] iscsi: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:02 +0200 Message-Id: <20220509103019.215041-10-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652092782239100005 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652093667; cv=none; d=zohomail.com; s=zohoarc; b=BmOw3DVLZGeEXsFInA+zA5iX3QQy3KKcEA9Jy1jmxO7vbn5YJ6VHjWxM1cKW0sz4dWTtwt33Y1kJmGCXtpY6Yr82W0HhX73dDODxsDvQngpvInu0nIGUV5UIOZz2n+pUcjtyicsZsEAgaZIdKAVXi93cXEgjlu8IBQHbLViF2GE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652093667; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Y3AnHmju2hIPtw+GM/uquKBqddxRaGnG3NoRPbGj8oU=; b=irbGSaAuwEJBkrrNeHm9eZr8dzaf1w0q02S7yijnqZp4QhPd5EwQ7K30NgNuz7uj+qH1MtkBiq42J5EG9n2k76fj0+I2w1SGFDzy9zJ2d5gsFz8l9FywFjdm9cTnkp0s7iMCgRqlMnei3tkMe+4nzzsq9Q1c+luDBX+wkXfrif4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 165209366779931.41383151270736; Mon, 9 May 2022 03:54:27 -0700 (PDT) Received: from localhost ([::1]:46570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no122-0008Ht-2m for importer@patchew.org; Mon, 09 May 2022 06:54:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0f8-0004aI-UV for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:49 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:52706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0f7-0002nk-Gn for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:46 -0400 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-252-uSFv66MLM2e1CCtjIvRLBQ-1; Mon, 09 May 2022 06:30:43 -0400 Received: by mail-wm1-f70.google.com with SMTP id i18-20020a1c5412000000b0039491a8298cso517612wmb.5 for ; Mon, 09 May 2022 03:30:43 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id y3-20020a7bc183000000b003942a244ee0sm11884757wmi.37.2022.05.09.03.30.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y3AnHmju2hIPtw+GM/uquKBqddxRaGnG3NoRPbGj8oU=; b=e3fLX35jlz6I2nUFqj6Udkt1iL6d4LWxD81eYP4/xcKWSChU0EGNO542M5nZ/IJGfIKwzk vkLm5nr+evLAb023TfemgxiydndSvwmE7tdsjc0dor9s0pjZdgMK3k7myPJreRD4BEYZoO 0tkzjtKEXuJdPpuJW1x5uydXInUefcU= X-MC-Unique: uSFv66MLM2e1CCtjIvRLBQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Y3AnHmju2hIPtw+GM/uquKBqddxRaGnG3NoRPbGj8oU=; b=1qT1Bd1jlnpcI0lQYcuHMRI9QLVGlhPKCNe/MKQdzcnL7dpnyqeNJN+GQ3N6t5mKkC F7+lK9ELEPTvT5lBCzvLEPbrUsH9JCjS9KS3fW9gRDmclVHK7fH2s6PqYqphKnYR82NL W8kkNAATuds4LV9JtDc9dfR/PXytBJqgTuW183raDdWaiG4Up3bsL2I3Hd1eX7lB02zZ wCyUVR2CTs2ykAExD7Usw5Ao2qmjOYdMB+m0F1y3no0VLg6FmQzsZDwbZrHh5X9iQKFi Nue4mPlNvhTmj9jqo5ecRVXdUJGNzFcdOwU0KNjdqzBjmKRAMyLDPOcivHuj4I7gpncU ZrIw== X-Gm-Message-State: AOAM532sLSc9c6sKRV2JEGCkFDi5LXs6KAxvXyQcQR97iHWLgHtNtjTI Fx6YjEIewsfaBf97T0475K+hmYP39Fy8o032O502O1qoHjEFFyVfJm8bDAs0JguKsXIQp15mix2 XumaiOLCH/0dY6JO90AJczQYWYL2uRnCJ1jQQyyJIJySzNEzCmoDgRT5g8KWdUiFgb/E= X-Received: by 2002:adf:db46:0:b0:20a:c903:4711 with SMTP id f6-20020adfdb46000000b0020ac9034711mr12907510wrj.625.1652092241736; Mon, 09 May 2022 03:30:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1CDkkfY29l4xUQsc8XceMS+iavOOSLEZBE70723gr4687PLIm9zo8yU+MFZNpQ9wkjr1QLQ== X-Received: by 2002:adf:db46:0:b0:20a:c903:4711 with SMTP id f6-20020adfdb46000000b0020ac9034711mr12907475wrj.625.1652092241227; Mon, 09 May 2022 03:30:41 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 10/26] nbd: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:03 +0200 Message-Id: <20220509103019.215041-11-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652093668963100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria 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 6085ab1d2c..fe913a6db4 100644 --- a/block/nbd.c +++ b/block/nbd.c @@ -983,11 +983,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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652093191; cv=none; d=zohomail.com; s=zohoarc; b=Cq+JmIL4BR+GiP43JHTdEYDnsEqzXNXcqbOW9T9koA+iN6z//lPYpPtA22tKhpqZdEtbU0L4Q6lyAvM2BO8rT9Bgl2JSHaDfUkmC+Cjx4g4stNEzPV3arsgFDdOuJVtY7X02U0J3BKXenO4CnpJqOwISwWG6L6RwtsT+BAZiXsU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652093191; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=4PvFr4zAg2gcZWEKCQhyWR6VZ3/7rqXVGgtUQ04S3mk=; b=ORoPfpn5AZLqoUirVH2gtMx4NOJODl9YZiNrNs9EgKs6j0y+0ZrnVPJ3mfuXcqe2Q76N4MDN43CW+gHF10QqbqNBOPzsHbziTGLI1b55dU6e0/WEJZzeitkx1SnLbvnepRwqXX8/670/JiAgjc+w+TlOwulb+B/iBgLpUEsl0wk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652093191451676.7390357369716; Mon, 9 May 2022 03:46:31 -0700 (PDT) Received: from localhost ([::1]:38954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no0uM-0002kJ-Cx for importer@patchew.org; Mon, 09 May 2022 06:46:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fB-0004bA-PB for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:49 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:33116) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fA-0002oF-6s for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:49 -0400 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-645-Z9SdP648NnacKzpwOL2c9A-1; Mon, 09 May 2022 06:30:46 -0400 Received: by mail-wm1-f70.google.com with SMTP id u3-20020a05600c210300b0039430c7665eso3724095wml.2 for ; Mon, 09 May 2022 03:30:46 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id u8-20020a5d4688000000b0020c5253d8ecsm10289152wrq.56.2022.05.09.03.30.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092247; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4PvFr4zAg2gcZWEKCQhyWR6VZ3/7rqXVGgtUQ04S3mk=; b=Cl0SwUuDFfVGob+n3YN4fgYe3Zfn1Epi6S6vFyo9+Lunc/q9jKu0NRO/OUgcJpM4klrtE0 +0oBKvhEBoTgPwDxCvA+uzAuKmGQJ/i5+yB2HThxRGJ1dnH02gCuFavMHHlb1kuk7HARGq xQ3I4UWk/cuiaWTvNcJ0CVJbV1bYWPI= X-MC-Unique: Z9SdP648NnacKzpwOL2c9A-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4PvFr4zAg2gcZWEKCQhyWR6VZ3/7rqXVGgtUQ04S3mk=; b=vyi6FwRMS1PD5FZs/4BPjqUlfYFLGzcWRTls/h9UGif4AZsvSWmSVaZCztAP7EzGx0 0sK5O/PHlyJLcNaSiCrzc7UB0l40O4rK2r+lTtrPvAbW+E+7VxjUbgcE0AClkkvIxbq+ FBqibWqgaFjo39bqvPTFVlsKtEO9hJBK9QCdNbKB5cEXHoSzu469uZaP4jn31kkXYv8E ZYGBXYBH3lb+n7flQWNeD9NCkBEcLNW0jau8ld/twhrEGedXyuwsW+sCjvDI2fZQ5tgs ayhDaNv1VVm9x1FY2/WkPth/So9sFqVpGCgL+k9dPxG8ctZLcZmQbxDG6e7CCfpF5OCY xfKg== X-Gm-Message-State: AOAM533IqPPg7JpOsWKL26aFGxQfGdN4+/qOk3dPv6mz8xW9X6vel4iw pPk0ZSWsX3Q3WevywB0N3jzbeBuTcNvvbAVLzzqqz5DR2c0d7MXdHyMZJG+BUU/ak7bR3SJ2E5E onwVQVL5MqtjAV99bgU52IH1Y2dFZZeJokFZJV0f4W7F7xO40LILt4UtJ03TtiZzUQtA= X-Received: by 2002:a05:6000:86:b0:20a:d7be:e09b with SMTP id m6-20020a056000008600b0020ad7bee09bmr12832966wrx.398.1652092244404; Mon, 09 May 2022 03:30:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwc2t/cV5kjG9EZlJmD0QGZdPkwJpyhrrYDrv1ZaZaq9/7u8BfXJSgNmTfY13TVi6eB+vgCMg== X-Received: by 2002:a05:6000:86:b0:20a:d7be:e09b with SMTP id m6-20020a056000008600b0020ad7bee09bmr12832945wrx.398.1652092243999; Mon, 09 May 2022 03:30:43 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 11/26] nfs: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:04 +0200 Message-Id: <20220509103019.215041-12-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652093191777100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria --- 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652094114; cv=none; d=zohomail.com; s=zohoarc; b=dYaKR5pHKZHC32CAZwA7qGYd9YV+K5w7OWvIDKYA5a/Wy0SXkLxUkgEA61MfSRz2+kvWYegi2K1N6LBsY2wI7BaEFdiDooD1/YpKcoTxLjKE4jMbOB9pfeQ5sFy3hnVucl9Ptk8M0urihpeuYRDR3QgJwOmjNTerdsr7LlHHQds= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652094114; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=PTpiMctGFRNCeUD0zfF0QDxVsAAFlrqIKcCLw448UvM=; b=YWGDfWt/T3f7xQq4GO6INeAANp9g/3BV6RzLLStiByqs7E9+mT8ofLSDcZ7o/loOV9Oc+MoXVg4WZVjP7Agfc3EdnYBbpgknWHwNuzSMhxUcxr2Q9wj83QaxsKucyKmUw8HxhXVjX1UfYvZNw1PH/V4IWqUz2VrjaCJ/n4JIndU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652094114755577.5235764492852; Mon, 9 May 2022 04:01:54 -0700 (PDT) Received: from localhost ([::1]:55258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no19F-0006I2-Bo for importer@patchew.org; Mon, 09 May 2022 07:01:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fE-0004i7-KV for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:52 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:50455) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fD-0002pB-2z for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:52 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-617-WhdRItxgM-e-YTUIupD6-g-1; Mon, 09 May 2022 06:30:48 -0400 Received: by mail-wr1-f71.google.com with SMTP id p10-20020adfaa0a000000b0020c4829af5fso5604811wrd.16 for ; Mon, 09 May 2022 03:30:48 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id n5-20020a1c7205000000b003942a244ecbsm12207056wmc.16.2022.05.09.03.30.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PTpiMctGFRNCeUD0zfF0QDxVsAAFlrqIKcCLw448UvM=; b=Fp8Lw8rL60+bBdlM1YpHC6lRFpHEDenqkcj4h6lmMDjH2Ap/zsTQ6WnfRnbt63bmhZiSTU 98WWiO1po/4VAi6ICICS1fQTcV94O2oqAs3ohcb1xnREqUZDnCBT1ZBV/yLmgNbeCEOKEU WIEKDmvHfAZyW017xVp6d8tTLW7QNq4= X-MC-Unique: WhdRItxgM-e-YTUIupD6-g-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PTpiMctGFRNCeUD0zfF0QDxVsAAFlrqIKcCLw448UvM=; b=y1iP234BwNH1GVB/yO8lxiomeuCPU65cth/1+annmcN/2HLF5QJBMYjJzknOHtqpAX P77FFlZhKtbb5LKXhxKhKMe4frXHl9YJYdizy3AGASrLlDi2q4lVdWWaiRIQ9fKvqA6U tDX+3CXtZJUpYMRluCueJrLK9gRVi7342afuQfn4/wuguqOqF5JKmI8YHIVazrKyLck1 V7SUib8zkEXwedf97d1trfRTa+o5reaeyB4tygshcMo9ZlH8BpmAdO/fJ1EJFGRT7hxs zVfqQgl2ycn8+NAW7xU9YTp9CyW7SlxWnScJTVUkzOLuq7ZiIQWeKabZ0C2+R0su7IyP /ILA== X-Gm-Message-State: AOAM530RrI/P2lPpeDZf7no5SsDMpI01Ag4Ek6y23DXAZyjSCePqqX0S 4AOmQXzFIvp+ja4vC8HRpAxuJBWl9ylyCvoY/wvXE8UMGvpEpwjNqi1ayG9/AWjPYET4zosNV+9 RVbD7PtKhaotzXCng0T0SQCv7HkP/akzd5806O6KcNYtXm4XFs0jijBkQKg8rHcxP8nE= X-Received: by 2002:a7b:cd97:0:b0:38f:f785:ff8 with SMTP id y23-20020a7bcd97000000b0038ff7850ff8mr21417441wmj.44.1652092247266; Mon, 09 May 2022 03:30:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcM5mMdpC9ZojQzl6AAeE2ewGdGHpOd8UbqZcx8RFL3mtFNso1L5CJZJidtyuCzwg/I+dCuA== X-Received: by 2002:a7b:cd97:0:b0:38f:f785:ff8 with SMTP id y23-20020a7bcd97000000b0038ff7850ff8mr21417411wmj.44.1652092246808; Mon, 09 May 2022 03:30:46 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 12/26] nvme: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:05 +0200 Message-Id: <20220509103019.215041-13-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652094116087100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria --- 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652093173; cv=none; d=zohomail.com; s=zohoarc; b=ncurel/ZqV6zIquMlp2W43BBMyZUTnqB1kHrhFSdliyZmOAf8aZ8kr+ZMfmdjc3WpyzKsjsbqYFF21E88DOr2y6ML+2wWVikxXD/1NzlYuQoKSGWPU7Fq7RJ1F3smRVI1bj8V9PStzTbWtuD0dY6GdSb3EdgSJXuZnyF4KxkqSE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652093173; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=YqP5juE8so3NQtrdckWYrtnqcc5LeThHKJxEEA5BQq0=; b=hfPPtjEEvuOH1hOBQRqKUgkJwkDrDK8xqHmxo9dihVigiS0+i3VUV88QHwKq+40587zKEtQ5rqLAasK6FQz+ybE0+prlMR5OJjdAb8n7HYWfm/hCV+pq49z1v7aO0L+dQ4PGN5PjAPZv+SMju59A3gfaBD9c/OsI2Xvk6/TL1b8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 165209317314745.22509828233035; Mon, 9 May 2022 03:46:13 -0700 (PDT) Received: from localhost ([::1]:38192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no0u3-0002D3-Dl for importer@patchew.org; Mon, 09 May 2022 06:46:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fG-0004np-TA for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:55 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:31453) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fF-0002pL-9I for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:54 -0400 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-8-B78m-dhtMcKZq5VBKMh4JA-1; Mon, 09 May 2022 06:30:51 -0400 Received: by mail-wm1-f69.google.com with SMTP id g3-20020a7bc4c3000000b0039409519611so4080006wmk.9 for ; Mon, 09 May 2022 03:30:51 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id r14-20020adfce8e000000b0020c5253d8ddsm10714304wrn.41.2022.05.09.03.30.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092252; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YqP5juE8so3NQtrdckWYrtnqcc5LeThHKJxEEA5BQq0=; b=DhgGhJXifaZuMzMf4Hw3JShXpoMpfmkbRSiGVnf7oMGKh8+ln8w2MOwHa6VlYryxa3O3gT 75bc92rgMG9lV1457p1DTuCFTrixCA9PCM9VVc2NRV7hRJzURdbVx+v1GcpdzuMYqxYUMX uwtc96Jy2jiWimNlWzAOeEAzVqk+x9U= X-MC-Unique: B78m-dhtMcKZq5VBKMh4JA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YqP5juE8so3NQtrdckWYrtnqcc5LeThHKJxEEA5BQq0=; b=A0pALLf4ppwXweRfNPBkkZVowgQEz9BdXbgiu64EodmwNH/lbYJ69D6FCtL9vDBfIz 0ENkJnwz59xuUyq28hy9dgAl4MnLCQeol/YfGjSlO8gZdX3cHx9c+T0250r088bW0QAh 3AD+GG0zY0Fc59bG1rN/bo8xD49/f4WeAAdCj93AyNQN/nFK37aTLWwe6KErJ6E84iKM o2P+zendwvnXeV23x6izIwULLY5VQ2LpomTEw8hjoxVslhYY8zGNTTo1ndoiT42QJ6rY NtJunHEk9S9t//wmy2GfQCWaY0EUHLs9FXkM2QMtppliQCd1ZxFQNbu4K3+bcJqyVB/n vmmg== X-Gm-Message-State: AOAM5336aCHHATgBHw6Rr7B9H1dI1LWl/HKcu5CFL1QRElBiboHZcTL6 3yV9+V2Gynv6DEJ1sVKslKNZZRcFkVO+JdsJFMfvG4YwYrJA7NuxFn5/YZFOQcRVNrp+coM3KNx S72NbLL7CevtKENrtfZ8v8qMYi6j89Ftj4ORcjcQbvfYgk/DYVui6oW6Cs2/8nB5ErUE= X-Received: by 2002:adf:ce89:0:b0:20a:d917:5234 with SMTP id r9-20020adfce89000000b0020ad9175234mr13419851wrn.265.1652092250056; Mon, 09 May 2022 03:30:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc0KYdvqSYkqQxM6ZzA/Imb2ojX9f5uii1KNZpCqAfeD4in5mVePTfpctwKztwBTDdC96tBQ== X-Received: by 2002:adf:ce89:0:b0:20a:d917:5234 with SMTP id r9-20020adfce89000000b0020ad9175234mr13419821wrn.265.1652092249695; Mon, 09 May 2022 03:30:49 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 13/26] parallels: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:06 +0200 Message-Id: <20220509103019.215041-14-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652093173674100004 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria --- 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652094114; cv=none; d=zohomail.com; s=zohoarc; b=cJf001H6AwL83R3WCDbLkAbGlfN8aq+BpKiRrp+FYcivMf3EPZrc6hbbuhrfgUIWffQdGDdRunhwX+WXvSDf64AP0L3VIa/gqbng1TVn4X/jtJnwQeNBiExufzmP+VD8//JD5N+lddpbUl4/iALI+E507UpjqkTN1sMBrd4f6N8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652094114; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=qzU5IHAzusLhWRGNiU25CUXtF/pymsNhoaAEvkVR6D4=; b=jW8nDfim8+i0Coz5Cqp8FgQhk4YBHmtapPQSPzx2uuxTTEKMKc9qaSGfam+eIqr5PPstTOHtaQ2oPvz9NbQV1nxEbE9UvcStZtuIiiLdYLBBkG/3507uSQwq5ryLlzqBQbhIgk3w21gyGuxl81PMMkCi9lLEjnk8LKpBvwi39rU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 165209411416734.757204547237166; Mon, 9 May 2022 04:01:54 -0700 (PDT) Received: from localhost ([::1]:55200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no19E-0006FZ-Mg for importer@patchew.org; Mon, 09 May 2022 07:01:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fL-0004zS-Kw for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:25620) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fJ-0002pd-Rj for qemu-devel@nongnu.org; Mon, 09 May 2022 06:30:59 -0400 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-592-3a0s0TAPONeJauFNw3urLw-1; Mon, 09 May 2022 06:30:56 -0400 Received: by mail-wm1-f70.google.com with SMTP id n186-20020a1c27c3000000b00392ae974ca1so4667008wmn.0 for ; Mon, 09 May 2022 03:30:55 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id b10-20020a5d4d8a000000b0020c5253d8f3sm13251637wru.63.2022.05.09.03.30.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092257; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qzU5IHAzusLhWRGNiU25CUXtF/pymsNhoaAEvkVR6D4=; b=YpIc/E9ufIBf7MjM9UdtJpom0lDMR3XxugLlDPSQWo86GNWsmiLvChtx1aQy4waTBFP/co WpwN+La18Do84rE5AbGjQ54qMK3FXpjjzzxxFdQjT9cU1bOEy3KHsp2AnRqmwI34hgDDoT W6OWmGe18m1UGmRFb7dGq5bR+tYFaAs= X-MC-Unique: 3a0s0TAPONeJauFNw3urLw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qzU5IHAzusLhWRGNiU25CUXtF/pymsNhoaAEvkVR6D4=; b=R0qRa9Y6Ll5cOOV9yJ4KCb7/LLbQb7eJ31ykT2Sf8O7sJtrIfTqoY1HyKVuKebSb4L A3CEY9ytBamrH/CFHo/D4lwTayyiZ9AAib8o09Jyu4gTQq2c70F7YJd0Mra7b/NNAxzk EvwoFn2lm7fIewZUJlLweLJjqdYNWjOH3ejQhNzPx3IUFxII0uf/yLrfxlsVjSUraeJQ Mi7Mc5nDpHGclwwD1jsL8gKAIzjKAt1r2kxv/BkjKqcAjVXNT7UL7gRu7sxyjCfMY+HJ 7uraLUhNmx5KDKuGbHhQNe9+7XmhC8OJMOF6by74ZcpzDVqKRhtQkJ40Ze2WCdGYDTdO KKTg== X-Gm-Message-State: AOAM532s4/Lw708VUattpcWf2bJBQRZRMF7tdKT4z81zIklCNRKuO6N5 XLq8BYHjmB8ptXJk7S6tWD1ZULXX9OFipFGTHVJ/Szz0MmZvYJdMnkEDNbVQVNhcjxyqv6grXyR RbJBlKPbV/zkODhgHztfxg9ndycHGjnSp7a6myc1j9zsYNaHyxnLG2ILUtrebYBN1b8U= X-Received: by 2002:a05:600c:1c0e:b0:394:66af:ef0c with SMTP id j14-20020a05600c1c0e00b0039466afef0cmr15354568wms.85.1652092254207; Mon, 09 May 2022 03:30:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn49IndA3fw/kxSeAgn/nsRJLSf+pwp1ql2pRRS8N13mk2MPg15JQ8f5S3hW7oBiGj0nneVQ== X-Received: by 2002:a05:600c:1c0e:b0:394:66af:ef0c with SMTP id j14-20020a05600c1c0e00b0039466afef0cmr15354528wms.85.1652092253671; Mon, 09 May 2022 03:30:53 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 14/26] qcow2: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:07 +0200 Message-Id: <20220509103019.215041-15-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652094117137100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria --- 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 404d56e258..17be4425f2 100644 --- a/block/qcow2-refcount.c +++ b/block/qcow2-refcount.c @@ -3704,7 +3704,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 4f5e6440fb..62cb153987 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -2438,7 +2438,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 @@ -2456,7 +2456,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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652093834; cv=none; d=zohomail.com; s=zohoarc; b=OGDIfnZmNW2+iLIvEn06dbjW3owNGKRxc5kF1FQdfqWzDn7yhATIp0587f3+K5DzoE4fW1o2d1sE0D0/DvpgXgaZkPa7Nw6nxSv8tonRuZZs0Tney/rHJsrS6ZNc6c+QBhb3VcM/u50WbecKYJZHTUndPp7SDvg9I4bWXhhhHOQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652093834; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=HeXge5WfJ8/fiVVZWO8ojQpT8h7eMYKWb2NNZzpR868=; b=RwdQzPY3cRV+Pgq7YpbbfofTL/vfqs+8TUwoYASfBYi4jl3yvoTntzDsbIeRN9SL1GN76iUYZtlKb5xgHJqWmUchN7XMdPrNC69z1w2cxES7OjRLTHcUK6RovAUTVs0ntiSAkA+7khDOvT1m2VhTmg8o/gqmSvt2kEP8kDBgSbc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652093834005902.1006024646456; Mon, 9 May 2022 03:57:14 -0700 (PDT) Received: from localhost ([::1]:49668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no14f-0001zC-Fh for importer@patchew.org; Mon, 09 May 2022 06:57:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fO-00055h-Se for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:02 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:25750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fN-0002pn-Bu for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:02 -0400 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-562-VhY7QFsSMgOhYN-T5RjoxA-1; Mon, 09 May 2022 06:30:59 -0400 Received: by mail-wm1-f69.google.com with SMTP id n186-20020a1c27c3000000b00392ae974ca1so4667071wmn.0 for ; Mon, 09 May 2022 03:30:59 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id p20-20020a7bcc94000000b003942a244f38sm16796381wma.17.2022.05.09.03.30.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092260; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HeXge5WfJ8/fiVVZWO8ojQpT8h7eMYKWb2NNZzpR868=; b=X393zodIiIZgHFwNEBYjXi72U+JAhEGVZnBU4bzkkawg9njnbUuC4LJjPeMhE1tdkxTtTy nIG//t3qvUbvNBFH7fz8vbtpmJ8i03Lj8fxvKvEMudAy92gKvQQ5sazS+/W9KRLZkCRoST /Oxn3aeRavmHypFXVk6jB7Z7IPZJYn8= X-MC-Unique: VhY7QFsSMgOhYN-T5RjoxA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HeXge5WfJ8/fiVVZWO8ojQpT8h7eMYKWb2NNZzpR868=; b=2UYO7rZoj8mtpwCEvFLJ3tFrPFnKq2BKs9dWVfGybw6ux1ZM+Ev6t4cV8dnbuVO4u0 R7+y2tKVO64n1TfTLz9GalOxERL82XAAQMUzMNOhfwVIhOOS7xD2bQztauCn2S3Y9AiI xagHTNiYp7ZdJrTVx5aImnBSxwSa00YE7rUN2Gv/Rn48ChFG+O45jngv7rJwCD1SpDKz QwJhMMCYIBsDjAFBXGybjotxeOVqy74a8UX4EBmWXsVg5QxrBI83OPS5p6bEWs0ypyHU fROX5EyHIHZNm8gq3hIIEzUjarvOBnLFNyckA8K1+ZGewFw9YJvz4ctAQjn+wdkPTdd2 U+Rg== X-Gm-Message-State: AOAM533PwJWqBKjcqFsRTHe26R6AzdOg4I9G4emv2mn8pW2pDDGtg+vx ZmD4SgWb9hkC6YYBaywGX6oCbvSF6ZLDj5I3UZ0sah5KRQobWGLqwyMf42yCsaT9r5eIK5xHMS4 Xiugd0NwpSm/xbmuVQt38X4JKY1JBqkIchDjIpR7ctsK9IIaMC1VmQ6yrSLqe/ttyXJU= X-Received: by 2002:a5d:5960:0:b0:20c:5a12:20ed with SMTP id e32-20020a5d5960000000b0020c5a1220edmr13235541wri.303.1652092257683; Mon, 09 May 2022 03:30:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv0hW7T6GXe+IePWdtKRqgjZp0q8HmbJzAkTVjyYGLyvsGGFg/xebFuSS2XfiD/MJm5jFuEw== X-Received: by 2002:a5d:5960:0:b0:20c:5a12:20ed with SMTP id e32-20020a5d5960000000b0020c5a1220edmr13235514wri.303.1652092257252; Mon, 09 May 2022 03:30:57 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 15/26] copy-before-write: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:08 +0200 Message-Id: <20220509103019.215041-16-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652093834987100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria --- 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652094493; cv=none; d=zohomail.com; s=zohoarc; b=XkUR05586Fl3EenXJM6qVUBYq0BZnTJ0xhhiyvA/9DfCDscsLi3G9sYS2wHRmH8WbcRLGeHc8MolmOqn8NppQnfh7o4K7mL+Zx4sEu2950XO4hXCbBTlgY6lGRMUP72CvTHSLVM9QutKNl1F5zzZ9tngozrx2KJO+lEJ+NmDki4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652094493; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=uQh22lnufKAWgD5CqwEj3x+kz0+ZoWkWusiZbQ7A4AM=; b=hHl0fBy8XM7VaBiUWYUUIaUgk94Potck0eZ63sCpFtusq8nB1fm1q9epD1nMaf7cumc7Q20l88Pjr/mQQLz7tyOmQ4RseLPudW9OEmMe4U4mW696eqoinjwCURIjlg73859mVTFVJThnk1WtlAYfhmhzE+Dgix/VUz5FiqR4zTQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652094493185593.343511984462; Mon, 9 May 2022 04:08:13 -0700 (PDT) Received: from localhost ([::1]:35556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no1FL-000479-Be for importer@patchew.org; Mon, 09 May 2022 07:08:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fY-0005Es-81 for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:22 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:32407) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fW-0002qK-PG for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:11 -0400 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-271-6WgXxChBM5O_p5vu8sHxxQ-1; Mon, 09 May 2022 06:31:01 -0400 Received: by mail-wr1-f72.google.com with SMTP id e21-20020adfa455000000b0020ae075cf35so5649198wra.11 for ; Mon, 09 May 2022 03:31:01 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id s1-20020adfecc1000000b0020c5253d8e6sm10730411wro.50.2022.05.09.03.30.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092270; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uQh22lnufKAWgD5CqwEj3x+kz0+ZoWkWusiZbQ7A4AM=; b=Q+lEGQ2W750YQAQdkgRWdDgy0SqsO5gmRRljg2w6YHh0UiX0Mv7Lu70Jt+Nob0VNylK0vj HC6o6aP7IsDlDPO1Bz2cEefSYHcsu3LDIzwSfe8Ry00HkmaX6SbRcR8pmU0iRjb+1xE3pJ h9B0/y/aFeiTuug129xLJpOfNX1gqt0= X-MC-Unique: 6WgXxChBM5O_p5vu8sHxxQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uQh22lnufKAWgD5CqwEj3x+kz0+ZoWkWusiZbQ7A4AM=; b=25kP3Lm2lEoNsSKydQ3FEV9KaPx/xWW28JZI7gCc2yYVoouDKkN+W4dzgXM1bVbX71 cJAppDk9Ll/dfv2OfJ/PdCHom4zyOmOIcaBKKaGs70W5Lw0rge7Yb3y1XSwLsPoyUnc7 cE8Lf211YnpXGQjknN4v9Gs9ZN5x0sCVM9oaZHB9jSyVWPkHbFvrwep33rjOlY/1cvZL KWvodhFiiJyMJV1Bt1QQEcwwTFmgxyAh+ndudPbCAAO2FIORmkrDXVQ0KZNikMib5toU paCqQ2UfEePtpULYmfsWqScK+LXGTRNgUfBodMQpCrJbY1c0F2KWxMDV3tms5lnatHph R3RQ== X-Gm-Message-State: AOAM531OwK3r7iAdLI3WNFw9UVtXOacPDWfohfFYjxOS1QD4OXlvoyhv S7DkFjVcRFu7Li2gEjaj73iO+7ut3TqjC3h/4jcQXSA+Gr3cNHx+5VNogBJ4U6OIYvxFlpO7Yth HLWmntL9Sm8W3a9gZOoVLv4Tee/dALfWGQ6GgvalPU1BOD2Yu13tuUlJ5xDxZDc5KUcs= X-Received: by 2002:a05:600c:4e88:b0:394:8835:2220 with SMTP id f8-20020a05600c4e8800b0039488352220mr7390023wmq.140.1652092259853; Mon, 09 May 2022 03:30:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5zPqPw+quHo6pwyntwDH9wGAQi5+mrPV78TibURWRcy3Kubqwu/T0L/KaNUA0o3klz7ookA== X-Received: by 2002:a05:600c:4e88:b0:394:8835:2220 with SMTP id f8-20020a05600c4e8800b0039488352220mr7389986wmq.140.1652092259459; Mon, 09 May 2022 03:30:59 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 16/26] curl: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:09 +0200 Message-Id: <20220509103019.215041-17-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652094494641100002 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria --- 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652094309; cv=none; d=zohomail.com; s=zohoarc; b=OEMrO4t33uhQeVjWaVw4hB75jH4rA8ULsffg8ybv9C3VerGFsUimXOkAmPd7yG/8/PkQrIkRZwWqGm/m2sJVwEynoLg2bXc5Ne9FlCm4yM50VMcw7z9LViBNHGguk1v/nQjFSP9yDi5W7q6rNgFkiLiSav2Y+s8gTftC3MTJwaY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652094309; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=A7C8lG6R8RX27Fo+XJU6Uqyin0IHJd8cGVFwfHkJe4Q=; b=QeYPzix7V3ZvVUE+CtQ4Tu/iLJG+UAmQLSJ+KoRKrPym+Xa8VQgekLnCjWhFf4gy7fddpt4tsm1lpt/zcRT27ehTYW5DcbHhvPaza2beae7jEXIa3p6+NJ9ahD1AxAiHwQ8LbhFMKG0Qvn7Sr7hw+XBLYAHpSrTTD0Kdo85x4Y4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652094309825339.77659895323495; Mon, 9 May 2022 04:05:09 -0700 (PDT) Received: from localhost ([::1]:58258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no1CO-0008U5-Gv for importer@patchew.org; Mon, 09 May 2022 07:05:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fT-00058R-Pi for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:37700) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fS-0002pw-Aa for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:07 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-672-DP01cA3NOIe6kOwPKR5z7w-1; Mon, 09 May 2022 06:31:04 -0400 Received: by mail-wr1-f70.google.com with SMTP id v17-20020a056000163100b0020c9b0e9039so4565749wrb.18 for ; Mon, 09 May 2022 03:31:04 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id p13-20020a05600c1d8d00b003942a244f3dsm12299246wms.22.2022.05.09.03.31.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092265; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A7C8lG6R8RX27Fo+XJU6Uqyin0IHJd8cGVFwfHkJe4Q=; b=ATY1F5sFmmh3a4HOS83yYvErbRTP1fOuUtPAF/x3saXP3H/Ahn8dggFPWyGm99OLB/bkrN Qc6dfwqRsu0IiHUogwzEyXwL8nqcrNaAdcWw1F1/kwwZqnyI2z7sqf4Fy8BmnVkW/Bzdl/ BYzTHmHGVO2wmXbtn7zpVrwMpuDGbN4= X-MC-Unique: DP01cA3NOIe6kOwPKR5z7w-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=A7C8lG6R8RX27Fo+XJU6Uqyin0IHJd8cGVFwfHkJe4Q=; b=a6d8U8KAC7VbkAkaw9XTRtfSf3NBVzMrnCkeWQKvYbz/Ahpuz0GBJ98m15kohOrcnf SfEqv7Cj0600dbD89vAbZQdV2YRDWMUXY9Y+Xj31FI0zo8lWVl8YSNjKpkzURfd2Cqv5 Hk44Wd9s9E3eIYHb+BDBM5o0MiLWBCMRUifwJKEf9WBzvfBY+lLBBKz71np1C1ImPlPZ xAR8xt8l3rLJF6P4chbxwNflNPzqTwaQ55vOkq/fy2y4B+guqEVDUQAnGdt2MFrUqcMR b6j49Qx/oFNiSY1I++h+xx81xKvj2hwoXsCtf6S/N0yjmllw4WLdy+vZu+TMfnOKubX3 sNzw== X-Gm-Message-State: AOAM532ntayQQD20CGwqfZv8AcQ/QRCToo/4jGT5INceF+BFWB3YnDwc 9XAlRoGj4bZ+fZXLatuzCsmHMYcqA6iV81QbiI0g3Brflw5RtByZJR8lgufStqqVn7JbHFJw/TG 726ECb79MSHEA6iKmXZBrXoBqZoz9ZE5Sqg6OC17lwd8of5AxynRKs/vIGwn+n2qYBcE= X-Received: by 2002:a5d:4d8c:0:b0:20c:57b6:3319 with SMTP id b12-20020a5d4d8c000000b0020c57b63319mr12932542wru.536.1652092262678; Mon, 09 May 2022 03:31:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzXH+INZo9eTEiw5jZ7o5TjurTp5JzMeurw0Wyt5nZpKnj3vAQ89hMT4UNtYIstenec9VWhQ== X-Received: by 2002:a5d:4d8c:0:b0:20c:57b6:3319 with SMTP id b12-20020a5d4d8c000000b0020c57b63319mr12932521wru.536.1652092262291; Mon, 09 May 2022 03:31:02 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 17/26] qed: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:10 +0200 Message-Id: <20220509103019.215041-18-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652094310935100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria --- 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652093687; cv=none; d=zohomail.com; s=zohoarc; b=gVoa/Mb/me54QKL413NYGuu8dh7VuLZBCqTGCwx8fpxDK1Q8inK8ChwxJOkqrQXUAer7zSKs1SXeZ+yG7ALkVEEbWjF0Tx08xexLSVZp8LAnzB40Qt22wPmohRJ5P3h1vzZh0WNh3ubn+PpN/o75GRQecFi6/zjQCYoqxfap8z4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652093687; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=WqtILOyZNJAH6lSpTMECSN6V7UXBlL2LcrOyrAYW4Co=; b=NVJQzxake6GVtKD/nT5EXxlxutc7rvpVNL3h0qaGjGS4ugbGC/w+EgjD7f9gOVzMj9uv4+GlirF570FUooH3pogA+YcXJWzAO1Hs4RnR8Za2MPf/kU+cf398RH78paLTGXWQbMrFPcFKXcEUuWH4NEq+NEnKfvnbv2O/j3S57jc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652093687199462.7348684376825; Mon, 9 May 2022 03:54:47 -0700 (PDT) Received: from localhost ([::1]:47486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no12L-0000XJ-D6 for importer@patchew.org; Mon, 09 May 2022 06:54:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fX-0005E7-9u for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:11 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:54374) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fV-0002qB-BL for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:11 -0400 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-397-2y-sExdfMxW3__VO2p_diA-1; Mon, 09 May 2022 06:31:07 -0400 Received: by mail-wm1-f71.google.com with SMTP id u3-20020a05600c210300b0039430c7665eso3724441wml.2 for ; Mon, 09 May 2022 03:31:07 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id p3-20020a05600c064300b003942a244f31sm16462969wmm.10.2022.05.09.03.31.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WqtILOyZNJAH6lSpTMECSN6V7UXBlL2LcrOyrAYW4Co=; b=dEloNm5a0U9PiLMK7oLajnaI+zIR5HNZPqsoHfhe2HdXKBmhzi1pegnQwvvy7ri8lB64x+ oJ6nZRIMgtSGK9cMcRQSw470vOoPbd+hr/Q4lFyg/LIVos2A1Qsl8dk9/CphcTmBBVE/Qn t4RBhYwLGvRT5EiOYxAMfIJjZ23wyyo= X-MC-Unique: 2y-sExdfMxW3__VO2p_diA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WqtILOyZNJAH6lSpTMECSN6V7UXBlL2LcrOyrAYW4Co=; b=4p4kl7GN216IDZJzECzH9+GKhvzRAJYyHOOP4iyU/hKzWTWhYuHEkxi0fVSaUAEoBo 2fq8Sm3jHEcnWOlp7cSRSkOs4YTXkyj+cVTJBPWtwI6xGRYWh9aTkn1Ma7DdMVWBiHEI RM6/dsDFZUikhQTAOXxDgTQbXynhBZ69nl2VLpBfH43BYB8WqShf5kL0e7GrkZAZB7LE LrnhyOCIkTLYtaRZUeL9EHTGKzcNednk0DDFvXxD+jsxmZ1cmdCxFCIG/sGnqGY9DqnK dvgN1rpYZMFXkCcnMbIQQs1E5So5n0tPoAA1ue2lyR/6RlVeEc6UWSmRU032Q8XmNA6z CD6A== X-Gm-Message-State: AOAM531ca6tlvR7H/0lQdqjjU7WURy7C2hKKHzep8ABif57MnUUDNUwQ 8FfHKQUvOZfakDVG8iPbL8IMP0QkzDryfRap3l+EL88L+rW5EwhAoUuWCdA7uBfXRCdXWDxq7H2 7W8+AxQEDNbiDfiOhO1VQ8ZPL8OXNlULk9/ZY06yAAJyndBVfgWE2yvzMVoWR222W0XI= X-Received: by 2002:a5d:59a5:0:b0:20c:5603:c0c3 with SMTP id p5-20020a5d59a5000000b0020c5603c0c3mr13321705wrr.521.1652092265634; Mon, 09 May 2022 03:31:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5vDUuUAoWPZQwz2rl5ktT1xi3qJBAu2pAVtYkUEsYagGS8owatIWn/cGF6bloaBVFjWdzpA== X-Received: by 2002:a5d:59a5:0:b0:20c:5603:c0c3 with SMTP id p5-20020a5d59a5000000b0020c5603c0c3mr13321649wrr.521.1652092264931; Mon, 09 May 2022 03:31:04 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 18/26] quorum: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:11 +0200 Message-Id: <20220509103019.215041-19-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652093688930100005 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria --- 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652094801; cv=none; d=zohomail.com; s=zohoarc; b=Oo5zlgG1lSqhVzAB367xvXY/YmBKDrWHprYRkxCHAKubR6UejEfnNfmpa6s19eT3V3nFGvUhpA/6JeressEFfgJF+qbeSiIjOYqOQuC+7luMyVRyDb+jGsgciWZhEHrzAfQAbgGRoW/4i8dgw7jjjp18mz6yKOP0PkQKEzBzu8M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652094801; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=v1wXjy3dOvISKhKrLTVr4XDRoBc4ykMCUe9x4ZrVMjo=; b=BgJtMn7ypZaCkgse10c/Juo/Y/UJY/TB3Yk8SuMixrO5sDAwJZ16MeCjOAuJpSMEpz8y1IGLR8Gxa2rinIlzmAgzc9Xul2U/4rljASKtrWwrRO+rMOUgezdX1qCwF0+kVFEVLlilGVSNteNNB8Pvfpyn1anBNj7g2lCrX0vymtI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652094801792637.9793807367533; Mon, 9 May 2022 04:13:21 -0700 (PDT) Received: from localhost ([::1]:44060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no1KK-00023F-9i for importer@patchew.org; Mon, 09 May 2022 07:13:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fd-0005G3-0y for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:24 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:20148) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fZ-0002qh-PA for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:15 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-446-Ee0BMztrMc-7EK-kRwQDcg-1; Mon, 09 May 2022 06:31:11 -0400 Received: by mail-wr1-f70.google.com with SMTP id v17-20020a056000163100b0020c9b0e9039so4565891wrb.18 for ; Mon, 09 May 2022 03:31:11 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id y11-20020a1c4b0b000000b003945781b725sm14869730wma.37.2022.05.09.03.31.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092273; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v1wXjy3dOvISKhKrLTVr4XDRoBc4ykMCUe9x4ZrVMjo=; b=Q4F5whCsIfk5NFa/V3OHaw80a85s3Xcv4iI8zWBtfFqqy661Wid9W1yaMvbigvh1AmwfsA aHJ+5hnboU41GbZ6Zk6TWv3syQZLwA5B++hN+zubuVKqCqb6bGvMtUfzKFzBFXyN1h900c fjsHEMFEdjdWzt7Lwruk0sA3oB1/mv4= X-MC-Unique: Ee0BMztrMc-7EK-kRwQDcg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=v1wXjy3dOvISKhKrLTVr4XDRoBc4ykMCUe9x4ZrVMjo=; b=eSBtZ1PiYJw0y4p/Bi7U0ivPFIE4klvPFAqsoMQqaBuJdfFPcQojCfvnY41g1m4sJD J56SjthEVRr8KEEeWcA+/uO++RPJho204+EHyuNgi7M2+dpfWgbNx1BJ4wLmJZr36enn ktpBt9E4YrlYT201d28CzUOqlTdKZQ6caayjoaJ30//AQRpZo6Ti8Id1aHZvbQTYt1fY Gq++rpFLRmi4x+WZnSotUEzwk0P9dk80CBy1/nLtV3E9oRizKuBQOb7/3RkVwfA2TuJT t9ny4HWylBUal4Hf+dHfFilEkcAoSE6pzCCKn38qou3Ds4of5iuMIrkMb90QgwkaiWsI ogSQ== X-Gm-Message-State: AOAM532EIV1ifpVAlN8a08io24ihoaI8oZFVK+4NQyXrVJyeKwQZAJoC vUH6RDAKCXMqQ7ACE4ItaD5+DNplpTEuMRGmhU5+VUCZCf2ou8I7OQV86kczQ1ymNX8TUqJTffX v12SYeknqzY5nkavQ0WNhdOb57RxfOaHNG/uR6vKeoOhWdqI8mJuNaedZWaV9ZDH80xc= X-Received: by 2002:a05:600c:1d08:b0:394:54ee:c994 with SMTP id l8-20020a05600c1d0800b0039454eec994mr15128887wms.137.1652092270013; Mon, 09 May 2022 03:31:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdEv+zZrmaYRhteWCMm3/pM1APfr6PaARAOaNIqJYXYdQ+Ub1zjoSGV0VobBx7TT0ofp+W6Q== X-Received: by 2002:a05:600c:1d08:b0:394:54ee:c994 with SMTP id l8-20020a05600c1d0800b0039454eec994mr15128845wms.137.1652092269559; Mon, 09 May 2022 03:31:09 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 19/26] throttle: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:12 +0200 Message-Id: <20220509103019.215041-20-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652094802577100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria --- 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652095103; cv=none; d=zohomail.com; s=zohoarc; b=CUCvnz3+mQrZUJAAfRzccFRXGiy/8YZ3TAqdKSbtNm0IBl5Y3Lg2Zn8oWEQSVrz+V5gBwbpZxQcwZXlY4H9OqVJVchgQ378H7QHJuGcAPcTdFsiKbo/m/yALjJVnOLvFICjCPMp4X7csEW0gyYTAsbjXWSstyTZHCojH2fMd9+U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652095103; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=iP0EFfAGCyX4HpBTo71VQVnCIrQ29o6nhf7Yzzn8PjY=; b=dGKqOXfNZ+wEpsuWvQccp1Z2v9yW2m18W13MkFAh3cb0cuR8S22eSFUFaZX76h5zmiaNkH3n3J5z0sbT3oPt96psX8AuR2aHqFJEXbT+XKymAzjr/ylHKnSc/zeyPuiyNY+lyM7hjPjb+fKdHFktuxwoVbcTnjGGlpD/kLN4648= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652095103876273.15884489519567; Mon, 9 May 2022 04:18:23 -0700 (PDT) Received: from localhost ([::1]:52596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no1PC-0007yZ-Mn for importer@patchew.org; Mon, 09 May 2022 07:18:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fe-0005Ga-Uj for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:24 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:25467) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fc-000328-P6 for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:18 -0400 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-655-BzY1lxnBP32-p7nSOAFJtQ-1; Mon, 09 May 2022 06:31:14 -0400 Received: by mail-wm1-f71.google.com with SMTP id e9-20020a05600c4e4900b00394779649b1so4977737wmq.3 for ; Mon, 09 May 2022 03:31:13 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id a12-20020a056000050c00b0020c5253d900sm10610696wrf.76.2022.05.09.03.31.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092275; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iP0EFfAGCyX4HpBTo71VQVnCIrQ29o6nhf7Yzzn8PjY=; b=hdeZmI80bVPbXdfL95ZgDqQW7jwL+5sJ6cj1zM4g5h++QZuoqa8T/+pHBz7F+wwZUM39im 9fRvGjfvBlnyrRVW2ElU4MwdStY7jkt2QmbebxY8Ew2tSYBENRNmO2uJSsH4sU0WrT9mhj d9yAS2irUaQ1X8qG3uvW1hcPpJcjl7Q= X-MC-Unique: BzY1lxnBP32-p7nSOAFJtQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iP0EFfAGCyX4HpBTo71VQVnCIrQ29o6nhf7Yzzn8PjY=; b=2/aZU8Me+gmoDjNbWCUxISRJkb2Hbk4F4gnA04GYZLJ4CHFejggxhU/tiGgz6P15a9 Zy2QHe8cF/E7jaY82SjvPoL5F0rUZ2cFCvMAejsIjekS244gs0sgJqsyvI1dxbnVq3Ij d1zevnVMgYKnv28LEIJtkosr6W60WlWO2hNHvvHw8uuJBnj9HR87n/9nv7VD8WZM/h6i FiM7q4jKlIRHzLet7x+L99+60ZDAV9wlSAhoZLCCuZlVxibppLw6tdi5WU/lQ8B988Lw NqN4SraLvZNc55uDfi8S0Nqvo3xKW8TYQYSLffAB3BpfUxkk7MfgyIm2G1U1bMUtOZJM JjAQ== X-Gm-Message-State: AOAM531+d6soNcLtVw57L+q6dD0HUs9I5vOnz1diZgRMDAnWu5FP0iQL ZWQoMXCDyej17ky2RP7DeRBJu6BRNhTTB9fpAwDKdgQht/0YFIt8pkAhHgMXwFx3lRFaa7L+Idi dOLTgd2TwXSwC1zoeRg5Ug+fZbiAfCy3/8D7VxSP9YQbL/SSQohPQlB8n3hdXFVp/yc0= X-Received: by 2002:adf:d1cf:0:b0:20c:a6c4:98f5 with SMTP id b15-20020adfd1cf000000b0020ca6c498f5mr12971215wrd.501.1652092272582; Mon, 09 May 2022 03:31:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeJeFnQ5yxjo2FgY4rBO5heYLYO3IB1AOdEKJGh0RBOWJGQ+m+4NOP6zUDNPx5ozaqpsaYAA== X-Received: by 2002:adf:d1cf:0:b0:20c:a6c4:98f5 with SMTP id b15-20020adfd1cf000000b0020ca6c498f5mr12971188wrd.501.1652092272135; Mon, 09 May 2022 03:31:12 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 20/26] vmdk: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:13 +0200 Message-Id: <20220509103019.215041-21-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652095105586100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria --- block/vmdk.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 38e5ab3806..2c7f1858f9 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -1793,10 +1793,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; @@ -1874,9 +1874,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; @@ -2023,9 +2023,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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652094131; cv=none; d=zohomail.com; s=zohoarc; b=mq552t50qPAHY3t2n00w+ilMOqnYzQnW6hp6jyhkPWuadz60puahzHotDMToWPLCYSMK8l/uxUdQCHy0o5+cFmNwFNiaRdoBBxBidNRQZY9pAmx911QjDwK64EmMmCnH9237fVGUT5RjUIB4li4Lgcj38tmVK/DOSyDOePyb7S0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652094131; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=XT/5ko8xXdFB2oZI4c5/NazeRRBkHp1p2r7GLP5NiZo=; b=ZMHoazZS1ncgRdue8jpKG004+nwoU8WwFBx0ugQTsSvmseSSmb4hJJ21mzF1vhJwTHSxVcPjHZQf0bZeQTK/oIltkL4gb7NsoHPmx1iWOIe1dvEGxPU1xwugAzqDjZcYqAG+q72EBb/Xrl6XFmHP236OZNv4ucp5puNARmz0rf8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652094131254335.07268028287024; Mon, 9 May 2022 04:02:11 -0700 (PDT) Received: from localhost ([::1]:56152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no19W-0006vi-2f for importer@patchew.org; Mon, 09 May 2022 07:02:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fk-0005Kt-Oj for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:33 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:60718) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fj-00036b-9T for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:24 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-649-MR8FWGrHPDWy-p6cEDgBKQ-1; Mon, 09 May 2022 06:31:21 -0400 Received: by mail-wr1-f70.google.com with SMTP id v17-20020a056000163100b0020c9b0e9039so4566309wrb.18 for ; Mon, 09 May 2022 03:31:21 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id e13-20020a5d530d000000b0020c5253d8fasm10677278wrv.70.2022.05.09.03.31.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:31:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092282; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XT/5ko8xXdFB2oZI4c5/NazeRRBkHp1p2r7GLP5NiZo=; b=cr0nYk2ZKgMaFj/UDN6z4hqMTRp0XdANZlVjx9ZObaoGbYNen8+IJq+L+T9S3w+pe+edGD tLbNeunniRdAQg3hh4mRTI0u6VvBcZsBNKEdd3XQu4/SSfM/80KZQtwCq62KiqgEzqGTnr bwbt+LWOrOe3RAL6VFARSbg+CHcEKRw= X-MC-Unique: MR8FWGrHPDWy-p6cEDgBKQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XT/5ko8xXdFB2oZI4c5/NazeRRBkHp1p2r7GLP5NiZo=; b=Q8Pbj01jhU71lilGxB/RyQncOAeVqe0Ei11jy/VJv3w/i+p6g1lgDnJTAz/W5ATobz drvVxTbH7uKxAnG8ZwTjOftLtjsDwMB1c2dEuFnWokU0uqIIsCEmG7EQdeBAEa5u40Bf qryEhLnrGY3vUFq1UOXsT//zbEmriPt9W9nHwzpe93jVMhTK/v8R8EHdLMMPsMlO+xq7 wcSqh1GYY3/AID22SYe8hII0goTXWd61ILVccBwQbt1i6djp/k0hwyJe3F2bhPXCKYEf lNWD1GuK0FmC29C5g/RtqIerdnV2V8Yb2diMrrjYR4q3wjsy6P7XkQjWq/TcQ8YI5KJ2 Pi1Q== X-Gm-Message-State: AOAM5332uzMjNXpb9qWTcKdBmuncbd4esdkwxmsz8lrfAMwheUcTJNdr Z2nIr18TqUg8U6WTM+Tu/Ebz2AWIkg2jDCqMVcWdqvxrQItMzFINvpjzrPLOArcGm8vd9lvSe4y Sp/IFHHf6tnbSWhEF5uartTuxo7sFH5/Vx7Zr9i2HN/W+z0RZh2QOMeBRVKM/m9AnlhE= X-Received: by 2002:adf:ef01:0:b0:20a:8068:ca5e with SMTP id e1-20020adfef01000000b0020a8068ca5emr13100307wro.661.1652092279905; Mon, 09 May 2022 03:31:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSLwO7abmTUoBIYZIueQSVUo46RtZCdpuowa6VUD1fiBH1hCwxuL1EPjOuk21aYgRx+/4E+w== X-Received: by 2002:adf:ef01:0:b0:20a:8068:ca5e with SMTP id e1-20020adfef01000000b0020a8068ca5emr13100284wro.661.1652092279508; Mon, 09 May 2022 03:31:19 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 21/26] job: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:14 +0200 Message-Id: <20220509103019.215041-22-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652094132006100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria --- 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652094812; cv=none; d=zohomail.com; s=zohoarc; b=KkfN/wdBb/sYPNPvno2TyYL+yCWzbxrn6YAia55ERQYxJUvoMppFfYKNkTf24Uf58j7e1O8Dfph6XAfiwlopPqX1ADNPiZ23wQNUQxyxmWA06iv7Ugd/ydQtBOTOvy0t7/g/8H2vAzvZV/4xnEcm0iaF4EnLvqilKi1Wq567h6g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652094812; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=V1ImhP8nQI3nDHWkOKXvAHXmp0Nf/es+1XlM7xHuiCI=; b=JpXRB5Fe8MF1xL2VdJ/Zn9thGa89tOm6jk5SlmWek5i/uCGnUScqLKCZN7NC8/gNhOqkTDUdk9cm+DV7jtLRXQwp7Otszh363kruyuKXUzE9gCafj7wH/DujOCNZd70g/xFG7q+kbgLnm+WVyWWnZdzXMW6qFAkYhecIMNMtaUw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652094812106377.8014383090298; Mon, 9 May 2022 04:13:32 -0700 (PDT) Received: from localhost ([::1]:45114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no1KV-0002rQ-2i for importer@patchew.org; Mon, 09 May 2022 07:13:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fu-0005L1-C0 for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:35 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:34222) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fp-000371-7t for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:30 -0400 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-324-DnO5QeK_ODymTAQc-FvXJQ-1; Mon, 09 May 2022 06:31:23 -0400 Received: by mail-wm1-f71.google.com with SMTP id c62-20020a1c3541000000b0038ec265155fso9699711wma.6 for ; Mon, 09 May 2022 03:31:23 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id v1-20020a1cf701000000b003942a244ed6sm13037466wmh.27.2022.05.09.03.31.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092287; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=V1ImhP8nQI3nDHWkOKXvAHXmp0Nf/es+1XlM7xHuiCI=; b=FNxzZ7p3bWmRb/oiac7IlEhRF8XJtI4SsxdDm0aFHCfdWUMtuH1ZruwN0m6YUxPZa4AoUx K+4mXT3RgtIXnitd+6otk/0cb4mx8dk33k34Hcvd0U0BUEl2sZT1+TxoCHP8bW4z4ktzeR I4nz00ix7UYXGpNnCTFbhM0LARLImfk= X-MC-Unique: DnO5QeK_ODymTAQc-FvXJQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=V1ImhP8nQI3nDHWkOKXvAHXmp0Nf/es+1XlM7xHuiCI=; b=eeQbBMiJjD/gc6GWcXpE2cTMigtluXMlVUL9VfC5knY+DVDUaFzB4RJ6M1RVnl5igU pJEEAzrg+yf5mDhNDs+n06Q3k15kTC9XejEHIzfQ8ffqdJgAFu238lcpKQn8qkExczHZ sONtlQR3VMCENMueiBk61nGc0sWh514qNpLa5j8ggbAuk5sbAL5TaZ+SC2qsc0PHupbv zdp1jdnX5hWql6PMF/Zf8S1T2V0CxtS5LCiMQxiCv2008b2U/LgbMOl9xjvXaCHltjbp WM4yiq4KM2rIpBm+lRsH87ozjNaXkEUxE9MZosZCeR7OUkZw5n4Q1qUECXPa0wQulbIw X3/A== X-Gm-Message-State: AOAM531EZ++Z+b/KK1KM3WxwwskpC8qeiq5Co1jWTSYE/TK57vZazGOR 83yDxd1xlwu+Le8OIX1BnPclsr83owDC21WvD4vh37S8sU9tsPGdY5OH4XAtPXaUmsOUM+E9B0I a85xbAlDWZwy8clDYnibzxFZfkvJtEIfD6YGgGrBcSUWlozzC4IIB/G0qNJ23cAi1DFM= X-Received: by 2002:a05:600c:354e:b0:394:89ba:e211 with SMTP id i14-20020a05600c354e00b0039489bae211mr6820325wmq.86.1652092281733; Mon, 09 May 2022 03:31:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwrtmejcE2KvtHcKKSIUg1n/w9WJliHPzsKywv9QEaldkHqgD+BrWM3jFbztDrxxNIF1AD3g== X-Received: by 2002:a05:600c:354e:b0:394:89ba:e211 with SMTP id i14-20020a05600c354e00b0039489bae211mr6820292wmq.86.1652092281290; Mon, 09 May 2022 03:31:21 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 22/26] coroutine-lock: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:15 +0200 Message-Id: <20220509103019.215041-23-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652094812572100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria --- 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652094493; cv=none; d=zohomail.com; s=zohoarc; b=EMygDcWHNzDiFW3w/O8RWy19x+XeL4aj3GHSBwvawapXOkSClSzVijx0QxriSuCJc1wTUPNdXMjf0rMqYnOXTThn50M9iy23I5Z2MIeS7KVmfItVcfc1pXE6G5K1dYB08ijwjPTxrv8jFSBQMPkxa0dx8HtwS2fiRmlqwGpEaIE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652094493; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=hS2bdLYJd1/LDmXPmGLqhJIOHD/m7LY1SJSJcfAc9/o=; b=WSs2CsRSQ7Ai16LvdYPdcpVTOetcDB4gX5x2TvXTkAuqQ6JD80Xirk6bZvbG5RNMHb36vQm+IScAHWV9FxeOvysy3zUL1hZq4a62WgYqqxYrjTP7P6KZ3IuXI9X+ZC7807LzOP1CIIYrgBVRJ0+Vhqex6M/OtdAGpMquaApIZa0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652094493382158.71823686005155; Mon, 9 May 2022 04:08:13 -0700 (PDT) Received: from localhost ([::1]:35694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no1FM-0004CS-3p for importer@patchew.org; Mon, 09 May 2022 07:08:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fu-0005LE-Ar for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:35 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:27365) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fo-00036x-4s for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:34 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-34-HwNlyvskNqCydo3IwHL3JA-1; Mon, 09 May 2022 06:31:24 -0400 Received: by mail-wr1-f71.google.com with SMTP id d28-20020adf9b9c000000b0020ad4a50e14so5608029wrc.3 for ; Mon, 09 May 2022 03:31:24 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id m14-20020a056000024e00b0020c5253d8besm10555844wrz.10.2022.05.09.03.31.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092286; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hS2bdLYJd1/LDmXPmGLqhJIOHD/m7LY1SJSJcfAc9/o=; b=gYUXYbGke3uisS2pZGRWHcX+lth2WCVZLmKPN0yMtVonBJi+OV8QKiPj6drCK6unQWgsQL tzbPvvQfxLBj2zqNxIP4EP+TC2sXS0i7KC54RLEXp96kBc+GhbWnDeHOqM8DsdicfWorQ+ WOPEJn68/YiHQV3+vEO80QAGKKloSjc= X-MC-Unique: HwNlyvskNqCydo3IwHL3JA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hS2bdLYJd1/LDmXPmGLqhJIOHD/m7LY1SJSJcfAc9/o=; b=8LkhAlxCkoRsg0Ojuh8Xso6RgkOQlBD3IP/9VhMN/SG65yDh2X25p5VqWiEKo3h/zB 2/3L/tO5AKFL1+5AwG+2wQRqop3xWLIZgPsLdz2oeD0PaDi86uQGO+v58BAGVxO3c1IP VGj9WaQ4i4/QfF9HYg6STliCz6FJ26qXf3IB6h0IqtV4qvJ5D9C5Lk6o3iRxvG63zeV3 zqmxJ9JYMvPv6Wn0DGdRphY3ZlAld8+NojrLYbn6W5hknR+jGx2R7BWcQQ9kP4/LzD+R lcGgLYdb4joBtaz6hnNqWNZfcwpyUK9UHhQqU+fQSGkK4IkHjsVTK2uRN0papVFX7Ybk uslg== X-Gm-Message-State: AOAM533zEaLhmEH/bN6GugjuBbidq8EZpWA+N2JUEDGY7Oubg07wsVQy uWaYU6dSLSUCWXKh026BJfF0BuajhVwSuecCVAJcknzc3VzrNhK9hQTqfWBezOFPN1+l+hG4A5W jQLZ0I8YWCm6gldSNJUiix3XIOokbcR5yVfqszBsZoTRwV/H9De3fhuy5hR3XXmm2ZFQ= X-Received: by 2002:a05:6000:1569:b0:20c:4ed4:4ba8 with SMTP id 9-20020a056000156900b0020c4ed44ba8mr12988248wrz.270.1652092283124; Mon, 09 May 2022 03:31:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzS279LkxlHvv4bXbiYeCPjw7UBVA2cgnNw6WzehrbtpQzpmUjyL6LAD9w9bcC+699ms24c2w== X-Received: by 2002:a05:6000:1569:b0:20c:4ed4:4ba8 with SMTP id 9-20020a056000156900b0020c4ed44ba8mr12988219wrz.270.1652092282673; Mon, 09 May 2022 03:31:22 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH v2 23/26] raw-format: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:16 +0200 Message-Id: <20220509103019.215041-24-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652094494640100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Alberto Faria --- 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652094566; cv=none; d=zohomail.com; s=zohoarc; b=hFFcaDqFycgks0enu864WF12zYfQ4T4QL9+IewHUsPg03cDlYOEa1xaaNqD1/PkEUoCpQNfZiO7xioK2nAXmZUJvBL4fnS641sccPaHPB5HmW+kPXP9ATpuQvRiR9PvI5Xt4dXHwb1N/6RC2V6/lm28jdVgGe1HLmENDcvUhq98= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652094566; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=n6inZnLXWnAkdrOe9Q2dok2RBXEig9r/WC+XNq10mjA=; b=H2gvJu27C8HyqiodC0BIvD4qUJnEkfa3jHUMwtoLpWmTBlTJlj6VrbucSlWwVJX9BhPP43RHKLbdoKxki8mNGFNGmwQSK3FG0k2H1MCsArinxyEC9/7M/UI/Xj4pMMcWXRbPC+eq74F2ohgY2RdvPzEIdJPVsJkjfn5hV549N38= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652094566898483.0698706382301; Mon, 9 May 2022 04:09:26 -0700 (PDT) Received: from localhost ([::1]:38658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no1GX-0006Hd-Ld for importer@patchew.org; Mon, 09 May 2022 07:09:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fr-0005L2-9D for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:37 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:58381) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fp-000373-88 for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:31 -0400 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-196-uS4LQ-4UNTeK7Kl58wGaDw-1; Mon, 09 May 2022 06:31:26 -0400 Received: by mail-wr1-f72.google.com with SMTP id v17-20020a056000163100b0020c9b0e9039so4566445wrb.18 for ; Mon, 09 May 2022 03:31:26 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id p1-20020a7bc621000000b003945f955b51sm13641396wmk.3.2022.05.09.03.31.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:31:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092287; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n6inZnLXWnAkdrOe9Q2dok2RBXEig9r/WC+XNq10mjA=; b=cAF/KEPhEdaV3nEuqHP8KvLywjE5IRGlDCXZeIeIE7/oCOSBS8xxipRTTg9wqmwM0rmCEe nvhjb5d+m8YDzRg5HBplHsQ1pQhheFyG1Z4gjRS9do4+aRL3f5oMf4EWIe+RfqWaMvurEj ZKbO3V308IuFMDUDdD24bn/XAc2iCS0= X-MC-Unique: uS4LQ-4UNTeK7Kl58wGaDw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=n6inZnLXWnAkdrOe9Q2dok2RBXEig9r/WC+XNq10mjA=; b=EX4Ounad4zHCRcxjRXVuQB/CGvOkOU5b9M9pxQ13pvnVuOvw+IP6Vk5tT4Uq2QI7yT kkZlFDGX583/RtquuEvhWZdKWPQDiXwq6eB3iyYEhwIve4rb1QIYE9UPMFylsYq8iF7Y kyvJl9HA9qa8DCzk8QSHbZhADPgxJludfz1wtJ/ICDkoWDEynSH3m6vglew15XertdG1 RqvbgjBZgomEiGf41AG+Ud4mM7sAHIJXTVFiQLeY6dWjCTbMe43PukVxLba5+dWbw5XZ 0EaQQ6x0oLpUy2vFKr9sG6wi4NcSQRHIjbBZrsKMNlX2dmSLs/zvozA3TWESxrRcKxWc EnUw== X-Gm-Message-State: AOAM531SCMMxXYC7iyX9k7ha9lCdkZ48x+5Jf7DQIq2hog/dPqDKUTGb RqK60lj6HeUdkMPjr1p61aTr42DRNvQs9wbcANnaK2T/vj757jxMStWOrzy0ysLlJFMOVnH8d/f NFmhG8zEMMlo7NHVPyAhlxX4at6YOFJ1L2yP0l1LjrulXGQ5N53GB2CmNxKk5v6OgwkU= X-Received: by 2002:adf:f10a:0:b0:20c:58e0:40aa with SMTP id r10-20020adff10a000000b0020c58e040aamr13672919wro.82.1652092284480; Mon, 09 May 2022 03:31:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQqMdH87/eRhjkNKi3FOBawThWPqqcq8mJ6OyhJ78O8/kSm9Y44iMdXyzOseff7H9PXFwwXA== X-Received: by 2002:adf:f10a:0:b0:20c:58e0:40aa with SMTP id r10-20020adff10a000000b0020c58e040aamr13672891wro.82.1652092284108; Mon, 09 May 2022 03:31:24 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Greg Kurz Subject: [PATCH v2 24/26] 9p: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:17 +0200 Message-Id: <20220509103019.215041-25-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PP_MIME_FAKE_ASCII_TEXT=0.999, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652094568975100001 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: Alberto Faria --- 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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652094804; cv=none; d=zohomail.com; s=zohoarc; b=Ck6b/kHkIhGwrdX12JjNxEDKDdk0Eah9W3ujermIO4Hmmr2VeFkDU8yILbCXdZ4Za2eScRMeZb3N/Vu0rVjdlk5unDTpa8wJ2SH4Wxbh3Ytep5Smaeb0fx+AehgLngXt33X9TJW5M5uBSSH697IPt8ccTIqqQn/H5ISAwPaLXE8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652094804; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=cRBevPxYNuPIiH6l6U7B9z+Bu2KtSXy4/LwRnwqeYUA=; b=OJPNl94ZE1RE2Myxukv7Pfot/cGKLZtBOUjlRD4S2ZT5+/tvVguSPeDKwL51/2G4AUYp44BN0PAD91WkEHdIk+PvyiNdJm9rrs7B9e91QfceEmSdLEUm+TGkadbhq76SMnePtbT0whYwY2Mf1GHFxlu0v01ADY4XBNDpXjjyf5s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652094804422588.9748088462131; Mon, 9 May 2022 04:13:24 -0700 (PDT) Received: from localhost ([::1]:44310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no1KM-0002D6-SU for importer@patchew.org; Mon, 09 May 2022 07:13:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fv-0005L3-0k for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:37 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:21271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fp-00037A-Gq for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:31 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-433-TlQVlgeROsO20-HxlGFZHw-1; Mon, 09 May 2022 06:31:27 -0400 Received: by mail-wr1-f70.google.com with SMTP id v17-20020a056000163100b0020c9b0e9039so4566474wrb.18 for ; Mon, 09 May 2022 03:31:27 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id o9-20020a5d4089000000b0020c5253d8d2sm10620659wrp.30.2022.05.09.03.31.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092288; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cRBevPxYNuPIiH6l6U7B9z+Bu2KtSXy4/LwRnwqeYUA=; b=BeUA6/juQbcyOlgvAgwiXg/oMn7Ph3pIsQWV8zffAQbvJ93v9cnt2xkJILtd1r0tQh/19L esP3ZzrY5u1runlNQN3KycsqM8zy+9tcL8G//XiKQy7mS0XgIfU9ymqxoWmGBrdl/tDOcM LbcNZ80iMCicaEyp0lIBc/Foign4H4Q= X-MC-Unique: TlQVlgeROsO20-HxlGFZHw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cRBevPxYNuPIiH6l6U7B9z+Bu2KtSXy4/LwRnwqeYUA=; b=mXwQKjYjZOw07XqOR6v4vfzOSkag1ukf53y12+u7lIT+oUiSNM5W9SI7VCLWGXdO4B dgYb9PbrB7xBOkaJhSRALehs2hQJqRC4jN5aHcsd1eqI8OcpSHukqUJrdjuKh25Rw8Rc rhT9c1S0zCOF4LHcNX24DN9K8+7iqR6XKuVx19NwvkFEB01MWLwuH9G49YYtyuGQETfK y1NeOhSXSs9xOKy/6rTU1CCP4+picGjEFI5RmwZP4dTTasVQVgxtsiRYwmztCUKCOKSO XMzahcO1Hryd6X1qjEtrQwLmDbAF1F1PtpRaq/auiEwnkyx6TsOwCm5jdr/NTf8+/rew B0Nw== X-Gm-Message-State: AOAM533Wk/Kc+NAAQ1hhOKDq5ssNP3oZG8RsSQqzbB4eLum0X1qU8bqR TBV546M5kw0tTSTk5gG1Bhyq70mfr3C2x27u3oQgn1vzji8eOr5Ywu8qlr2HnP4CFjxEq1HkCRt fsTTODNuCzvOnqFOE1Z6F1Mr8LacL58dSHZeA3ic0GP8ieegxP/vAxvtTMzPP1bYlfO8= X-Received: by 2002:a5d:5505:0:b0:20a:ce51:1c48 with SMTP id b5-20020a5d5505000000b0020ace511c48mr13553859wrv.351.1652092286177; Mon, 09 May 2022 03:31:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydL3fFFBSdBfiRqD30CfqLX833NwP4PnF8c2E7qjQSYJnCjVWyQZEhuYKRQerQunEBCCK3/Q== X-Received: by 2002:a5d:5505:0:b0:20a:ce51:1c48 with SMTP id b5-20020a5d5505000000b0020ace511c48mr13553831wrv.351.1652092285808; Mon, 09 May 2022 03:31:25 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Juan Quintela , Stefan Hajnoczi Subject: [PATCH v2 25/26] migration: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:18 +0200 Message-Id: <20220509103019.215041-26-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PP_MIME_FAKE_ASCII_TEXT=0.999, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652094806148100001 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 Reviewed-by: Alberto Faria --- migration/migration.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migration/migration.c b/migration/migration.c index 5a31b23bd6..e4ccfb9496 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -565,7 +565,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 Sun Apr 28 13:48:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652094505; cv=none; d=zohomail.com; s=zohoarc; b=Mqc+/inx86gOX5TBulV7dAUxn42kpcZegretYfGHDEWCrvllYjB0qyp4WLYQO6KPSdr+V3bKSZuVoe+h2hfTII/BRE12xgELOl2b0e+DQqGehZbg7ukzngcnD9+sRQG5j1+ex+BosqjJ9wQCBqPCk7h+dPrIsWtrvwhMJEZaDrM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652094505; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=4Jj2He4XMwehAE3Uqy98FnggkYD9lJQ14hPgJS+DCGk=; b=m6O7S7LS//KENm7nlm+Pb/h6H+rl6edvYsNfBZ++9xkr+eyXJd0Uj0LF8ckPZI//o7YKwWF+t24qM2V+4+J5JBVPpQQIiGmnAFdFd8/04U0z8dAjJ8aynedfx0ZH88FbdFCyvUCMxkH2r0DIf2GEW8X4qcX6ci0SjO/a+0EjWhE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652094505038946.7935239157741; Mon, 9 May 2022 04:08:25 -0700 (PDT) Received: from localhost ([::1]:36528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no1FY-0004pg-0q for importer@patchew.org; Mon, 09 May 2022 07:08:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fs-0005LA-R5 for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:35 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:48035) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0fr-00037O-CK for qemu-devel@nongnu.org; Mon, 09 May 2022 06:31:32 -0400 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-41-2w6qOTwzOF6TJY_RWKR4_A-1; Mon, 09 May 2022 06:31:29 -0400 Received: by mail-wr1-f69.google.com with SMTP id u26-20020adfb21a000000b0020ac48a9aa4so5608814wra.5 for ; Mon, 09 May 2022 03:31:29 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:e3ec:5559:7c5c:1928]) by smtp.gmail.com with ESMTPSA id n5-20020a1c7205000000b003942a244ecbsm12209472wmc.16.2022.05.09.03.31.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652092290; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4Jj2He4XMwehAE3Uqy98FnggkYD9lJQ14hPgJS+DCGk=; b=iAAJiw0EwllxsYlGX4Bt3JCXInJKlg683FXxjsif6OlhaDMvlKHatXC1M/rcgrJ3sk93jW RZ24GX57kRipyIuoEqBpu+Wmqbt5mqYVtdKKrhCi0PZ/xdtOSfcbKQLwWVP+2tERQsnVjN EYxvt/+sjrpB1thHBkxge9Dcz6ym1rU= X-MC-Unique: 2w6qOTwzOF6TJY_RWKR4_A-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4Jj2He4XMwehAE3Uqy98FnggkYD9lJQ14hPgJS+DCGk=; b=aLnHRd6WUGEYKhR7k0AtF8PFg4b0BSKzQj1SWJzHfMWYo9yEOBSejWEUsepl+l+jyg OHqX9SB9TZGW6YTmMKFcr90K1/wKTHkmweY4EW4V5vA6nd+kJIeJ5Tos8uHOgAaGbeng KKshO/ePAcpAFCG2Ac0y0nTLuNc4/kSIES+oGAbYFf8TVZYqCnHau1BfTvUS0EJhFpPX wWZladhw5qklSCfnRoks0sp37AUaA4r6RIiHF87U+Gw3Ju5ernXXShBiMCMCsxafzhvJ eaVi1jNgnQnHj/WBAbZzKLCzIchK34AIebM4vs9hSnK9Vg5gOO9KwApoLmLWfYoauKQH 0KCg== X-Gm-Message-State: AOAM533SL/9UgecyrAUUFlgTKvHZqBAUDQ2p6rduXkJ4UH+D2YD5mZB/ gaUqa3sU6G2T0HA+UeMLGgLebh1iE0ZPJ5QyYc+TE6pAsoGrwn4fT5ZXHXqG0JvTAP0b9O1E6FW wkZ5EkNyJRSzXECzF6LlQrlHxjJpDlZk1y7M075VKhFTzkXh4Lz8Xowe7++Kn4TmzgxM= X-Received: by 2002:a5d:45c5:0:b0:20a:be8f:aca6 with SMTP id b5-20020a5d45c5000000b0020abe8faca6mr13561757wrs.493.1652092287987; Mon, 09 May 2022 03:31:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIcLWvcHp1+vMWJIOD+gk9BEMps5XFs9qJKPhV3EFvHKB08OsJc+F4lL4QvBLb4xtBEAgztg== X-Received: by 2002:a5d:45c5:0:b0:20a:be8f:aca6 with SMTP id b5-20020a5d45c5000000b0020abe8faca6mr13561734wrs.493.1652092287581; Mon, 09 May 2022 03:31:27 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH v2 26/26] test-coroutine: add missing coroutine_fn annotations Date: Mon, 9 May 2022 12:30:19 +0200 Message-Id: <20220509103019.215041-27-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509103019.215041-1-pbonzini@redhat.com> References: <20220509103019.215041-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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PP_MIME_FAKE_ASCII_TEXT=0.999, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652094506698100001 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 Reviewed-by: Alberto Faria --- 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