summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/105/device/1509336
blob: 6a69e6bf740743738f4968c568a6275d96acf664 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
device: 0.792
other: 0.789
instruction: 0.787
vnc: 0.781
assembly: 0.754
boot: 0.746
KVM: 0.731
network: 0.723
semantic: 0.719
graphic: 0.700
socket: 0.681
mistranslation: 0.380

USB passthru  not work with  Mac OS X  El Capitan

QEMU emulator version 2.4.50 with kernel kvm module from linux kernel 3.16.0 or 4.2.3

Since upgrading from Yosemite to El Capitan - USB passthru does not work. Note USB passthru worked perfectly with  Maverick and Yosemite. I attempt to use different USB hosts. I found a patch for widows xp that had similar problem the patch was applied in 2012. Note NO problems with USB passthru with windows or linux clients. If it matters the devices that I am trying to passthru USB are smartcard reader and webcam.  The devices are present in El Capitan but do not function. 

These are the massages from loading the VM (El Capitan). The first two lines are from the clover bootloader. The ehci warnings are generated when loading Mac Os X El Capitan.

QEMU 2.4.50 monitor - type 'help' for more information
### These messages below started when  using the clover bootloader and occur when loading El Capitan, Maverick or Yosemite. 
### The bootloader is Clover  version 3292
(qemu) ehci: PERIODIC list base register set while periodic schedule
      is enabled and HC is enabled
ehci: ASYNC list address register set while async schedule
      is enabled and HC is enabled

#### Below are errors when the guest host (El Capitan) is loading from qemu monitor.  The messages below only occur when loading El Capitan. 
ehci warning: guest requested more bytes than allowed
processing error - resetting ehci HC
ehci warning: guest requested more bytes than allowed
processing error - resetting ehci HC
ehci warning: guest requested more bytes than allowed
processing error - resetting ehci HC

This is the errors from the guest os - Mac Os X - El Capitan
000000.580358 AppleUSBLegacyRoot@: AppleUSBLegacyRoot::init: enabling legacy matching
000001.803455 AppleUSBEHCIPCI@fd000000: AppleUSBEHCI::WaitForAsyncSchedule: USBC
MD (0x00080020) and USBSTS (0x00001000) did not synchronize

the following qemu command has worked flawlessly with Yosemite and Maverick. 
qemu-system-x86_64 -enable-kvm -m 4096 -cpu core2duo -machine q35 \
-bios /usr/local/share/qemu/bios.bin \
-name "El Capitan" \
-mem-path /hugetlbfs \
-rtc base=utc,clock=vm,driftfix=slew \
-balloon none \
-parallel none \
-smp 4,sockets=1,cores=2,threads=2 \
-boot menu=on \
-usb -device usb-kbd -device usb-mouse \
-device usb-host,vendorid=0x0455,productid=0x0777 \
-vga std \
-monitor stdio \
-device isa-applesmc,osk="youknowwhatitis" \
-smbios type=2 \
-device ich9-intel-hda,bus=pcie.0,addr=1b.0,id=sound0 \
-device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 \
-device e1000-82545em,netdev=hub0port0,id=mac_vnet0,mac=62:64:44:34:64:54 \
-netdev bridge,id=hub0port0,br=br0,helper=/usr/local/libexec/qemu-bridge-helper \
-device ide-drive,bus=ide.0,drive=elcapitan \
-drive id=elcapitan,format=qcow2,if=none,file=./iElCapitan.qcow2 

If anything else I can do to debug the problem please let me know.

My problem was solved by using the UEFI boot loader and I followed the instructions at the following links:

https://github.com/tianocore/tianocore.github.io/wiki/How-to-build-OVMF

http://www.linux-kvm.org/downloads/lersek/ovmf-whitepaper-c770f8c.txt

Also remove the "-bios"  option above and added the following options. 

-drive if=pflash,format=raw,readonly,file=OVMF_CODE.fd   \
-drive if=pflash,format=raw,file=OVMF_VARS.fd \

Also changed clover to boot with UEFI only. Anyway that has used clover  will know how to change this option.