From nobody Tue Apr 30 21:29:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 15018292759051023.3241081577432; Thu, 3 Aug 2017 23:47:55 -0700 (PDT) Received: from localhost ([::1]:39625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddWOo-0001YR-AC for importer@patchew.org; Fri, 04 Aug 2017 02:47:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddWMy-0000iS-Lx for qemu-devel@nongnu.org; Fri, 04 Aug 2017 02:46:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddWMv-0003pA-VH for qemu-devel@nongnu.org; Fri, 04 Aug 2017 02:46:00 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:36707) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddWMv-0003ma-MN for qemu-devel@nongnu.org; Fri, 04 Aug 2017 02:45:57 -0400 Received: by mail-wm0-x244.google.com with SMTP id d40so4592355wma.3 for ; Thu, 03 Aug 2017 23:45:56 -0700 (PDT) Received: from localhost.localdomain.com ([59.94.210.161]) by smtp.gmail.com with ESMTPSA id g84sm2191700wmf.30.2017.08.03.23.45.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Aug 2017 23:45:53 -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; bh=FVn8+0g8jBcZM8H7ROb1tlhDZvfhgIHu+cxHphjJOUg=; b=ThS89SRnC3oFErxuqpTey2tdo2Ha/4O29HyLhfAhh2wRByVK6f/pf3AuSDkI0ZzB3R N2uSlKGOzV0gGzwDe1AutnwC3cxb3Iz7R0OJm5fmQ+dO/8juxwm9Lx7KzsEhk6K8yZcC 3FdkM60BEzhTpWCks6RIb95/mzg571ac441LdlESSH/4jmjpXcKbpu6QYuKuy/+0VZuZ pEDAVIRqyP4eq0B3MJk6Xe8smOcZlUMJbjmWHmqFDxqKcZtDNgN0nqyYCmgzlZMzjn1v iFRFHL5LPHLzq2V5pM0PXA+8yg+xAmcYlXbk2iSlV38Uw4O5+YIJmIUNm/mdxfXSFFFL Lt9A== 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; bh=FVn8+0g8jBcZM8H7ROb1tlhDZvfhgIHu+cxHphjJOUg=; b=WcZF0LGjNsP33d62cl/zIvvoqABzXjvP0M5/pB6N9+x3LVceQgNLd79eZaldjaEzcj GUcFUKCpzdhz+2fxeyoqPGeTxiBrUes+gDJ3PfENYvblUVxtM1XhF9AddQtQo1zoBdSF tHLwnhkS4LoSaVHLZ2EqbwjK/14wRvda33UCaBsnM0v2ze2pEMqqkV/+S910LQaDtxbQ zaa7vpOYMG3fsDsXY1QG2QA3y60ccYrOE+fP2hxDebl2b96JvPjhcQDZyXPFh/4FxqcT OKVXuMAp/H6q77vE0waPqu4pQetWYqNeiHtzgwWjWAfxe5tRYxayLq71GnJ6VjdaKC9G SL9w== X-Gm-Message-State: AHYfb5jC5hOZcm3p4DTQV5kBq19lGEkWKN1yCIu395OfQZVGr0jknoca TZCCZMZG4vf5gFrVMGQ= X-Received: by 10.28.189.133 with SMTP id n127mr589578wmf.23.1501829154323; Thu, 03 Aug 2017 23:45:54 -0700 (PDT) From: Dhiru Kholia To: qemu-devel@nongnu.org Date: Fri, 4 Aug 2017 12:15:40 +0530 Message-Id: <20170804064540.10523-1-dhiru.kholia@gmail.com> X-Mailer: git-send-email 2.9.4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PATCH] pc/acpi: Fix booting of macOS with Clover EFI bootloader X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Igor Mammedov , Dhiru Kholia , Pankaj Gupta Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This was tested with macOS 10.12.5 and Clover r4114. Without this patch, the macOS boot process gets stuck at the Apple logo without showing any progress bar. I have documented the process of running macOS on QEMU/KVM at, https://github.com/kholia/OSX-KVM/ Instead of using this patch, adding an additional command-line knob which exposes this setting (force_rev1_fadt) to the user might be a more general solution. --- hw/i386/acpi-build.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index b9c245c..0f8df19 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -145,6 +145,7 @@ static void acpi_get_pm_info(AcpiPmInfo *pm) object_property_get_uint(obj, ACPI_PCIHP_IO_LEN_PROP, NULL); } if (lpc) { + pm->force_rev1_fadt =3D true; obj =3D lpc; pm->cpu_hp_io_base =3D ICH9_CPU_HOTPLUG_IO_BASE; } --=20 2.9.4