Jump to content

QEMU: cannot boot with CPU > Ivy Bridge


3 posts in this topic

Recommended Posts

I have a successfully setup macOS in a QEMU VM. bochs-display works splendidly given Apple has kexts to support it, and passing through my AMD GPU works too.

 

However, I cannot even boot the thing if I specify my CPU to be Haswell or above. There is nothing in the console, nothing in NVRAM, nothing nowhere, no panic too, just freeze. Clover starts loading kernel, and that's it.

 

The host is Kaby Lake, so I doubt the CPU is incapable.

 

I'm at a loss as to what to even check for. Fake CPU ID? Some kernel flags? Were there any crucial MSRs that appeared? (kernel and QEMU are set to ignore MSR writes)

Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...

I have it working with IvyBridge, any newer CPU will completely fail to boot with black screen.  Maybe there's a way around that, but I'm yet to find it...

With IvyBridge you'll be limited to 4cores/2threads with a total of 8 vcpu allocation.

You'll need to apply a kernel patch that turns off topology validation.  The patch below is for catalina.  If you are running an older version you can grab it here:
https://github.com/AMD-OSX/AMD_Vanilla/blob/master/17h/patches.plist

 

Good luck.

	<key>KernelAndKextPatches</key>
	<dict>
		<key>KernelToPatch</key>
		<array>
			<dict>
				<key>Comment</key>
				<string>xlnc - cpu_topology_sort -disable _x86_validate_topology</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				6PT1//+c
				</data>
				<key>MatchOS</key>
				<string>10.15.x</string>
				<key>Replace</key>
				<data>
				Dx9EAACc
				</data>
			</dict>
		</array>
</dict>

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...