From patchwork Mon Jul 18 23:30:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kim, Dongwon" X-Patchwork-Id: 12921859 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A7235C433EF for ; Mon, 18 Jul 2022 23:40:15 +0000 (UTC) Received: from localhost ([::1]:54568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDaLP-000893-OT for qemu-devel@archiver.kernel.org; Mon, 18 Jul 2022 19:40:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDaIk-0006Bb-An for qemu-devel@nongnu.org; Mon, 18 Jul 2022 19:37:22 -0400 Received: from mga18.intel.com ([134.134.136.126]:53813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDaIg-0001fw-Qm for qemu-devel@nongnu.org; Mon, 18 Jul 2022 19:37:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658187438; x=1689723438; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=hznMPrcY31HBKxmOoPVfhOR/kVUWWHFnrqWN4v5nqYM=; b=EHRJETSaYbs4PNuisebtwLoSBhVWUsHuiMhmxTJp+JF+rNGfmJtlh74X JLCbWtljR34UicEfozv+AS+cATY4bQpDTno0Xa7JLmzCiNDVKH+wpO1Cj r6PX4EXdeaEHEcqiU8uqSPqqpP2QjVRNvef7guw2+lrWOWvdZQ5HW+rjE 5lH6IiLjKJEZljCzBQpMEUfpNW/9PxDCRFcJ9Wtz1BFjimBHrEM2kYgwY uXpFTgobH6iqVS0CKYFBc7Jcq9/23w2eVtjzJr9lCpVw2l3gT+eGjWFSN gWfWt4Mwu2zcME+Xt6S1wHr9OgsOLVQVfWQKf4wOcu2vO2WYYmDFridH5 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10412"; a="269369083" X-IronPort-AV: E=Sophos;i="5.92,282,1650956400"; d="scan'208";a="269369083" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2022 16:37:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,282,1650956400"; d="scan'208";a="739652090" Received: from dongwonk-z390-aorus-ultra-intel-gfx.fm.intel.com ([10.105.129.122]) by fmsmga001.fm.intel.com with ESMTP; 18 Jul 2022 16:37:10 -0700 From: Dongwon Kim To: qemu-devel@nongnu.org Cc: armbru@redhat.com, berrange@redhat.com, kraxel@redhat.com, pbonzini@redhat.com, f4bug@amsat.org, vivek.kasireddy@intel.com, Dongwon Kim Subject: [PATCH v5 0/2] handling guest multiple displays Date: Mon, 18 Jul 2022 16:30:07 -0700 Message-Id: <20220718233009.18780-1-dongwon.kim@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Received-SPF: pass client-ip=134.134.136.126; envelope-from=dongwon.kim@intel.com; helo=mga18.intel.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" This patch seires is for adding some useful features for the guest os with multi-displays. First patch is to make all of guest displays visible when guest os is launched using "detach". Second patch is for providing a method to assign each guest display to specific physical monitor, which would be useful if someone wants to directly full-screen individual guest scanouts to host's physical displays. Changes in v5: * ui/gtk: a new array param monitor to specify the target - rephrased the description of the new param, 'monitor' for clarification Changes in v4: * ui/gtk: a new array param monitor to specify the target - changed "virtual-console" to an official term, "virtual console" - made if condition to check only 'full_screen' since 'has_full_screen' won't affect the result as 'full_screen' is always false if 'has_full_screen' is false. Changes in v3: * ui/gtk: a new array param monitor to specify the target - Revised commit message - Rewrote desription of the new parameter for clarification - 'for' loop that iterates through virtual consoles is actually executed only once only if the condition is met so replaced it with 'if' statement Changes in v2: * ui/gtk: detach VCS for additional guest displays - must check if the type of VC is GD_VC_GFX before qemu_console_is_graphic - It is not needed to pre-calculate n_gfx_vcs to determine how many times "detach" should be executed (n_gfx_vcs - 1) because the first virtual console (vc[0]) is always in graphic mode so we can simply detach all other graphic mode virtual consoles. - making sure detached window's size same as original surface size Dongwon Kim (2): ui/gtk: detach VCs for additional guest displays ui/gtk: a new array param monitor to specify the target displays qapi/ui.json | 9 ++++++++- qemu-options.hx | 3 ++- ui/gtk.c | 41 +++++++++++++++++++++++++++++++++++++++-- 3 files changed, 49 insertions(+), 4 deletions(-)