From patchwork Wed Jan 24 07:41:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 765619 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:10c4:b0:337:62d3:c6d5 with SMTP id b4csp1989798wrx; Tue, 23 Jan 2024 23:43:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCB/Ph4msD3v0D1OiwZt2PUG32mWJLlOjiDBv39JEKyT0F8aaUVC2MnDMeBUgeWSw0E8Xw X-Received: by 2002:a05:6214:27ed:b0:686:acd7:ea95 with SMTP id jt13-20020a05621427ed00b00686acd7ea95mr937295qvb.71.1706082217394; Tue, 23 Jan 2024 23:43:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706082217; cv=none; d=google.com; s=arc-20160816; b=pX45Y+sylMb9JOV1MhInVI4IvgseZN9vjyy5NQRd/rlv+AtmDliyzhajnWpAeZSJvD DP0cu2v8gtnzoQeA72cLuNPgEiPC53Gn8mx8UQDYyJOHsTbhtNkIjCDaYYWCksUgCcfI zrx83/wcseMS3LklYMzGK2az5ZU7YC7i+W0Sb7Zya9yGhbzGaN25mjiSnDYHl8diiGfl 3uTtsB6onEbM3MpUAlBYk6qgveiTW6nxr+elaeULKbZq7VklJmFet+9NNsHNSrRGFegi tTIPrO2tiPRkbnNHa8iAwpkmK4iDEglY2xSaDOP8h920Sp6ltW7XhF15MZ7asJ0seWuE 0AmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=cf7qB2BMl9WBhIDGMxLzOoiU+ORQO1oIrTiLobNFJVA=; fh=KW5y7sVJWPC3RyYdQ5hWn19/WmIAC8w0zp2qJzzf6xg=; b=gt05PgX2QnGg761IewdaBxE6bzRpyLQF6zKMXhwRq3kxW+rYjm+Pv1drEYCMBJmtf9 54tqFtXvYDVkkFBKxebivDLZ5Zpb/oW2q+oZC/HPBH7KH3LXetfzyc2rcztICHfPe7L7 wGD4LNNDsJBKKQItThX7WcvpZGWC1EAByB6P3CW4QPHRV0ciBj++6rECl6WpxOzu7WqE PROh9HJR7qweOSAZj1M3K/JKmEqk+GKsgZuDxJGiOeoufuptlOT+4HTsEk9iXdgAROH9 gJ3QcVzZ05YEoaiBoItk7SU9M49LOi1VE3bmWYAKFNSUk0as1CHekSNvTLc13Wpn0H+E ZrNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lm9X33tP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s9-20020a0ca609000000b006869c9dde05si4276989qva.587.2024.01.23.23.43.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Jan 2024 23:43:37 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lm9X33tP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSXtm-00034v-6G; Wed, 24 Jan 2024 02:42:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSXtj-00034k-44 for qemu-devel@nongnu.org; Wed, 24 Jan 2024 02:42:11 -0500 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSXtf-00033t-TG for qemu-devel@nongnu.org; Wed, 24 Jan 2024 02:42:09 -0500 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-3392d417a9fso2204457f8f.1 for ; Tue, 23 Jan 2024 23:42:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706082125; x=1706686925; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cf7qB2BMl9WBhIDGMxLzOoiU+ORQO1oIrTiLobNFJVA=; b=lm9X33tPKkb5EtuLERlMkDWxNidzhFSfhKfwQw9DH8vXmTfQ33oQtqvjL+ipX/uNA+ E3f3pEbynIOKgFpp/x/OEXL+OTXdOEMU8JgpnMtG0mgNXt7t0f/apoFDEhoJzp3+8qhm 544CnDwV2MDersNXeAzyTUZzdVO/RT795fkl6qQZRWQJ8dBIKs8457e4RHNrreqF+nf+ iNia2ohUkDKng/xkp5gbP3ZSwQd8m6tRe/tkj2hmFAtMjifz5Vn2yVxGqOggMFToZYKY m8GyvPOW3Jm/BkXCvJAnupxIhQVtgDIHJuhLh2Og/uFROfdeiN1NDh4kFE3fBvnVHKG6 DN9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706082125; x=1706686925; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cf7qB2BMl9WBhIDGMxLzOoiU+ORQO1oIrTiLobNFJVA=; b=sW5zMuR7LDCN/9STIAYM5d2jmEMGS6Q+VcUi3QOVIvEgxViSDMWlOy3Cqos9P5yqnK ffW/56r8Yxd+iOD7OJWZviu6wDrX3N1/EBEE1kUiIf+44kOydh0A5kFvMrLKevFJpoN/ 0/vYk8iZSQdgy4utigvvSB3LaZjq/0JBn4ySA0wnbyVMTN6l1WyEaqtH63TdHdV4EcJa eHbAUSkhuI7fa2JWgarSkOc40c0UKS+/R7nutPsfeMDOHCEZVODbjwm5saKGrh6f3n01 Rf8rKltadDl7nVMYU9X4jBieqX86TpgFABTl1TTfkKQQGF73Qp52kl3VGLDa5TGxY6Wi EZ3w== X-Gm-Message-State: AOJu0Yx8gX6HTDj817Ku/c0NlPOakuM+gMG4WboGAppt13gcKco91WHc 9ydz1yk2JUuIRJmUiCaeOQnLrgNM6c9yi05TbQyUawHX9dt+ZNpBACk2FA/jz9JIVpmNczUfk17 K X-Received: by 2002:adf:e787:0:b0:337:c54a:199f with SMTP id n7-20020adfe787000000b00337c54a199fmr232653wrm.86.1706082125347; Tue, 23 Jan 2024 23:42:05 -0800 (PST) Received: from m1x-phil.lan (lgp44-h02-176-184-8-67.dsl.sta.abo.bbox.fr. [176.184.8.67]) by smtp.gmail.com with ESMTPSA id w15-20020adfec4f000000b00338a3325331sm13143027wrn.69.2024.01.23.23.42.03 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 23 Jan 2024 23:42:04 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Christian Schoenebeck , Fam Zheng , Greg Kurz , Richard Henderson , "Michael S. Tsirkin" , Gerd Hoffmann , Alex Williamson , =?utf-8?q?C=C3=A9dric_Le_Goat?= =?utf-8?q?er?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 0/6] hw/accel: Use RCU_READ macros Date: Wed, 24 Jan 2024 08:41:55 +0100 Message-ID: <20240124074201.8239-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=philmd@linaro.org; helo=mail-wr1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Use RCU_READ_LOCK_GUARD and WITH_RCU_READ_LOCK_GUARD to replace the manual rcu_read_(un)lock calls. Philippe Mathieu-Daudé (6): accel/tcg/cpu-exec: Use RCU_READ macro hw/9pfs/9p-synth: Use RCU_READ macro hw/display/virtio-gpu-udmabuf: Use RCU_READ macro hw/scsi/virtio-scsi: Use RCU_READ macro hw/vfio/common: Use RCU_READ macros hw/virtio/vhost: Use RCU_READ macro accel/tcg/cpu-exec.c | 24 +++++++++++------------ hw/9pfs/9p-synth.c | 24 +++++++++++------------ hw/display/virtio-gpu-udmabuf.c | 6 +++--- hw/scsi/virtio-scsi.c | 12 ++++++------ hw/vfio/common.c | 34 ++++++++++++++++----------------- hw/virtio/vhost.c | 6 +++--- 6 files changed, 52 insertions(+), 54 deletions(-)