From patchwork Wed May 24 10:27:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Juszkiewicz X-Patchwork-Id: 685330 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp168804wrt; Wed, 24 May 2023 03:29:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Jmc5GmM76tNgHbogXizSVop3nrd8neWj21q2Tp7EkRs4rr+jIQ8dyEaVAExX6K/HxvdKk X-Received: by 2002:ad4:5f4f:0:b0:625:aa1a:9380 with SMTP id p15-20020ad45f4f000000b00625aa1a9380mr1382069qvg.60.1684924142985; Wed, 24 May 2023 03:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684924142; cv=none; d=google.com; s=arc-20160816; b=KMJVoBHjFzP4I5G+4YjykU5WbmxRCyZRmEcaKmwF+8UW1v8n16nMdMc0K5owgxL7rk 77mVJQRYt0Q7qZrcsnwihtlU+sZ6SWlnUrg39g/LrtCoLLppZT7fhifndsLQC/hepca/ CMhnwXaQiR9oiTLbZqLEcevZ0sC+fMXaeJ9lUJPTU48ZeWzg/sawEbe8Rjaq+qE1rf7V FRlZfrM/EYKh0/VQKUbTvXsSjbRHyOOjW/4Gjnp5YPaCYbOfougtAeg3rGbex0r8g07l nwA0TmxI+ymJud5G+33Bh9QPkjBWQf5DHjXUaYgtQMhyOqWXrmKiXBQ0TSMXYQ7DSlEN 2kiQ== 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; bh=tYTsUw7KNn2lQnQnvusuvifxoOlVpO/oRfijUf023Wo=; b=Q3dhNLoFZ7i2F4h6zTtyK24gT+jeCTHh7cuulVnHNiN22/YqExEy28+v/EvSzHJsyt MQnFTJjWiKyQyDSanCmUOYESJ5Qaj+aZ5FiTN/BSnS4Q6FNSD21Hqvx1JOJWHcL2EBsU J1Ougng9wXxEfasFq4KGcJjWbHXUq0bDeOYbHgikfBcuRAo+Lrsi1CtlZ/mDg5ZSxi0F QTmXDtHl+b9KAOZtuWpcT6WayrN8glis3X4r1afCdIzH0Sq+0uOaROOJksvFITqSuTDj lvgkd1HyasKkOtGORmJblyowNE4uD37FuXsqbOlrp/qRcH9UR3GDtmaFd24Kh77QBJgO 5Pig== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 j14-20020a05621419ce00b005ef676dbf8dsi6775258qvc.96.2023.05.24.03.29.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 May 2023 03:29:02 -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; 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=fail (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 1q1lio-0007yX-1V; Wed, 24 May 2023 06:27:58 -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 1q1lia-0007r4-1a; Wed, 24 May 2023 06:27:46 -0400 Received: from muminek.juszkiewicz.com.pl ([213.251.184.221]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1liX-0000Oo-Ql; Wed, 24 May 2023 06:27:43 -0400 Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id EFB0B260B8B; Wed, 24 May 2023 12:27:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at juszkiewicz.com.pl Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0b1UX0hO68vl; Wed, 24 May 2023 12:27:36 +0200 (CEST) Received: from applejack.lan (83.21.125.167.ipv4.supernova.orange.pl [83.21.125.167]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id DA9622609C0; Wed, 24 May 2023 12:27:34 +0200 (CEST) From: Marcin Juszkiewicz To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Leif Lindholm , Peter Maydell , Thomas Huth , Paolo Bonzini , Marcin Juszkiewicz Subject: [PATCH v3 2/5] Add Bochs to list of vga_interfaces Date: Wed, 24 May 2023 12:27:26 +0200 Message-Id: <20230524102729.810892-3-marcin.juszkiewicz@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230524102729.810892-1-marcin.juszkiewicz@linaro.org> References: <20230524102729.810892-1-marcin.juszkiewicz@linaro.org> MIME-Version: 1.0 Received-SPF: softfail client-ip=213.251.184.221; envelope-from=marcin.juszkiewicz@linaro.org; helo=muminek.juszkiewicz.com.pl X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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 arm/sbsa-ref uses Bochs-display graphics card and without it being present in vga_interfaces "-vga none" argument handling cannot be added. Signed-off-by: Marcin Juszkiewicz Reviewed-by: Richard Henderson --- include/sysemu/sysemu.h | 2 +- softmmu/vl.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 25be2a692e..9713a1b470 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -29,7 +29,7 @@ extern int autostart; typedef enum { VGA_NONE, VGA_STD, VGA_CIRRUS, VGA_VMWARE, VGA_XENFB, VGA_QXL, - VGA_TCX, VGA_CG3, VGA_DEVICE, VGA_VIRTIO, + VGA_TCX, VGA_CG3, VGA_DEVICE, VGA_VIRTIO, VGA_BOCHS, VGA_TYPE_MAX, } VGAInterfaceType; diff --git a/softmmu/vl.c b/softmmu/vl.c index b0b96f67fa..07e6030875 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -216,6 +216,7 @@ static struct { { .driver = "ati-vga", .flag = &default_vga }, { .driver = "vhost-user-vga", .flag = &default_vga }, { .driver = "virtio-vga-gl", .flag = &default_vga }, + { .driver = "bochs-display", .flag = &default_vga }, }; static QemuOptsList qemu_rtc_opts = { @@ -935,6 +936,11 @@ static const VGAInterfaceInfo vga_interfaces[VGA_TYPE_MAX] = { .name = "CG3 framebuffer", .class_names = { "cgthree" }, }, + [VGA_BOCHS] = { + .opt_name = "bochs-display", + .name = "Bochs framebuffer", + .class_names = { "bochs-display" }, + }, #ifdef CONFIG_XEN_BACKEND [VGA_XENFB] = { .opt_name = "xenfb",