From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW38Z-0005px-5G for qemu-devel@nongnu.org; Wed, 17 Feb 2016 09:31:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aW38V-0008Pl-Vk for qemu-devel@nongnu.org; Wed, 17 Feb 2016 09:31:27 -0500 Received: from mx2.parallels.com ([199.115.105.18]:49620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW38V-0008On-QP for qemu-devel@nongnu.org; Wed, 17 Feb 2016 09:31:23 -0500 Date: Wed, 17 Feb 2016 17:31:03 +0300 From: Roman Kagan Message-ID: <20160217143102.GG2747@rkaganb.sw.ru> References: <1454612376-7072-1-git-send-email-mst@redhat.com> <1454612376-7072-49-git-send-email-mst@redhat.com> <20160205192507.41fc6024@nial.brq.redhat.com> <20160208131443.GC6420@rkaganb.sw.ru> <56B8F89F.3090603@redhat.com> <20160209155249.GA13787@rkaganb.sw.ru> <56BA1229.8090809@redhat.com> <56BA319C.9010505@redhat.com> <20160213172653.GA9029@morn.lan> <20160214165300-mutt-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20160214165300-mutt-send-email-mst@redhat.com> Subject: Re: [Qemu-devel] [PULL 48/49] i386: populate floppy drive information in DSDT List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Peter Maydell , Eduardo Habkost , John Snow , qemu-devel@nongnu.org, Kevin O'Connor , Igor Mammedov , Paolo Bonzini , Laszlo Ersek , Richard Henderson On Sun, Feb 14, 2016 at 05:02:14PM +0200, Michael S. Tsirkin wrote: > On Sat, Feb 13, 2016 at 12:26:53PM -0500, Kevin O'Connor wrote: > > On Tue, Feb 09, 2016 at 07:36:12PM +0100, Laszlo Ersek wrote: > > > In my opinion, the real mess in this case is in the ACPI spec itself. If > > > you re-read the _FDI control method's description, the Package that it > > > returns contains *dynamic* geometry data, about the *disk* (not *drive*): > > > > > > - Maximum Cylinder Number // Integer (WORD) > > > - Maximum Sector Number // Integer (WORD) > > > - Maximum Head Number // Integer (WORD) > > > > FWIW, that's not how I read the ACPI specification. I read it as > > saying that the information should be filled with the maximum number > > of CHS that the drive can support. So, even if a smaller disk happens > > to be in the drive the maximum the drive supports would not change. > > I agree. It says: > This object returns information about a floppy disk drive. This > information is the same as > that returned by the INT 13 Function 08H on Intel Architecture PCs. > > So disk drive, not disk information. > > And FWIW I have an old "the undocumented PC" book which says > this about int 13h function 8 (read diskette drive parameters): > > "Remember this data is *not* the limits of the media in the drive, > but the maximum capability of the specified drive". Thanks for the info, I've re-implemented the patchset according to it and Windows guests (w2k12, w10) seem to be happy with it, including dynamically (re-)inserting the "diskette" of compatible size. I'll submit the patches shortly. Thanks, Roman.