Skip to content

Instantly share code, notes, and snippets.

@Swyter
Created November 26, 2022 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Swyter/e8ebc821669b8d8d1fff746eccb20f40 to your computer and use it in GitHub Desktop.
Save Swyter/e8ebc821669b8d8d1fff746eccb20f40 to your computer and use it in GitHub Desktop.
Fix for qemu-system-x86_64: kvm_set_user_memory_region: KVM_SET_USER_MEMORY_REGION failed, slot=6, start=0xc004800000000000, size=0x200000000

If you get this crash after booting macOS in KVM with AMD GPU passthrough you'll need to disable Above 4GB decoding on your BIOS/UEFI Setup.

qemu-system-x86_64: kvm_set_user_memory_region: KVM_SET_USER_MEMORY_REGION failed, slot=6, start=0xc004800000000000, size=0x200000000: Invalid argument kvm_set_phys_mem: error registering slot: Invalid argument
./boot-passthrough.sh: línea 90:  3507 Aborted                (`core' generado) qemu-system-x86_64 "${args[@]}"

That fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment