From patchwork Wed Jul 31 15:41:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 815660 Delivered-To: patch@linaro.org Received: by 2002:a5d:4acf:0:b0:367:895a:4699 with SMTP id y15csp802010wrs; Wed, 31 Jul 2024 08:42:25 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV8qxA1pp+701WURlXL3t0VyHGHvDzLSUHr7BT49XvRvGD5gApvlui6S5H84HmTXfGb8qUosuq0ScsYvzzS7AHy X-Google-Smtp-Source: AGHT+IEnNYoHvmdba7tBc5ELjNTcUGId0GFG92QRGwVY3cuONz0cCRwRPzvmrVj+o6RqSlCGHL0s X-Received: by 2002:a05:6102:b11:b0:493:c077:ea9b with SMTP id ada2fe7eead31-493fa176312mr13231794137.3.1722440545234; Wed, 31 Jul 2024 08:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1722440545; cv=none; d=google.com; s=arc-20160816; b=A9x2+g4cybfvrrGdYCGEki8E1YJkRg5HD5y9v+1kV1DwtfrZjKYhGAzhGvmmwsZaC6 E0okhVlRGrMRTmcV8P2t/eBWgoBHIndSn4frGnbXK2ozWAGchbJSsxtqjqrsgvLbmEIc kXnincZ91cakXpIIbcUFk8womMudK6QLm0kh22zcvxesXPsob6m4Sm68NJPzUlfksHTG 7JKH2FtUIjitrIrTsxg8S3ddOL/yO8UkMBbZz/gjereYsGwtVgf8JxbVRHegFHnnBRZZ 9pmRllF5iCpCFLye3v79qkbJREB0wPizJvdH1WTT6Z7/fiY3JvoT0EPhaw6hxXDjAc2s nBkg== 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=u0Xf6TSWqP5X6W6Y62S5VXV1XsPi4SWZOscEiUZ5BTE=; fh=xpqcRkWdG1c6qr9WoCAMJiomiim6Sb2z67WgKdYAse0=; b=ZveiYStf0k51Xa0WKbmOfEsBLMMajxTZmnscOMosypaOKt+gZj3f0g4ZY61SEbpXWn 3TI2EUxkCfdQtb5YkUKC2+jLkSQ2SzejFafR8bMK1cmY5FZ85taU4wxHdy4T5TzYIg60 /XqbkXO1Nb5/btvUFFZ9b6iVaVn79fIJeai7B5kjoJzeGJs5xsAS5K/Pa8HaJSn2xNu2 gO95StZgDKq6QIqy99x0en6iH98r7z+ntofzHQZQw1kKK5ct8oqDzpgHpNnMiYSj9zFj RogStTwzxFWoVsn7g5OcSPCzqv2i4FN28bgu0UQ3y5YI8Jn89nOX7yavw+KYD0LJyN4l 9+cQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rCsvKL8K; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ada2fe7eead31-493d98ecd56si3048855137.631.2024.07.31.08.42.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2024 08:42:25 -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=rCsvKL8K; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZBSS-0001vY-7X; Wed, 31 Jul 2024 11:41:44 -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 1sZBSR-0001qw-3A for qemu-devel@nongnu.org; Wed, 31 Jul 2024 11:41:43 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sZBSO-00057I-QT for qemu-devel@nongnu.org; Wed, 31 Jul 2024 11:41:42 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-42122ac2f38so6801765e9.1 for ; Wed, 31 Jul 2024 08:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1722440499; x=1723045299; darn=nongnu.org; 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=u0Xf6TSWqP5X6W6Y62S5VXV1XsPi4SWZOscEiUZ5BTE=; b=rCsvKL8KITL34sGCMLLy9I7fgUr7XsiIbS8sdULFwQHylF9y4wjTWuRzgevMCOkH2j WnA+cGzQW99FD+10yiSjxK9qKamjGx/z+kv2tTltrpKfpQL7SkAgSwaViOfSWwCEXlkS rq1k/6dQwJIGta0IAjDezg4j+LDky14AXO0kUp0WK9e8dqDRhgYY4+fG/oo5eibMySAe XGt9tO+VMfnTW6kMc7UthGyqXrxZKhcmZuGvBUdICS/h5AEOs0y3q13Y13M9iRcMpl9p msx73MyPEktXbmProoGkv5E94uwbqTzM/u3BwLwvJPPhq4Vc1dy89PghZf9ooVYGMBan f8Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722440499; x=1723045299; 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=u0Xf6TSWqP5X6W6Y62S5VXV1XsPi4SWZOscEiUZ5BTE=; b=NPOCKN866cZQsWgeI55cy25L2pfyM1C837c1URufAfbkKnwZTtv9DKcbl/s+lRJXUm FWsgzPVvEUkg9I2YR2OrwU2jp1lpVFIa0GKVM1fCG8jjpQrPbYr6tAvaQk+jw21hDnLF 2oH7Lb4IzxUsQGWEs4o1HobUd/9ClezYrlVdYD4GDOttHsN2XDzhs8DggPZx8X3D64yZ gdOV3z+4PFSQ2LND/CmAMl83xIV0n1y7MtL2f0mVpQvlC7lcj+G7RO6NMO7+RlcZK4Kb aQfW0bilJia7ResEDZMeRzMpOmR3/eBX7oCIBFamq+aR/+jZZvq6f4mFM9VE8rCKPbuR Omnw== X-Gm-Message-State: AOJu0Yyj5KNCSYV6Zu9XKsxvW5K0UJnOF0k8yXuaGpiMGaHRfRRZmFNw iVNASaQNaXKLkBWO5vXCws2X02Eg9BnBtnxaU2nofEH38w2S+ziDoMt4dwHbseJLwRM0F9ReJuZ Z X-Received: by 2002:a05:600c:4707:b0:424:7871:2e9e with SMTP id 5b1f17b1804b1-42824400d54mr44598045e9.6.1722440499231; Wed, 31 Jul 2024 08:41:39 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4282bba283fsm25201295e9.46.2024.07.31.08.41.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jul 2024 08:41:38 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Paolo Bonzini , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Subject: [PATCH 3/3] ui/console: Note in '-display help' that some backends support suboptions Date: Wed, 31 Jul 2024 16:41:36 +0100 Message-Id: <20240731154136.3494621-4-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240731154136.3494621-1-peter.maydell@linaro.org> References: <20240731154136.3494621-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x335.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 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 Currently '-display help' only prints the available backends. Some of those backends support suboptions (e.g. '-display gtk,gl=on'). Mention that in the help output, and point the user to where they might be able to find more information about the suboptions. The new output looks like this: $ qemu-system-aarch64 -display help Available display backend types: none gtk sdl egl-headless curses spice-app dbus Some display backends support suboptions, which can be set with -display backend,option=value,option=value... For a short list of the suboptions for each display, see the top-level -help output; more detail is in the documentation. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé --- The ideal here would be to programmatically list all the suboptions, so you could say '-display gtk,help', but that seems like a lot of work and I'm not entirely sure how to do it :-) --- ui/console.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/console.c b/ui/console.c index e8f0083af71..105a0e2c708 100644 --- a/ui/console.c +++ b/ui/console.c @@ -1632,4 +1632,9 @@ void qemu_display_help(void) printf("%s\n", DisplayType_str(dpys[idx]->type)); } } + printf("\n" + "Some display backends support suboptions, which can be set with\n" + " -display backend,option=value,option=value...\n" + "For a short list of the suboptions for each display, see the " + "top-level -help output; more detail is in the documentation.\n"); }