From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhvST-0000N5-AK for qemu-devel@nongnu.org; Fri, 02 Oct 2015 04:12:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZhvSO-0006tk-8r for qemu-devel@nongnu.org; Fri, 02 Oct 2015 04:12:49 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:34800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhvSO-0006tZ-26 for qemu-devel@nongnu.org; Fri, 02 Oct 2015 04:12:44 -0400 Received: by wicfx3 with SMTP id fx3so22605733wic.1 for ; Fri, 02 Oct 2015 01:12:43 -0700 (PDT) Sender: Paolo Bonzini References: <87E01859-7A3A-4EB5-A1B5-6D8386C2D3AF@gmail.com> <20151001132318.GD10671@stefanha-thinkpad.redhat.com> <4D6690A2-0880-42F1-82E3-1098EB82A373@gmail.com> From: Paolo Bonzini Message-ID: <560E3C79.8060707@redhat.com> Date: Fri, 2 Oct 2015 10:12:41 +0200 MIME-Version: 1.0 In-Reply-To: <4D6690A2-0880-42F1-82E3-1098EB82A373@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] About the sd card reader List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Programmingkid , qemu-devel 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