Received: by 2002:a17:906:aa04:b0:a46:bbde:2c08 with SMTP id ko4csp545546ejb; Mon, 18 Mar 2024 03:37:01 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU8v6CeUqRSKEvLMwWTQ4Yca5EaNeVC5Pe78+fsD8mYifkdKCPFGMe/W3H8wiJuiDQT1cKQpTksms47/NK+rsvmnZRDri0P X-Google-Smtp-Source: AGHT+IG+XQ1Wet1+hEktwp+vyMOy+cp6R3YDNmeGypqfY4HOYfOUGczG+7SHxMYtRHLJzDXAIr3Y X-Received: by 2002:a0c:fde3:0:b0:696:179f:153d with SMTP id m3-20020a0cfde3000000b00696179f153dmr2842221qvu.32.1710758221066; Mon, 18 Mar 2024 03:37:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710758221; cv=none; d=google.com; s=arc-20160816; b=FjczCdxPXruarEnBUoHa4qFiFztVtKKhOU66X/E6vqOWD0oI+Kgw+8tnm6yvv8gAAi sAT36fLyKMzMNg1PW5teisujlb6+FJx7w6OrL6jty5AmFCkZSMgvZFI28uEAsSga/E29 7kuBLpEgL1P3A7tSUJgTfgVBoL1rHUQB32qKvcnMwe6lY16zKSyh5i/ursm5Pn+l7ASU IZBFpPG8XBC32urmwllIuUnC83wsQtyIQl388KWFlIzIY+DoOw5l0IYfSds2nBoonNv2 HG9lvCjWge90X+vqlOoBJqyJDIz8TbhBFDeAvq41cnNWtz2UBirdCP7EPEQvFlQOynRI wfzA== 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 :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=YLjNEEGj7YutZqv3ska1jpI5LSiCIkPKoN+5SjJg8zA=; fh=iBN6bGsqSW/gvtCjFCKkfGcWOWAYFmhs4hB+QIAqxwo=; b=gelDMhUZbQrZ3fhvqWyMQEcYT6lmrtCEUnee/r2mDrSnJvNywXc5b3pmuosghy/vCj K7QK7NE4wFoAHvx4fr2HTBROIiW+qbsVhitejiPHVpWXr1/ZGkz4ec8dxUJtnboeaZ9K f63eAc6ZMYQ7306hIAb6AJGWE65O4IZ1zdmWOcVEJy9+30ljb3ZdLvBFrcLJXkzTW6sI Qf8Kp+hZjOxVvep4Bm4ynGG0SftmJ8765lTUytFjnTKp3GvNSEpce5nf+TQpgaZfxvhY 84ItqAr97zS/qUt/E3wnzU2oyUZJftFu0DOh5QFMzqSgkhfPAW/8R4VLaweaeaMkkyP9 kluw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IZw0hoh4; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a8-20020ad45c48000000b0068fe843bc61si8623947qva.80.2024.03.18.03.37.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Mar 2024 03:37:01 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=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=@gmail.com header.s=20230601 header.b=IZw0hoh4; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmAM8-00042v-8X; Mon, 18 Mar 2024 06:36:36 -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 1rmAM6-00042b-Ms; Mon, 18 Mar 2024 06:36:34 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rmAM4-00032b-IY; Mon, 18 Mar 2024 06:36:34 -0400 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1e036b76725so1207575ad.1; Mon, 18 Mar 2024 03:36:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710758190; x=1711362990; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=YLjNEEGj7YutZqv3ska1jpI5LSiCIkPKoN+5SjJg8zA=; b=IZw0hoh4K4lW6AqqoR3XQ4omPjPUCszRm3ccgy2z2XuT6FrsBg7RYisqxh6844xfSc eHhUZWNFckd7f7P+fPNuoZRlt7NepRyCTrDugfd5ZJkSTSH3LG5aZFqbQAyjOcj31+b/ a0+8wuJkfwXYtIJDo2nRLGRWXlFGuWWgOmFTMemGDWjZmdfXfYJzbcCI6qfFB0FdG1OP lGQV3k8/WMF7OWcn/4QViIHHNrGePcSt/unIG1E9NRQDm2hLCEJ1oLQAK3tyBFc+l9Tw 2IUxfliwvy1bP0UVeaG94/ieRbyPUEwHmCoQ/n3OCvAqhmH1umdV4434JVtDhTtKw0gY 5F6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710758190; x=1711362990; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YLjNEEGj7YutZqv3ska1jpI5LSiCIkPKoN+5SjJg8zA=; b=HwhcmbMVQV4cVzDB5vwYF7ZRGMQ1zjmyK3XAch1M4fQqWoULd9NlsHk/pbahucC44u snM+26KKBp03h2uURUAP1CX3mqvI08Ufd4E38icLDPkr/XW9LQOH7aLJs+faLtc0BtNu Yn4hyYbpjFf+eSC/XUHzk9pq/KDwGkUKz4UDI6sBss+JxjW0cgub/74D0revMiGKAq+i YTzxN9jhi8GgC/XBlqgcXLxM5Is4XE977tv1LgwVLGkHaEyEMDO5qtMlfJw2IILrpNEK riDcQ0Gt1yULtVBQZklWZGV1Z3zVMd4r5kr4+F7xp8NZPLsyFsofnX/MJRpzBb8q7e5h POiQ== X-Forwarded-Encrypted: i=1; AJvYcCXAW/kIxiO7RU5yKiB0/O2WTHjURc9Halj3CrjWQVcPB2B4LaEXXg4QPfNoPReEzoKduGo1J0jjgcgoXnAkDMCYfGHNvD+6KvLlfGDg0btNJNMF0v8J5pcDlv4= X-Gm-Message-State: AOJu0Yx05RCSpPrHI4pEFTWaLwd/Bibx8bt9++VfK/0N86+6M8x/DBe4 GMO8SUXrPqNQDIOh+O8j+kQYHTjcrzo0zkoS7TI5Ty8sDNVdwM+m X-Received: by 2002:a17:903:1209:b0:1dd:62c5:b6e2 with SMTP id l9-20020a170903120900b001dd62c5b6e2mr14493721plh.37.1710758190139; Mon, 18 Mar 2024 03:36:30 -0700 (PDT) Received: from [157.82.200.213] ([157.82.200.213]) by smtp.gmail.com with ESMTPSA id ky6-20020a170902f98600b001dcfbbb1ddesm8907742plb.7.2024.03.18.03.36.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Mar 2024 03:36:29 -0700 (PDT) Message-ID: Date: Mon, 18 Mar 2024 19:36:26 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH-for-9.1 3/3] ui/console: Add 'rotate_arcdegree' field to allow per-console rotation Content-Language: en-US To: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Cc: Peter Maydell , Gerd Hoffmann , qemu-arm@nongnu.org, Paolo Bonzini , =?UTF-8?Q?Marc-Andr=C3=A9_Lureau?= References: <20240318100543.78846-1-philmd@linaro.org> <20240318100543.78846-4-philmd@linaro.org> From: Akihiko Odaki In-Reply-To: <20240318100543.78846-4-philmd@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=akihiko.odaki@gmail.com; helo=mail-pl1-x62e.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, FREEMAIL_FROM=0.001, 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-arm@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-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: JIl6WjoHSN4D On 2024/03/18 19:05, Philippe Mathieu-Daudé wrote: > Add the 'rotate_arcdegree' field to QemuConsole and remove > the use of the 'graphic_rotate' global. I think QemuGraphicConsole is a better place to put the field. Regards, Akihiko Odaki > > Signed-off-by: Philippe Mathieu-Daudé > --- > ui/console-priv.h | 1 + > ui/console.c | 7 +++---- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/ui/console-priv.h b/ui/console-priv.h > index 88569ed2cc..6e54b476d9 100644 > --- a/ui/console-priv.h > +++ b/ui/console-priv.h > @@ -31,6 +31,7 @@ struct QemuConsole { > const GraphicHwOps *hw_ops; > void *hw; > CoQueue dump_queue; > + unsigned rotate_arcdegree; > > QTAILQ_ENTRY(QemuConsole) next; > }; > diff --git a/ui/console.c b/ui/console.c > index 84aee76846..a36674bacf 100644 > --- a/ui/console.c > +++ b/ui/console.c > @@ -37,7 +37,6 @@ > #include "trace.h" > #include "exec/memory.h" > #include "qom/object.h" > -#include "sysemu/sysemu.h" > > #include "console-priv.h" > > @@ -210,17 +209,17 @@ void qemu_console_set_window_id(QemuConsole *con, int window_id) > > void qemu_console_set_rotate(QemuConsole *con, unsigned arcdegree) > { > - graphic_rotate = arcdegree; > + con->rotate_arcdegree = arcdegree; > } > > bool qemu_console_is_rotated(QemuConsole *con) > { > - return graphic_rotate != 0; > + return con->rotate_arcdegree != 0; > } > > unsigned qemu_console_get_rotate_arcdegree(QemuConsole *con) > { > - return graphic_rotate; > + return con->rotate_arcdegree; > } > > void graphic_hw_invalidate(QemuConsole *con)