From: Dhiru Kholia <dhiru.kholia@gmail.com>
To: qemu-devel@nongnu.org
Cc: Igor Mammedov <imammedo@redhat.com>,
Pankaj Gupta <pagupta@redhat.com>,
Dhiru Kholia <dhiru.kholia@gmail.com>
Subject: [Qemu-devel] [PATCH] pc/acpi: Fix booting of macOS with Clover EFI bootloader
Date: Fri, 4 Aug 2017 12:15:40 +0530 [thread overview]
Message-ID: <20170804064540.10523-1-dhiru.kholia@gmail.com> (raw)
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 = true;
obj = lpc;
pm->cpu_hp_io_base = ICH9_CPU_HOTPLUG_IO_BASE;
}
--
2.9.4
next reply other threads:[~2017-08-04 6:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-04 6:45 Dhiru Kholia [this message]
2017-08-04 9:05 ` [Qemu-devel] [PATCH] pc/acpi: Fix booting of macOS with Clover EFI bootloader Igor Mammedov
2017-08-04 10:47 ` Dhiru Kholia
2017-08-04 15:14 ` Igor Mammedov
2017-08-05 8:30 ` Dhiru Kholia
2017-08-05 11:46 ` Dhiru Kholia
2017-08-05 20:05 ` Laszlo Ersek
2017-08-06 7:38 ` Dhiru Kholia
2017-08-06 9:35 ` Laszlo Ersek
[not found] <mailman.88520.1501838500.22740.qemu-devel@nongnu.org>
2017-08-04 15:00 ` Programmingkid
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170804064540.10523-1-dhiru.kholia@gmail.com \
--to=dhiru.kholia@gmail.com \
--cc=imammedo@redhat.com \
--cc=pagupta@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).