From patchwork Fri Apr 14 16:04:23 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: 673142 Delivered-To: patch@linaro.org Received: by 2002:adf:fcce:0:0:0:0:0 with SMTP id f14csp263841wrs; Fri, 14 Apr 2023 09:08:03 -0700 (PDT) X-Google-Smtp-Source: AKy350ZC+za76Vqg2mSRxi4mtyB9T2ag9uZcMMAjJ5JstC2tv6oEm0o7dbXPBMdxVxrrF3RhZekz X-Received: by 2002:a05:6214:412:b0:5ef:56e4:f614 with SMTP id z18-20020a056214041200b005ef56e4f614mr4950715qvx.34.1681488483514; Fri, 14 Apr 2023 09:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681488483; cv=none; d=google.com; s=arc-20160816; b=W3dfVExax+4eSnU7dWzgaajisl4YHfRokbUL4xUq56CieAxcAjxEA68q5da+PjxqC1 OsbWFg3H8OgrTg18tb3BEioSsA/Lbj/lmR9Rw6+sx+0ohz/CcLE+BfdRQxXFi1bbzHLc 99IC+VAfbU/flel41sjr6rCGJ7g/OUVKGV0FrhAcyzmleP4If1Luw7bwUYjDj12GBNf4 mtom3wo3GktlMnqebdMRkHZD3tkop7mdAYnIB2Wa8cpnYxK8KT4TEMFvSFeydmDr3waF 1tQw9mVe9MEGw7tgVRlGll3e4wJwuc+twZwkqgWlnVrTBNSzUMDzUrgzNAXWyJ6lHd2/ Kpzg== 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=ETVMZzwtKsJWKxnBNT5tyqU83n7QcOw8Um/WDeNpuRMTHPuT3NhqtSWAYSbRMbzSHw GoEU0lV9Phunr8r8vtr7uOpZQnZPc3WpDM2MdxReIQzd1J3CmchkCRbnaxa9sBv5mQtv 5/ex3ObpxLkkakyJSMzucCOFYxh9vl/DOkQ0hBevHTBQ+jg5gIkNFK9X8aPFhVXLHzXX cvcSNmfM4NK2Ure/DesA2bLG2+7uSvZyIh9abGH148YGnfI7hKHg8mYjsQKoFLO3Y74R tSWBFY+qa1EVLCg9m0hDDmhTMz7nxGK4LVnOieGceKv1MgcC+PEbfWrRRMDG7mxV57PL 83mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sdj8gbiD; 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 br6-20020a05620a460600b0074a29c9d8basi2962860qkb.443.2023.04.14.09.08.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Apr 2023 09:08:03 -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=Sdj8gbiD; 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 1pnLvH-0007MB-Dj; Fri, 14 Apr 2023 12:05:15 -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 1pnLuk-0006S1-8A for qemu-devel@nongnu.org; Fri, 14 Apr 2023 12:04:47 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pnLui-0007yo-Ct for qemu-devel@nongnu.org; Fri, 14 Apr 2023 12:04:41 -0400 Received: by mail-wr1-x436.google.com with SMTP id l18so17963466wrb.9 for ; Fri, 14 Apr 2023 09:04:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681488276; x=1684080276; 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=Sdj8gbiDPb4tzbA4IYEDhfIDNGgL1BAPjP2dI1RtO2mEIx2afuqR93ODe/ARptkGMc OgrYZvwPP6KoAwSs5SjkutYwzuhrQlzjuuxr0G+o2LSvwb6Y1kvL6uIBJstB8P+wqtoe ZTeSWcIx1YWMUCxRL9wvz/X3q8WBD0U2tbl6amzaot3mxH6pnjcWbbuS5HFkfxiL+Bpy R53uVYPdY7iEmXSAU/7QL4cxkwptnm0QpBRPx3945N/rbB1S0votndKpLEDWbPuhOuy8 eyFgy61kF0I/tJipXdrdET3GXQ1o/RNL/WXgJfybuXLoV4+RUH/4OIyfpAieu92Jjpgs ueLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681488276; x=1684080276; 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=IvbW8syc2xUijUBtXHvA/Wau8DK/MSjoXmxi0S/qvnzpJWmcZEg/jN5Ke6BHeVj8oT TqS+qQeZ7jH5qNcxgww0wGtSYbyU5ZTEFiq5vMfAb83oAQpwQZTBv6P6y811Ed9ukcLh GAT/2ptNQhEt7ArzpyVgii2Sr64mAq+3Eg7lLV5qfyytka5p3oqTi1qZKgNDj9QlDUsL co6G2I8LsD1CfiX/fDaYIZSMiLGp7I3jycz68HDeC4afWGJEQvQeBLD7PaakG2B7tsAX OIrlRmLtnWu1Zfg9vWhuFzwe6zRznNWYqqyj2pGD7x/Wh+vF0yAwc3KhESGY+Xh59V8M Z8BQ== X-Gm-Message-State: AAQBX9fFnV4uDSwFRShnr3BJFU/NhIegutcjdIoByZndq9vNwB47o6kP 5ey2PZOLyKfiSks7rNsWVCQaDw== X-Received: by 2002:adf:ee83:0:b0:2f5:39a2:fd99 with SMTP id b3-20020adfee83000000b002f539a2fd99mr4380381wro.71.1681488276102; Fri, 14 Apr 2023 09:04:36 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id f17-20020adff8d1000000b002ef222822d5sm3855281wrq.74.2023.04.14.09.04.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 09:04:34 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 14A1B1FFBA; Fri, 14 Apr 2023 17:04:34 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: "Gonglei (Arei)" , Paolo Bonzini , "Michael S. Tsirkin" , virtio-fs@redhat.com, Erik Schilling , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Marc-Andr?= =?utf-8?q?=C3=A9_Lureau?= , Eduardo Habkost , Stefan Hajnoczi , Eric Blake , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Jason Wang , Viresh Kumar , Mathieu Poirier , Gerd Hoffmann , Markus Armbruster Subject: [PATCH 02/12] include/hw/virtio: document virtio_notify_config Date: Fri, 14 Apr 2023 17:04:23 +0100 Message-Id: <20230414160433.2096866-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230414160433.2096866-1-alex.bennee@linaro.org> References: <20230414160433.2096866-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x436.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 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);