On 01/10/2015 18:27, Programmingkid wrote: > > > I was looking at the commit history for sd.c and noticed your patch. > > > Would you know how to make the SD card reader work for a guest like > > > Windows, Linux, or Mac OS X? I'm trying to use this device on > > > qemu-system-ppc and qemu-system-i386. Any help would be great. > > > > sd.c is the core SD card emulation code. It's not a complete device > > itself, you need a host controller interface like sdhci.c. > > > > The sdhci-pci device might work, if you can tell a Windows/Mac/etc SDHCI > > PCI driver to accept the Red Hat 1fa4:0007 PCI ID. > > Would this device work if I installed Red Hat Linux in qemu-system-i386?
The driver should be entirely generic, it should depend on the PCI class rather than the PCI id. The Linux driver (not just RH or Fedora---it's the same for all distros) is that way, but on Windows it's possible that manufacturers customize the driver to only match a particular vendor or device id. A quick Googling suggests that you want the "SDA Standard Compliant SD Host Controller" Windows driver. Paolo