From patchwork Wed Jul 5 13:31:35 2023 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: 699236 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp2781119wrs; Wed, 5 Jul 2023 06:32:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlEL5GA9ueH4LpOv6a7eOibsb2jS8sAittiDjB3b+Q52iBdCuvS7Oi+3MGeveSeq56iXHDA1 X-Received: by 2002:a05:6214:2624:b0:634:3994:13e0 with SMTP id gv4-20020a056214262400b00634399413e0mr21613469qvb.18.1688563975563; Wed, 05 Jul 2023 06:32:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688563975; cv=none; d=google.com; s=arc-20160816; b=0F3e+R8ixNV54U+RO5afVO4PFU77bBkIz57XCqD+qYfwzDE8gcN12Y3d/EzpevCYr2 87Epr+jQdvoaqd8bZpaJdACSxkEfciPNT3V/9WRhd6wJyuHOL5Z+ZlxhrJG7d2HY8gsp 9qKplrHqYxq31QVWC5ffej16LrKsyCp+L7Mc4IcBulqQSuCz6m44rLI5fIKEwEE7l6n3 i1TUIpTGT0xS9VUEp7ZwY5lay3VMphXbpGvaLApnE1zF7PYVVUTOqHKn/lLdFPkqVK6U htZ8qLgQ59tMqqpTcOww8Fy4kWAzscl9uaq/kG+eBeBMYV8P7iGUthPYYheiJ6vQMDRu UZYw== 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=8csFKMjZVuRSRwCfVd0lvLcd2iu1cnTH6S6ysLgFoCk=; fh=QXqlxiHoBliGFMptr7ZMhDvY0ya7oCRNrlYjmpX9sZY=; b=MGIDHHY9L7fGF0a6vOWpSoU04XbY1DJKK0Z0uVJ87VmZSVxd2RAY8JqeV/DtpikFkJ OQt/yRuM7ecSkvCLYR/bZ4l9yivqweP3zalE9jqYmMtddor/GrUxRkx59/gu3AMAw39k KftuPuUMyPrFA+FU5V4TBXJMg2YZEc3srdR30yEjy/5SHERjUrVWj6VkeGmeVJQkpT8h CQKUUcYYW0LkaA4TemcPvYyWna8QFBeYmudLRhnYP//jQ0tgi0TKgjMs731KuxqCJBxN zutmd4kVHBc5QMtHbpnthLfvwNeDjiIUdPkovJW1O/N8lqBtPXB5bMuxRWzDL7ZoDVnm /ouQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZXp2zRjM; 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 r6-20020ad45766000000b00635f39a926dsi12315521qvx.264.2023.07.05.06.32.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Jul 2023 06:32:55 -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=ZXp2zRjM; 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 1qH2c3-0006Jf-Ri; Wed, 05 Jul 2023 09:32:07 -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 1qH2bw-0006HC-FS for qemu-devel@nongnu.org; Wed, 05 Jul 2023 09:32:01 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qH2bt-0001yC-Vu for qemu-devel@nongnu.org; Wed, 05 Jul 2023 09:32:00 -0400 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-51d95aed33aso6622900a12.3 for ; Wed, 05 Jul 2023 06:31:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688563916; x=1691155916; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=8csFKMjZVuRSRwCfVd0lvLcd2iu1cnTH6S6ysLgFoCk=; b=ZXp2zRjMqjof1A1zhHwk12O8UlT/rgkwakAG5D17jnA3VGSTNHp77qajrPAWOGSG67 BBHlTwv1PBu2s7/g0k+SD3Phu4uyKuFkn8JobnQOMGvem2tV1KMLGfblFoD93vnl6TkK z4+JdiFXENKoxdXcFl/WterrOKiA0SECPqlFAyJ33SuiugbE/QE6M55ENQx5zxcVMpBc ZhTyxtxCtlHEj1HxdfXV1EI6Va3nj1AmIQcEc+sqHrkjwdO0zllbpqtvS9zZppXlho0+ fxFx5+j44EQvuBhDsHCngtw0CRFmi8mQpQ+PknpMb4dkLUyq/sZP2MlKIe4AGHDjgKbT IhPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688563916; x=1691155916; 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=8csFKMjZVuRSRwCfVd0lvLcd2iu1cnTH6S6ysLgFoCk=; b=fJCF+VhOLPziushYfb9kPIWfxPvI0/BHOMh74/EiBBlh08d1r33PHlmphavgDyuG6C qV7X3x3xSg7WJxsROk4h5CsxMuKT/y70UuaRDFdLEZBWnEyCnJHq0zVJlZBZs3Ydewto JwrFPKgU1jqCUapTaklzInf78UpCS2TVJxbkCPET/Rk8uU8Z9UW+0SHHdm2Ufm2b6ACy F+wd3OWLZN4KZLCM18+WiNPx373uuu1RgdXRrLFIbp+ChpkhzhyyKi0gdYfgwDClYav2 vJDNXFmaKLwhCWh48fKgtD6bmjsCFop/lMjTED0GrljefaYPGtUKnCNpna9H2/VaJFTU vgEA== X-Gm-Message-State: ABy/qLbwXUS5pDftMOR0xxZp6Sk0qU4q/J1Q1HjnXyPInnII2RAZDpV0 CsiJaDvM0tNSq7pOXy1O/jIB7OGuYOjGyF685pA= X-Received: by 2002:aa7:d68f:0:b0:516:af22:bcc6 with SMTP id d15-20020aa7d68f000000b00516af22bcc6mr9477842edr.21.1688563916383; Wed, 05 Jul 2023 06:31:56 -0700 (PDT) Received: from m1x-phil.lan ([176.176.142.96]) by smtp.gmail.com with ESMTPSA id l11-20020a056402028b00b0051e0272ad00sm5794845edv.75.2023.07.05.06.31.48 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 05 Jul 2023 06:31:56 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Joel Stanley , Markus Armbruster , Alistair Francis , Laurent Vivier , "Edgar E. Iglesias" , Peter Maydell , "Dr. David Alan Gilbert" , =?utf-8?q?Marc-Andr=C3=A9_Lure?= =?utf-8?q?au?= , Paolo Bonzini , Amit Shah , qemu-riscv@nongnu.org, "Michael S. Tsirkin" , Jason Wang , qemu-arm@nongnu.org, =?utf-8?q?Daniel_P?= =?utf-8?q?=2E_Berrang=C3=A9?= , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PATCH 0/4] chardev/char-fe: Document FEWatchFunc and use G_SOURCE_CONTINUE/REMOVE Date: Wed, 5 Jul 2023 15:31:35 +0200 Message-Id: <20230705133139.54419-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=philmd@linaro.org; helo=mail-ed1-x534.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=unavailable 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 Improve qio and chardev frontend documentation, have FEWatchFunc handlers return G_SOURCE_CONTINUE/REMOVE. Philippe Mathieu-Daudé (4): io/channel: Explicit QIOChannel doc is based on GLib's IOChannel chardev/char-fe: Clarify qemu_chr_fe_add_watch 'condition' arg is a mask chardev/char-fe: Document FEWatchFunc typedef hw/char: Have FEWatchFunc handlers return G_SOURCE_CONTINUE/REMOVE include/chardev/char-fe.h | 18 ++++++++++++++++-- include/io/channel.h | 2 +- hw/char/cadence_uart.c | 8 ++++---- hw/char/cmsdk-apb-uart.c | 6 +++--- hw/char/ibex_uart.c | 8 ++++---- hw/char/nrf51_uart.c | 4 ++-- hw/char/serial.c | 2 +- hw/char/virtio-console.c | 2 +- hw/usb/redirect.c | 2 +- monitor/monitor.c | 2 +- net/vhost-user.c | 2 +- 11 files changed, 35 insertions(+), 21 deletions(-)