From patchwork Mon Jul 10 15:35:06 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: 701020 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp5242991wrs; Mon, 10 Jul 2023 08:36:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlHL5eJam7fP8khuQewz4inEvlqWzGk4f+EzWL4Qz/6DFf62oIa6GeaW5DNsSaA75tPBPhp9 X-Received: by 2002:a05:620a:2889:b0:767:dc9f:5141 with SMTP id j9-20020a05620a288900b00767dc9f5141mr829966qkp.19.1689003384945; Mon, 10 Jul 2023 08:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689003384; cv=none; d=google.com; s=arc-20160816; b=W4l2cKqEyUfzEo90FwlOMy6gSS2heuHwnz7zhP8cRrWEAKIUZCY/mW0cuA3XglRze1 PiEBNAE99q/vKVmshPny+7jxna3aEKL+kYVSv7hmnzp/eGRo92eOP/WqZTleZoPIZLtM V3pyQWdauRyt3sGQpEWkfw0Ca3Ezx1OswikpLnxI4sya9jb8enGGvjL4f4E1W67VOgz3 x3NIrJ3ixnvnWDwktsF3TCz5wYSa0Kf7mzFpDHBC2eT80oCMApMuWnW1In0CCH0p5P99 1hEW0kuSvk+/K99kphDVM89BamDIjYhKfX4S62IrpvqyB/bPG3Gxg91wScguIfGpMBuB JWlw== 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=y4Dz/cKQcjk2Q/25bTqazNT9L0/TcrBA5Nkd7fUVra8=; fh=pHpVzH22N3up2JSv0jV3vGkBG2/OCgsTpbbdQUlofss=; b=0TTCW0JpjpSS6GcNm8paz10rlapmmbKi7tffMNxYoI9cqVX5rpIo8rHWYZ4tLLUs1f WfJFYt6UmrJA5UBpzbX+VtI40H7uJ8ztpZVj6FW9Fa/JZDosNyQ6bKqU023w5GbxdwqQ bQSAfSMEFa/TT0AI/1wTF+J5kE/tC1v0cG5l7t6ulrfKHFiTsecH4Eq3FkquYDWpG9fx NX7xUBMeifETXRJ5DHG9I15f1SGcfTsUqeryagvpYFxH6LeiJViosvY+1jDzVJl2n8sK EBxxftVS3RyLR+zqqov3tCL66rPTVnACp/0E1/L4cBW16XCs4eZz7weW4GYf7S5WHGzT bH4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IQ6KxQRu; 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 m26-20020ae9e01a000000b007606fd3b7f8si5909510qkk.139.2023.07.10.08.36.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jul 2023 08:36:24 -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=IQ6KxQRu; 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 1qIsvR-0005lp-3y; Mon, 10 Jul 2023 11:35:45 -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 1qIsvP-0005l2-IP for qemu-devel@nongnu.org; Mon, 10 Jul 2023 11:35:43 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qIsvG-0004lT-5h for qemu-devel@nongnu.org; Mon, 10 Jul 2023 11:35:43 -0400 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3143b72c5ffso5484246f8f.3 for ; Mon, 10 Jul 2023 08:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689003329; x=1691595329; 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=y4Dz/cKQcjk2Q/25bTqazNT9L0/TcrBA5Nkd7fUVra8=; b=IQ6KxQRuWoZTFUkZL8wqDIz4YT5YYYlpRTK64s4+asCrYQkq5sXvq0jbS4LgRX+juo FtY4+9d3ucFJRqycocNYzmkhe4UgUBGlsz3IrUIOp0FByx1E9dRL0/zMBv+TcbnnJReW tQjCnWQqFqJR2PF0iIBVAb7oWo9T8iWebaIaek0j3O3PolB/hK7o0uSDLJk5cX1Hd9Ui wjUTkyz46AX11puBd1fk3BeKwLDm8YLQLeSp7imUg4gwcmcCan+Ke0NUqy19t5G1D/7Q TG73nLUjtZpcj4x+O2BS3mK1qixN6ydz9YwDwJ8lWw9nC7Bp8SUjREKhknKybzAN/DNp 9uMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689003329; x=1691595329; 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=y4Dz/cKQcjk2Q/25bTqazNT9L0/TcrBA5Nkd7fUVra8=; b=bDjlhL02SVRa9lKQVLWpwvGy2u0Yctr5DvvhusPe8WUmIrjAmt9XVXZBLiYCk+jP3B szAwLePCIlNDciYIHe6K1fM92a/9lCMyw87HIF9/vHZyMqNpXSQwJ9u+BQmFp/iJO0lV yWJSRT4wDx443iK2v0GmBnd/Napyo5r1E8icA8PR8njIkRpAwcyalkusevuGEo/PxSsm o0ZTXO/TMlXq2fqOAsdW5qdMHzoLqIaXfPwzdU3T0MAfy/TB3K8LmjIm+CSA1X3sSwKJ /adk/Lxi57OqSm4kLr9iokZfWfPCtTcPAmyj2Yaw44O/4MMngJzBv7ydUnjdGqn3T05x ialQ== X-Gm-Message-State: ABy/qLZaLlV5DACgtIglXll+z/3g0c0R2zYF1klWrnQuJ7wAW4CgE/0H epsDeuKGeawImIs0VJjOiq+0Zg== X-Received: by 2002:a5d:6d4f:0:b0:314:3c8f:d267 with SMTP id k15-20020a5d6d4f000000b003143c8fd267mr14974373wri.45.1689003328955; Mon, 10 Jul 2023 08:35:28 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id k6-20020adfd846000000b00314315071bbsm12040337wrl.38.2023.07.10.08.35.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jul 2023 08:35:23 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id A5DE91FFBF; Mon, 10 Jul 2023 16:35:22 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Jason Wang , Viresh Kumar , Raphael Norwitz , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , qemu-block@nongnu.org, Eric Blake , "Michael S. Tsirkin" , Mark Cave-Ayland , Kevin Wolf , Markus Armbruster , Gerd Hoffmann , Mathieu Poirier , Hanna Reitz , =?utf-8?q?Alex_Benn=C3=A9e?= , Erik Schilling , "Gonglei (Arei)" , Eduardo Habkost , Fam Zheng , virtio-fs@redhat.com, Stefan Hajnoczi Subject: [PATCH v3 04/20] include/hw/virtio: document virtio_notify_config Date: Mon, 10 Jul 2023 16:35:06 +0100 Message-Id: <20230710153522.3469097-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230710153522.3469097-1-alex.bennee@linaro.org> References: <20230710153522.3469097-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42e.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 --- 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 0492d26900..0671989383 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -276,6 +276,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);