Received: from eggs.gnu.org ([2001:4830:134:3::10]:44310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAR0T-0005E2-BB for qemu-devel@nongnu.org; Mon, 03 Feb 2014 16:24:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAR0J-0007l5-Au for qemu-devel@nongnu.org; Mon, 03 Feb 2014 16:24:41 -0500 Received: from mail-qa0-x22e.google.com ([2607:f8b0:400d:c00::22e]:62682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAR0J-0007ja-6f for qemu-devel@nongnu.org; Mon, 03 Feb 2014 16:24:31 -0500 Received: by mail-qa0-f46.google.com with SMTP id ii20so10713624qab.19 for ; Mon, 03 Feb 2014 13:24:30 -0800 (PST) Date: Mon, 3 Feb 2014 16:23:34 -0500 From: "Gabriel L. Somlo" Message-ID: <20140203212333.GO29329@ERROL.INI.CMU.EDU> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] osx pci vs. 99fd437dee468609de8218f0eb3b16621fb6a9c9 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: agraf@suse.de, qemu-devel@nongnu.org Michael, Prior to commit 99fd437dee468609de8218f0eb3b16621fb6a9c9 (enable hotplug for pci bridges), PCI cards used to show up in the "device tree" of OS X (System Information). E.g., on MountainLion I have: Hardware -> PCI Cards: Card Type Driver Installed Slot *ethernet Ethernet Controller Yes PCI Slot 2 pci8086,2934 USB UHC Yes PCI Slot 29 ethernet: Type: Ethernet Controller Driver Installed: Yes MSI: No Bus: PCI Slot PCI Slot 2 Vendor ID: 0x8086 Device ID: 0x100e Subsystem Vendor ID: 0x1af4 Subsystem ID: 0x1100 Revision ID: 0x0003 Hardware -> Ethernet Cards ethernet: Type: Ethernet Controller Bus: PCI Slot PCI Slot 2 Vendor ID: 0x8086 Device ID: 0x100e Subsystem Vendor ID: 0x1af4 Subsystem ID: 0x1100 Revision ID: 0x0003 BSD name: en0 Kext name: AppleIntel8254XEthernet.kext Location: /System/Library/Extensions/... Version: 3.1.1b1 After commit 99fd437dee468609de8218f0eb3b16621fb6a9c9, I get: Hardware -> PCI Cards: This computer doesn't contain any PCI cards. If you installed PCI cards, make sure they're properly installed. Hardware -> Ethernet Cards ethernet: Type: Ethernet Controller Bus: PCI Vendor ID: 0x8086 Device ID: 0x100e Subsystem Vendor ID: 0x1af4 Subsystem ID: 0x1100 Revision ID: 0x0003 BSD name: en0 Kext name: AppleIntel8254XEthernet.kext Location: /System/Library/Extensions/... Version: 3.1.1b1 Ethernet still works, but it's not showing up on the PCI bus, and it no longer thinks it's plugged in to slot #2, as it used to before the change. My command line is bin/qemu-system-x86_64 -enable-kvm -m 2048 -cpu core2duo -M q35 \ -device isa-applesmc,osk="..." \ -usb -device usb-kbd -device usb-mouse \ -smbios file=./dmidecode.bin -kernel ./chameleon_boot \ -device ide-drive,bus=ide.2,drive=MacHDD \ -drive id=MacHDD,if=none,snapshot=on,file=./mac_10.8.img \ where "dmidecode.bin" is a custom SMBIOS table, "chameleon_boot" is the stage-2 bootloader component of Chameleon, and on the kernel side I have the irq-polarity patch we're currently talking about in a separate thread (http://lists.nongnu.org/archive/html/qemu-devel/2014-01/msg04252.html) and also the monitor==mwait==NOP patch. Any ideas or thoughts appreciated ! Thanks much, --Gabriel