From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJNga-0008MZ-JN for qemu-devel@nongnu.org; Wed, 13 Jan 2016 10:50:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJNgZ-0003PC-Jq for qemu-devel@nongnu.org; Wed, 13 Jan 2016 10:50:12 -0500 Date: Wed, 13 Jan 2016 18:49:45 +0300 From: Roman Kagan Message-ID: <20160113154944.GF3875@rkaganb.sw.ru> References: <1451506316-31975-1-git-send-email-rkagan@virtuozzo.com> <569660E2.3050608@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <569660E2.3050608@redhat.com> Subject: Re: [Qemu-devel] [PATCH v5 0/6] i386: expose floppy-related objects in SSDT List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek Cc: Kevin Wolf , Eduardo Habkost , qemu-block@nongnu.org, "Michael S. Tsirkin" , qemu-stable@nongnu.org, qemu-devel@nongnu.org, Igor Mammedov , Paolo Bonzini , John Snow , "Dr. David Alan Gilbert (git)" , Richard Henderson On Wed, Jan 13, 2016 at 03:36:18PM +0100, Laszlo Ersek wrote: > On 12/30/15 21:11, Roman Kagan wrote: > > Windows on UEFI systems is only capable of detecting the presence and > > the type of floppy drives via corresponding ACPI objects. > > I'm late to the party, but please allow me a question: > > how did you figure out that UEFI Windows requires this? > > In general, what the ACPI specification says is at best a "guideline" > for Windows. So how did you prove this was a requirement for Windows? Well, my statement above that Windows on UEFI can detect floppies *only* via ACPI is probably a bit stronger than I can actually prove but - Windows on OVMF didn't see floppies before the patch, while Linux did (by querying CMOS) - a number of sources on the internet hinted that Windows needed ACPI assistance for that, e.g.: https://www.reactos.org/wiki/UEFI#Floppy https://social.technet.microsoft.com/Forums/windows/en-US/f17db175-d146-4518-b2e9-c12a15031222/legacy-floppy-compatibility-with-uefi-boot?forum=w7itprohardware https://social.technet.microsoft.com/Forums/windows/en-US/e91ec27b-0c2d-44a3-b949-e77fa810a4c0/windows-7-uefi-fdd-how-to?forum=w7itprohardware - the links mentioned the need in _FDE object but indicated it only allowed for successful enumeration of floppies, not the actual access; I proved that experimentally - the ACPI spec stated that _FDE went in concert with _FDI so I tried it and it worked out Voila. Besides, I later discovered that a similar research had been carried out for Parallels proprietary hypervisor, with a similar outcome. Roman.