From nobody Wed Apr 24 09:02:09 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1593008765; cv=none; d=zohomail.com; s=zohoarc; b=VNk56mKrAVrYjeAiV3JmEY52HaolBtlXHfagnJsXeZp7n8wJxW8FHwqPGhG5g6Mm8Uk1xP71TN+CIY2/aSo6IU5sxEunhiDTv0JVmG1kj/vyzo2/e4CwLpSrqqOKbslb9KIa+PF+uGZ8Y2d7aFTmAkk2/0fe7IeN1x5WUHkRivI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1593008765; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Subject:To; bh=Vd29UMvUYxGx58A/9Ka0hXf6R+lv0f7cBha/sPDqeLk=; b=Yy1twqF/HBZEhhZBvks5vEVx08hZMNzi380fnGqh6zGRC6Da2NCcrgD/2YoBtmLb49KeUQSLs4tsc0qIkhEMb3ePLCQpJpsB3bxk9bZju82rnG0PWG+WK5hEVhajbjqgDB4IUw7VVOJpSUs5a3idkisya26ewi6ztjvRHZZMw5E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1593008765890277.02756181760674; Wed, 24 Jun 2020 07:26:05 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 57F6510C1947; Wed, 24 Jun 2020 14:26:02 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 36F5710C1929 for ; Wed, 24 Jun 2020 14:25:47 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) for ; Wed, 24 Jun 2020 07:25:47 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.gmail.com with ESMTPSA id a82sm3569710qkb.29.2020.06.24.07.25.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 07:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fquVw25uXesMFsu5LrqkMyqk3Kit7JXp1vD+ebwQHEE=; b=jOtFnnlKJsYDXB9dpqLzlX/TUJ2D/wxhLOHDoDhqWSAX5PHF+hEmZ+uthLy7+yZX85 9ylgfLw6vSPvxR04zu3wf7q/ncUMSpyMFc+u9aOpAN/l8fMvE3woZ1zKsNNF+1cPh3st 4G8rggunczAZdUUDTUb4tt6gaVHfWc85oYbx0N3mQMB7C9r80rh1pvk1zq1Bsb8znmGD gyTlIsDgZak4YGgnT6u7DLaTX9raVBWjXbDQcYpzRbMvdgRKzROpC1m7dZ5yDY+0WYSG FbSdcYm/TYzeZ0WVFF1nIvojXnryfHUn4TMkPaaax3dK3Q7NJGVW47FWi/XY04o+0TeY HFbQ== 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=fquVw25uXesMFsu5LrqkMyqk3Kit7JXp1vD+ebwQHEE=; b=rNeLUbfk6tV+PyLHs2rY1Ix3Sft0zEofXKKjYrl0HEduXFRAQsYc75xqvusyooywQ3 B4SP5IbPfjm/JMwsHCYd2irP/CunVpZy8bcleJvCmlDLhafIDkIrXX8hs/MZU7+L0nNu 5wus4xYkuDImRkACW19TUNYlIj+TqobNXU0dXA+tcxclN4cXGWCgIAzEbOSAlEPlhT+j +iWNnQejn0gjHZRWgqzN5MskQjafPFayfpn5qYTt78aht2jt5/CFEOMjW3Q8Fx81n3TS rQciztQ83bPJPwhPUUhNGgnx1DFxmH181zF27b36ofPOgUf3PSrwlzibFxK7BkS2t6AS wikg== X-Gm-Message-State: AOAM5326eyI3jrfw/hLIKYmwRfRYlTQdZylvinyxJyPOMvAa5CG3t2/m LlB2W36wj8WyAkT1+LHXZKnJzQUw X-Google-Smtp-Source: ABdhPJxVtlUe0Uauw5Jfu+OYMeNhGtne/MJ0P/2N0WFuYE4NIb++HG6sRa0zagiekPrLgd/H+WdYtw== X-Received: by 2002:ac8:4e03:: with SMTP id c3mr21986356qtw.82.1593008745709; Wed, 24 Jun 2020 07:25:45 -0700 (PDT) From: Jason Andryuk To: seabios@seabios.org Date: Wed, 24 Jun 2020 10:25:13 -0400 Message-Id: <20200624142513.14270-1-jandryuk@gmail.com> MIME-Version: 1.0 X-Spam-Level: *** Message-ID-Hash: ZKSTLR6ACHATGMZSADAK7ESM53ERMQSA X-Message-ID-Hash: ZKSTLR6ACHATGMZSADAK7ESM53ERMQSA X-MailFrom: jandryuk@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Jason Andryuk X-Mailman-Version: 3.3.1 Precedence: list Subject: [SeaBIOS] [PATCH v2] Preserve Xen DebugOutputPort List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: -- X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" xen_preinit() runs early and changes DebugOutputPort. qemu_preinit() runs soon after. inb on DebugOutputPort doesn't work on Xen, so the check will always fail and DebugOutputPort will be cleared to 0 disabling output. Quick exit the function when running on Xen to preserve the modified DebugOutputPort. Signed-off-by: Jason Andryuk v2 Re-word comment --- src/hw/serialio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hw/serialio.c b/src/hw/serialio.c index 3163344..fa663b9 100644 --- a/src/hw/serialio.c +++ b/src/hw/serialio.c @@ -106,6 +106,10 @@ u16 DebugOutputPort VARFSEG =3D 0x402; void qemu_debug_preinit(void) { + /* Xen doesn't support checking if debug output is active. */ + if (runningOnXen()) + return; + /* Check if the QEMU debug output port is active */ if (CONFIG_DEBUG_IO && inb(GET_GLOBAL(DebugOutputPort)) !=3D QEMU_DEBUGCON_READBACK) --=20 2.25.1 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org