From nobody Thu May 2 21:02:16 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1622517596; cv=none; d=zohomail.com; s=zohoarc; b=FGdQBEaaKYmWqOEKmH+lPVZq92q85UfRC8wNGlvL1cvypbNMsqPUts1fwWBoRRk7RulmfghhIpr7QLjMtMrzungbRNF9DarRqD73Pnq/KfTddP0ffWTIzehvG3dGT7IYhxPgZCvjt2Z0QDrqgtBAiBy6KUwKqLZw7+SL16i20y0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622517596; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=9hVzdzbb8GVsVCXn3Me44FSGiP/knRo1iN1KKR+WEpE=; b=n3VaUC85zb8SPaFZEQPkdZ9NUuoDW5EXsLvZV+IwSW9SjfzlP+aed1GZjiCofBHJvuN4WJZl5PkNlFF2JyDGPvQ4LbOZxXymSAYPt5HsU7GDrnQra+J3SEoN9PmK9AZsmvdDrzO2HPrWEPuwB19I0yi3K/eR8I2dmEq3mymtFAc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622517596483750.8612092780105; Mon, 31 May 2021 20:19:56 -0700 (PDT) Received: from localhost ([::1]:43944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnuwc-0005gE-DY for importer2@patchew.org; Mon, 31 May 2021 23:19:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lntV5-0005SG-9i for qemu-devel@nongnu.org; Mon, 31 May 2021 21:47:23 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:46670) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lntV1-0005fZ-Ob for qemu-devel@nongnu.org; Mon, 31 May 2021 21:47:23 -0400 Received: by mail-wm1-x32e.google.com with SMTP id l18-20020a1c79120000b0290181c444b2d0so890397wme.5 for ; Mon, 31 May 2021 18:47:18 -0700 (PDT) Received: from pythagoras.localdomain ([154.187.234.222]) by smtp.gmail.com with ESMTPSA id f5sm1483266wrf.22.2021.05.31.18.47.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 May 2021 18:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aabouzied-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9hVzdzbb8GVsVCXn3Me44FSGiP/knRo1iN1KKR+WEpE=; b=fkNtQVOcP0nmZOJ18bh64/KKxFNZ/b4qada8RcRrwreiSedGUZIK4oMSA2MQ514qoK brDvlJxiKroR5lqNXfzYG+lvOB7qVET6cUVxEPxbuCBge9VnuHWBh0qhcBHSrbh4lDYz IG+PYLIUXIVudqahtX/TU6lu1EWpJxuze9f2zxdcKchazIl/IpzQhvg2bCd/YjAUc0GE V04bBsby1mQaIb1B7FhKMg+X3qB+kjqNG0Odh1gkA73OTlLwCltij7kPVEcjElkV5S16 XNf8iaKlNzPSQYeU8Py51qDwOte3KWTU4gpWjN4Ccw5onxq6kQ7kYzhUtDsDNRvmQNjr 1f0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9hVzdzbb8GVsVCXn3Me44FSGiP/knRo1iN1KKR+WEpE=; b=nH7/FyzV5fmEHrCX1B1HwNEcUAopQklE9g9ko6aqY1vwm3/zTnVsXjM+7+3Ys7Kx9W oBZWO1YWbqbvxSWlEOws3cDGkc3h0CEJEqR2E7JiSOR88J5SrWHii0hejb/vyhV5E2gH 97848i56d+0VPnJ0u6rUxCJwX3/AJbWCySITAcUfhY6o5rd6yVdRAfUiefglGSof7BhO uVxjptb35YaqXC9reD+IFYML3mDxMKNEauoWiH4BhKKOEQOgf4hhCm9p8iYYzGuLS6NV tiBnOZvsYYEm3fHWMyNtvqHj7lNZU63TwPdiBXUa0WFxgQ76MVUMZ0B+14FW94vOKt4f nkvw== X-Gm-Message-State: AOAM531HwN6NMKzeaRmms/WV95NvuLzxpIQelmpV4bz6en7arS84YAm/ n8lGwvch0EPSX73/iFxlGBNsYeK/Y+UeoaVaYMN3FA== X-Google-Smtp-Source: ABdhPJwr5e6sAMfVHe1hY+0bKaHTrG+9rm9VizLOv3u7dlIQzce3gBqbcUcAXMq+ToS45MbEO/z/Eg== X-Received: by 2002:a05:600c:2dd0:: with SMTP id e16mr23357405wmh.135.1622512037300; Mon, 31 May 2021 18:47:17 -0700 (PDT) From: email@aabouzied.com To: qemu-devel@nongnu.org Subject: [PATCH] Add display suboptions to man pages Date: Tue, 1 Jun 2021 03:43:13 +0200 Message-Id: <20210601014312.17981-1-email@aabouzied.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2a00:1450:4864:20::32e; envelope-from=email@aabouzied.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 31 May 2021 23:18:21 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, Ahmed Abouzied Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @aabouzied-com.20150623.gappssmtp.com) Content-Type: text/plain; charset="utf-8" From: Ahmed Abouzied Updates man pages with the suboptions for the `-display`. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/128 Buglink: https://bugs.launchpad.net/qemu/+bug/1620660 Signed-off-by: Ahmed Abouzied --- This is just a trivial update for the man pages. It's the first time I get to know QEMU source code. I didn't know which maintainer to CC here. The `scripts/get_maintainer.pl` script didn't show any maintainers for this file. I did CC the trivial mailing list because this is a very small change. Please let me know if the patch format is incorrect or something and I'll fix it. Looking forward to getting back feedback. Thanks --- qemu-options.hx | 71 ++++++++++++++++++++++++++----------------------- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 14258784b3..587cd7786d 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -227,15 +227,15 @@ DEF("numa", HAS_ARG, QEMU_OPTION_numa, QEMU_ARCH_ALL) SRST ``-numa node[,mem=3Dsize][,cpus=3Dfirstcpu[-lastcpu]][,nodeid=3Dnode][,ini= tiator=3Dinitiator]`` - \=20 + \ ``-numa node[,memdev=3Did][,cpus=3Dfirstcpu[-lastcpu]][,nodeid=3Dnode][,in= itiator=3Dinitiator]`` \ ``-numa dist,src=3Dsource,dst=3Ddestination,val=3Ddistance`` - \=20 + \ ``-numa cpu,node-id=3Dnode[,socket-id=3Dx][,core-id=3Dy][,thread-id=3Dz]`` - \=20 + \ ``-numa hmat-lb,initiator=3Dnode,target=3Dnode,hierarchy=3Dhierarchy,data-= type=3Dtpye[,latency=3Dlat][,bandwidth=3Dbw]`` - \=20 + \ ``-numa hmat-cache,node-id=3Dnode,size=3Dsize,level=3Dlevel[,associativity= =3Dstr][,policy=3Dstr][,line=3Dsize]`` Define a NUMA node and assign RAM and VCPUs to it. Set the NUMA distance from a source node to a destination node. Set the ACPI @@ -430,7 +430,7 @@ DEF("global", HAS_ARG, QEMU_OPTION_global, QEMU_ARCH_ALL) SRST ``-global driver.prop=3Dvalue`` - \=20 + \ ``-global driver=3Ddriver,property=3Dproperty,value=3Dvalue`` Set default value of driver's property prop to value, e.g.: =20 @@ -976,9 +976,9 @@ SRST ``-hda file`` \ ``-hdb file`` - \=20 + \ ``-hdc file`` - \=20 + \ ``-hdd file`` Use file as hard disk 0, 1, 2 or 3 image (see the :ref:`disk images` chapter in the System Emulation Users Guide). @@ -1468,7 +1468,7 @@ DEF("fsdev", HAS_ARG, QEMU_OPTION_fsdev, =20 SRST ``-fsdev local,id=3Did,path=3Dpath,security_model=3Dsecurity_model [,write= out=3Dwriteout][,readonly=3Don][,fmode=3Dfmode][,dmode=3Ddmode] [,throttlin= g.option=3Dvalue[,throttling.option=3Dvalue[,...]]]`` - \=20 + \ ``-fsdev proxy,id=3Did,socket=3Dsocket[,writeout=3Dwriteout][,readonly=3Do= n]`` \ ``-fsdev proxy,id=3Did,sock_fd=3Dsock_fd[,writeout=3Dwriteout][,readonly= =3Don]`` @@ -1589,9 +1589,9 @@ DEF("virtfs", HAS_ARG, QEMU_OPTION_virtfs, =20 SRST ``-virtfs local,path=3Dpath,mount_tag=3Dmount_tag ,security_model=3Dsecuri= ty_model[,writeout=3Dwriteout][,readonly=3Don] [,fmode=3Dfmode][,dmode=3Ddm= ode][,multidevs=3Dmultidevs]`` - \=20 + \ ``-virtfs proxy,socket=3Dsocket,mount_tag=3Dmount_tag [,writeout=3Dwriteou= t][,readonly=3Don]`` - \=20 + \ ``-virtfs proxy,sock_fd=3Dsock_fd,mount_tag=3Dmount_tag [,writeout=3Dwrite= out][,readonly=3Don]`` \ ``-virtfs synth,mount_tag=3Dmount_tag`` @@ -1819,11 +1819,22 @@ SRST old style -sdl/-curses/... options. Use ``-display help`` to list the available display types. Valid values for type are =20 - ``sdl`` + ``spice-app[,gl=3Don|off]`` + Start QEMU as a Spice server and launch the default Spice client + application. The Spice server will redirect the serial consoles + and QEMU monitors. (Since 4.0) + + ``sdl[,alt_grab=3Don|off][,ctrl_grab=3Don|off][,window_close=3Don|off]= [,gl=3Don|core|es|off]`` + Display video output via SDL (usually in a separate graphics window; see the SDL documentation for other possibilities). =20 - ``curses`` + ``gtk[,grab_on_hover=3Don|off][,gl=3Don|off]`` + Display video output in a GTK window. This interface provides + drop-down menus and other UI elements to configure and control + the VM during runtime. + + ``curses [,charset=3D]`` Display video output via curses. For graphics device models which support a text mode, QEMU can display this output using a curses/ncurses interface. Nothing is displayed when the graphics @@ -1834,6 +1845,14 @@ SRST ``charset=3DCP850`` for IBM CP850 encoding. The default is ``CP437``. =20 + ``vnc=3D[,]`` + Start a VNC server on display + + ``egl-headless[,rendernode]`` + Offload all OpenGL operations to a local DRI device. For any + graphical display, this display needs to be paired with either + VNC or SPICE displays. + ``none`` Do not display video output. The guest will still see an emulated graphics card, but its output will not be displayed to @@ -1842,24 +1861,8 @@ SRST also changes the destination of the serial and parallel port data. =20 - ``gtk`` - Display video output in a GTK window. This interface provides - drop-down menus and other UI elements to configure and control - the VM during runtime. - - ``vnc`` - Start a VNC server on display - - ``egl-headless`` - Offload all OpenGL operations to a local DRI device. For any - graphical display, this display needs to be paired with either - VNC or SPICE displays. =20 - ``spice-app`` - Start QEMU as a Spice server and launch the default Spice client - application. The Spice server will redirect the serial consoles - and QEMU monitors. (Since 4.0) -ERST + ERST =20 DEF("nographic", 0, QEMU_OPTION_nographic, "-nographic disable graphical output and redirect serial I/Os to = console\n", @@ -3799,10 +3802,10 @@ DEF("mon", HAS_ARG, QEMU_OPTION_mon, \ "-mon [chardev=3D]name[,mode=3Dreadline|control][,pretty[=3Don|off]]\n= ", QEMU_ARCH_ALL) SRST ``-mon [chardev=3D]name[,mode=3Dreadline|control][,pretty[=3Don|off]]`` - Setup monitor on chardev name. ``mode=3Dcontrol`` configures=20 + Setup monitor on chardev name. ``mode=3Dcontrol`` configures a QMP monitor (a JSON RPC-style protocol) and it is not the same as HMP, the human monitor that has a "(qemu)" prompt. - ``pretty`` is only valid when ``mode=3Dcontrol``,=20 + ``pretty`` is only valid when ``mode=3Dcontrol``, turning on JSON pretty printing to ease human reading and debugging. ERST @@ -3863,7 +3866,7 @@ DEF("overcommit", HAS_ARG, QEMU_OPTION_overcommit, QEMU_ARCH_ALL) SRST ``-overcommit mem-lock=3Don|off`` - \=20 + \ ``-overcommit cpu-pm=3Don|off`` Run qemu with hints about host resource overcommit. The default is to assume that host overcommits all resources. @@ -4249,7 +4252,7 @@ DEF("incoming", HAS_ARG, QEMU_OPTION_incoming, \ QEMU_ARCH_ALL) SRST ``-incoming tcp:[host]:port[,to=3Dmaxport][,ipv4=3Don|off][,ipv6=3Don|off]= `` - \=20 + \ ``-incoming rdma:host:port[,ipv4=3Don|off][,ipv6=3Don|off]`` Prepare for incoming migration, listen on a given tcp port. =20 @@ -4998,7 +5001,7 @@ SRST [...] =20 ``-object secret,id=3Did,data=3Dstring,format=3Draw|base64[,keyid=3Dse= cretid,iv=3Dstring]`` - \=20 + \ ``-object secret,id=3Did,file=3Dfilename,format=3Draw|base64[,keyid=3D= secretid,iv=3Dstring]`` Defines a secret to store a password, encryption key, or some other sensitive data. The sensitive data can either be passed --=20 2.25.1