Author Topic: playing around on qemu / kvm (works with sdl) but no vga passthrough with vfio  (Read 1754 times)

0 Members and 1 Guest are viewing this topic.

paigeadele

  • Entrant
  • Posts: 1
booting 10.9, it freezes when it gets to the Apple logo screen, or if you try to boot single/verbose/whatever it just gives you a blank screen, I tried Wait=yes and Quiet=no but didn't find anything in the intial boot. My best guess:

- video emulation stuff in chameleon might be breaking stuff
- I don't have ssse3 or something (info included below)
- has to be a certain type of ati radeon hd 5770 other than what I have ?

Was wondering if anybody here would know anything about this, seems like the kind of thing that chameleon would need to have some support for as well,

I'm super curious about it, its been an interesting project so far.

02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Juniper XT [Radeon HD 5770]
02:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Juniper HDMI Audio [Radeon HD 5700 Series]

#!/bin/bash

./vfio-bind.sh 0000:02:00.0 0000:02:00.1

export macaddress="DE:AD:BE:EF:E0:5F"
qemu-system-x86_64 \
 -enable-kvm \
 -machine q35 \
 -m 8192 \
 -cpu core2duo \
 -smp 4,cores=4 \
 -device isa-applesmc,osk="Do as I say not as I do" \
 -smbios type=2 \
 -kernel /mnt/storage/public/chameleon_svn2360_boot \
 -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
 -device vfio-pci,host=02:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
 -device vfio-pci,host=02:00.1,bus=root.1,addr=00.1 \
 -monitor stdio \
 -vga none \
 -device ide-drive,bus=ide.2,drive=MacHDD \
 -drive id=MacHDD,if=none,file=/mnt/storage/public/mac_hdd.qcow2 \
 -device ide-drive,bus=ide.0,drive=MacDVD \
 -drive id=MacDVD,if=none,snapshot=on,file=/mnt/storage/public/mav.iso \
 -netdev user,id=hub0port0 \
 -device e1000-82545em,netdev=hub0port0,id=mac_vnet0 \
 -usb \
 -usbdevice host:04d9:2013 \
 -usbdevice host:0461:4e22 \
 -usbdevice host:05e3:0608 \
 -usbdevice host:1130:f211 \
 -usbdevice host:18d1:4ee2 \
 -mem-path /hugetlbfs
#ip link del link dev macvtap128

Also this might be the problem but I'm not sure, can anyone here verify:

model name      : AMD Opteron(tm) Processor 6128 HE
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid amd_dcm pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr hw_pstate npt lbrv svm_lock nrip_save pausefilter