From patchwork Tue Apr 18 16:21:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 674516 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp58591wrs; Tue, 18 Apr 2023 09:22:48 -0700 (PDT) X-Google-Smtp-Source: AKy350anu9NC4R9aRzv8aSA+5dv1+ivRLjRE/fddj6yIUibVAOKcqIjRY2kxsGQ1vR+8c3JSfbZO X-Received: by 2002:a05:6214:27e6:b0:5ef:5049:f49a with SMTP id jt6-20020a05621427e600b005ef5049f49amr25966152qvb.32.1681834968332; Tue, 18 Apr 2023 09:22:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681834968; cv=none; d=google.com; s=arc-20160816; b=iYrSf7flPaxqHCm3SIkzW8cjJZokn8gnF9XNLxK9l1LcfHi3JNrU3lKYrVgwiP4aLf tqDPLhCmA+5+cvwMfdxinFR6T3Sbnz7ejKqn/LXU+h6jjJO3DQ8smmuxpt3ExGtvjPg+ eJ9Npj1uilYWR/b1ARteogghyuxlKSSyfuPWZjIwe/WNmpwkwYmdrMGkLbqvT4sLzFYu u1aef8OdHSNUWE+D3xULr1yalzOCTCe6T5Zxw7oUpkS4FtTurPazUnQxevKjci6Rfscp TL5Rds3t/vzzAjF+zyunaZWeKQ8RZMyi53e8PksJqfs/GceqgrASR6MCUf6wMvs+FlIY pSqg== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KH5LwiCrOTvBSCuNpYnxQcsypFz8wThrZQsAnqkj0KQ=; b=IqTuNLIGEpDMXCVD2eJzrlo1DY9NLJiWX0TaJmmCeVw5WRc5dcIkZ8ngGJxNB3UpUO msZyEohAKhpSIEdG3QTXMibD0M4lLpvZAT6ZfeMy6R4MENAzvRLBgT6Q3X4n+JJAkUOh eGAltPH1rNF+7xd4JBdS7OD/2QJaDS45f5MWHPQiRZ4SV/qt0p+nV51XWUBhMTLVsv1R d6tdxkYfn17qywZWANmvaQKAEQLguKAMXyU6++X2bQLC8HfKMVb/ew6/6yqkYmarUjgv hyl01pNPb8Yha0mr37mpbN6GzawrZRYRUVVt/I3gTIQ3EKkRYWlDrJGdndPTEk4GXdEv KiQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XyBsieux; 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 hf1-20020a0562140e8100b0058dd32b99a2si7577308qvb.301.2023.04.18.09.22.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Apr 2023 09:22:48 -0700 (PDT) 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=XyBsieux; 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 1poo5U-0006mL-8F; Tue, 18 Apr 2023 12:21:48 -0400 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 1poo5S-0006ku-5v for qemu-devel@nongnu.org; Tue, 18 Apr 2023 12:21:46 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1poo5Q-0001AG-Ku for qemu-devel@nongnu.org; Tue, 18 Apr 2023 12:21:45 -0400 Received: by mail-wm1-x32f.google.com with SMTP id bi21-20020a05600c3d9500b003f17a8eaedbso147604wmb.1 for ; Tue, 18 Apr 2023 09:21:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681834903; x=1684426903; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KH5LwiCrOTvBSCuNpYnxQcsypFz8wThrZQsAnqkj0KQ=; b=XyBsieux2yV2IhpLu6LipUTherdcEmwmOtkCXSVxv6547QiZd/H7LzT/Lsa08V0kNr DpeP09zRP5qEJwpmyoYKqjV+zaoikE48DCCYH5W/XC7GuQTKoj8l0ecOV7Y66A8vlGQJ ogPOIcz6atx6ZQqW0SCMGMzRdFZh+rIEnCiNAf5tPo80IDMIBMkSLwKKnBuhq3oK1/ER illWpRqxPTZjET+nssfUxDZVnRVO4wgcfbDDff1ZRDwdtiw20K2X78Z6bZ4OzVMZgllh hi6fClMr9hsqUFbgItsCKU4+kSFoVpQVJATOM0PHQb7FLEusH+GUkwMsZcoKHSot5bll z8Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681834903; x=1684426903; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KH5LwiCrOTvBSCuNpYnxQcsypFz8wThrZQsAnqkj0KQ=; b=S6mde5NLa8W75eZs1C9nLzr1ZVBNdQUOapikcKY+ZKEMYNLWh+aMohyOsymV13+DeZ bTsE4den59sgLcGlRCrbT9EGu4qYEz1tAYNLjQTKCMa/e05yesK7hpDHVe6ttMWc7QmH 8uP9IUJWAh3hmbo/Q+ovIW1zpKKxvaTKeszSkK2noGZv1QYKlOVm978DWAihmkpwkFp3 qWEjaD/bcgcL3tTB9ErbNw59f17H7UvkMxd7yHDeBUh6kLltVscWuII6+bl//1eO+TKU WoX6X/2WOMobCWEeVQxgfQJXkkS6siu9tch/MmfuLubcICZgrm+wNmqaQ8eeReIghx0x tVaw== X-Gm-Message-State: AAQBX9ddyrAxOUWLcieot8EtzC++7uwQBVwToLMJCp48KFacSs6TCh3E MERjWvSfODiTb26swKUtA9KBZA== X-Received: by 2002:a7b:cd85:0:b0:3f0:9d1a:223b with SMTP id y5-20020a7bcd85000000b003f09d1a223bmr13183192wmj.16.1681834903464; Tue, 18 Apr 2023 09:21:43 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id c22-20020a05600c0ad600b003f16fc33fbesm9095950wmr.17.2023.04.18.09.21.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 09:21:42 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 956B61FFBC; Tue, 18 Apr 2023 17:21:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Daniel_?= =?utf-8?q?P=2E_Berrang=C3=A9?= , Eduardo Habkost , Viresh Kumar , Mathieu Poirier , "Gonglei (Arei)" , Markus Armbruster , Erik Schilling , Jason Wang , Mark Cave-Ayland , Gerd Hoffmann , virtio-fs@redhat.com, =?utf-8?q?Marc-And?= =?utf-8?q?r=C3=A9_Lureau?= , Paolo Bonzini , "Michael S. Tsirkin" , Stefan Hajnoczi , Eric Blake Subject: [PATCH v2 04/13] include/hw/virtio: document virtio_notify_config Date: Tue, 18 Apr 2023 17:21:31 +0100 Message-Id: <20230418162140.373219-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230418162140.373219-1-alex.bennee@linaro.org> References: <20230418162140.373219-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.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 Signed-off-by: Alex Bennée Acked-by: Mark Cave-Ayland --- include/hw/virtio/virtio.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index f236e94ca6..22ec098462 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -274,6 +274,13 @@ extern const VMStateInfo virtio_vmstate_info; int virtio_load(VirtIODevice *vdev, QEMUFile *f, int version_id); +/** + * virtio_notify_config() - signal a change to device config + * @vdev: the virtio device + * + * Assuming the virtio device is up (VIRTIO_CONFIG_S_DRIVER_OK) this + * will trigger a guest interrupt and update the config version. + */ void virtio_notify_config(VirtIODevice *vdev); bool virtio_queue_get_notification(VirtQueue *vq);