From nobody Tue Apr 16 03:50:54 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 80.81.252.135 is neither permitted nor denied by domain of seabios.org) client-ip=80.81.252.135; envelope-from=seabios-bounces@seabios.org; helo=mail.coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail header.i=@amazon.de; spf=none (zoho.com: 80.81.252.135 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org Return-Path: Received: from mail.coreboot.org (mail.coreboot.org [80.81.252.135]) by mx.zohomail.com with SMTPS id 151171503690631.139574694909584; Sun, 26 Nov 2017 08:50:36 -0800 (PST) Received: from [127.0.0.1] (helo=ra.coreboot.org) by mail.coreboot.org with esmtp (Exim 4.86_2) (envelope-from ) id 1eJ08F-00008N-MK; Sun, 26 Nov 2017 17:50:15 +0100 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]) by mail.coreboot.org with esmtps (TLSv1.2:RC4-SHA:128) (Exim 4.86_2) (envelope-from ) id 1eJ087-00007M-33 for seabios@seabios.org; Sun, 26 Nov 2017 17:50:14 +0100 Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2c-4e7c8266.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 26 Nov 2017 16:50:05 +0000 Received: from uf8b156e456a5587c9af4.ant.amazon.com (pdx2-ws-svc-lb17-vlan3.amazon.com [10.247.140.70]) by email-inbound-relay-2c-4e7c8266.us-west-2.amazon.com (8.14.7/8.14.7) with ESMTP id vAQGo0Cb088086 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 26 Nov 2017 16:50:02 GMT Received: from uf8b156e456a5587c9af4.ant.amazon.com (localhost [127.0.0.1]) by uf8b156e456a5587c9af4.ant.amazon.com (8.15.2/8.15.2/Debian-3) with ESMTP id vAQGnxVG000438; Sun, 26 Nov 2017 17:50:00 +0100 Received: (from sironi@localhost) by uf8b156e456a5587c9af4.ant.amazon.com (8.15.2/8.15.2/Submit) id vAQGnxBt000425; Sun, 26 Nov 2017 17:49:59 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1511715007; x=1543251007; h=from:to:subject:date:message-id; bh=whZ3tpRulSvSTsBLvSVlRo2wyfT7lSQkncxBCsORU8k=; b=a2QcLlGHCZJZJtou6jghOfEzLmC5P/py5gj3MvqcfOEjI/T4vxJwHPML WclL2S2+Nl6bxP7TwT2Qaz5sSVESaWhB7aWgilLaTbM/ny9xKPpj5u1lJ 1rL2DXSp4VsjEaAsBI1twH5Ek0QZyn+W6zikVY8KtciEgelwngW3Pb66I k=; X-IronPort-AV: E=Sophos;i="5.44,459,1505779200"; d="scan'208";a="320851565" From: Filippo Sironi To: seabios@seabios.org, sironi@amazon.de Date: Sun, 26 Nov 2017 17:49:53 +0100 Message-Id: <1511714993-27630-1-git-send-email-sironi@amazon.de> X-Mailer: git-send-email 2.7.4 X-Spam-Score: -13.1 (-------------) Subject: [SeaBIOS] [PATCH] paravirt: Allow both Red Hat and Amazon PCI HB subsystem vendor and device ids X-BeenThere: seabios@seabios.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SeaBIOS mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: seabios-bounces@seabios.org Sender: "SeaBIOS" X-Duff: Orig. Duff, Duff Lite, Duff Dry, Duff Dark, Raspberry Duff, Lady Duff, Red Duff, Tartar Control Duff X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Filippo Sironi --- src/fw/paravirt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c index 0770c47b12e7..163b70c6473f 100644 --- a/src/fw/paravirt.c +++ b/src/fw/paravirt.c @@ -83,8 +83,8 @@ static void qemu_detect(void) u16 sv =3D pci_config_readw(0, PCI_SUBSYSTEM_VENDOR_ID); u16 sd =3D pci_config_readw(0, PCI_SUBSYSTEM_ID); =20 - if (sv !=3D 0x1af4 || /* Red Hat, Inc */ - sd !=3D 0x1100) /* Qemu virtual machine */ + if (!(sv =3D=3D 0x1af4 && sd =3D=3D 0x1100) && /* Red Hat, Inc. QEMU V= M */ + !(sv =3D=3D 0x1d0f && sd =3D=3D 0x1237)) /* Amazon.com, Inc. i44= 0fx VM */ return; =20 PlatformRunningOn |=3D PF_QEMU; --=20 2.7.4 _______________________________________________ SeaBIOS mailing list SeaBIOS@seabios.org https://mail.coreboot.org/mailman/listinfo/seabios