Received: from eggs.gnu.org ([2001:4830:134:3::10]:37037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0ujo-00049s-LE for qemu-devel@nongnu.org; Wed, 08 Jan 2014 10:08:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0ujc-0000ok-Sm for qemu-devel@nongnu.org; Wed, 08 Jan 2014 10:08:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0ujc-0000oS-KT for qemu-devel@nongnu.org; Wed, 08 Jan 2014 10:07:56 -0500 Content-Type: multipart/alternative; boundary="Apple-Mail=_CDB364A1-7888-49BC-9862-3667D806902E" Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) From: Yan Vugenfirer In-Reply-To: <52CC1310.7070406@redhat.com> Date: Wed, 8 Jan 2014 17:07:33 +0200 Message-Id: References: <1388934290-27700-1-git-send-email-mmishael@redhat.com> <52CC1310.7070406@redhat.com> Subject: Re: [Qemu-devel] [PATCH] Docs: Introduce multiport serial support in qemupciserial.inf List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel list , Ronen Hod , Gerd Hoffmann , Anthony Liguori , Dmitry Fleytman , Miki Mishael --Apple-Mail=_CDB364A1-7888-49BC-9862-3667D806902E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Jan 7, 2014, at 4:45 PM, Paolo Bonzini wrote: > Il 05/01/2014 16:04, Miki Mishael ha scritto: >> Support for pci-serial-2x and pci-serial-4x added to inf file. >> Standard Windows driver mf.sys used to split single function >> device into per-port nodes. >>=20 >> Signed-off-by: Miki Mishael >> Signed-off-by: Dmitry Fleytman >> --- >> docs/qemupciserial.inf | 227 = ++++++++++++++++++++++++++++++------------------- >> 1 file changed, 140 insertions(+), 87 deletions(-) >>=20 >> diff --git a/docs/qemupciserial.inf b/docs/qemupciserial.inf >> index 3474310..c6988b9 100644 >> --- a/docs/qemupciserial.inf >> +++ b/docs/qemupciserial.inf >> @@ -11,99 +11,152 @@ >> ; (Com+Lpt)" from the list. Click "Have a disk". Select this file. >> ; Procedure may vary a bit depending on the windows version. >>=20 >> -; FIXME: This file covers the single port version only. >> +; This file covers all options: pci-serial, pci-serial-2x, = pci-serial-4x >> +; for both 32 and 64 bit platforms. >>=20 >> [Version] >> -Signature=3D"$CHICAGO$" >> -Class=3DPorts >> -ClassGuid=3D{4D36E978-E325-11CE-BFC1-08002BE10318} >> +Signature=3D"$Windows NT$" >> +Class=3DMultiFunction >> +ClassGUID=3D{4d36e971-e325-11ce-bfc1-08002be10318} >> Provider=3D%QEMU% >> -DriverVer=3D09/24/2012,1.3.0 >> - >> -[SourceDisksNames] >> -3426=3Dwindows cd >> - >> -[SourceDisksFiles] >> -serial.sys =3D 3426 >> -serenum.sys =3D 3426 >> - >> -[DestinationDirs] >> -DefaultDestDir =3D 11 ;LDID_SYS >> -ComPort.NT.Copy =3D 12 ;DIRID_DRIVERS >> -SerialEnumerator.NT.Copy=3D12 ;DIRID_DRIVERS >> - >> -; Drivers >> -;---------------------------------------------------------- >> +DriverVer=3D12/29/2013,1.3.0 >> +[ControlFlags] >> +ExcludeFromSelect=3D* >> [Manufacturer] >> -%QEMU%=3DQEMU,NTx86 >> +%QEMU%=3DQEMU,NTx86,NTAMD64 >>=20 >> [QEMU.NTx86] >> -%QEMU-PCI_SERIAL.DeviceDesc% =3D ComPort, = "PCI\VEN_1b36&DEV_0002&CC_0700" >> +%QEMU-PCI_SERIAL_1_PORT%=3DComPort_inst1, = PCI\VEN_1B36&DEV_0002&SUBSYS_11001AF4&REV_01 >> +%QEMU-PCI_SERIAL_2_PORT%=3DComPort_inst2, = PCI\VEN_1B36&DEV_0003&SUBSYS_11001AF4&REV_01 >> +%QEMU-PCI_SERIAL_4_PORT%=3DComPort_inst4, = PCI\VEN_1B36&DEV_0004&SUBSYS_11001AF4&REV_01 >=20 > I think checking the subsystem is not necessary (and I think = downstreams > could legitimately change it). Can you check CC and REV but not = SUBSYS? PNP ID can be reduced to vendor and device ID only, for example: = PCI\VEN_1B36&DEV_0002 . But in this case we cannot check revision. Yan. >=20 > Otherwise I cannot pretend I know what's going on, but it makes sense. = :) >=20 > Paolo --Apple-Mail=_CDB364A1-7888-49BC-9862-3667D806902E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On Jan 7, 2014, at 4:45 PM, Paolo = Bonzini <pbonzini@redhat.com> = wrote:

Il 05/01/2014 16:04, Miki Mishael = ha scritto:
Support for pci-serial-2x and = pci-serial-4x added to inf file.
Standard Windows driver mf.sys used = to split single function
device into per-port = nodes.

Signed-off-by: Miki Mishael <mmishael@redhat.com>
Signed-= off-by: Dmitry Fleytman <dfleytma@redhat.com>
---
= docs/qemupciserial.inf | 227 = ++++++++++++++++++++++++++++++-------------------
1 file changed, 140 = insertions(+), 87 deletions(-)

diff --git = a/docs/qemupciserial.inf b/docs/qemupciserial.inf
index = 3474310..c6988b9 100644
--- a/docs/qemupciserial.inf
+++ = b/docs/qemupciserial.inf
@@ -11,99 +11,152 @@
; (Com+Lpt)" from = the list.  Click "Have a disk".  Select this file.
; = Procedure may vary a bit depending on the windows version.

-; = FIXME: This file covers the single port version only.
+; This file = covers all options: pci-serial, pci-serial-2x, pci-serial-4x
+; for = both 32 and 64 bit = platforms.

[Version]
-Signature=3D"$CHICAGO$"
-Class=3DPorts<= br>-ClassGuid=3D{4D36E978-E325-11CE-BFC1-08002BE10318}
+Signature=3D"$W= indows = NT$"
+Class=3DMultiFunction
+ClassGUID=3D{4d36e971-e325-11ce-bfc1-08= 002be10318}
Provider=3D%QEMU%
-DriverVer=3D09/24/2012,1.3.0
-
= -[SourceDisksNames]
-3426=3Dwindows = cd
-
-[SourceDisksFiles]
-serial.sys  =3D = 3426
-serenum.sys  =3D = 3426
-
-[DestinationDirs]
-DefaultDestDir  =3D 11 =        ;LDID_SYS
-ComPort.NT.Copy = =3D 12 =        ;DIRID_DRIVERS
-SerialEnumera= tor.NT.Copy=3D12 ;DIRID_DRIVERS
-
-; = Drivers
-;----------------------------------------------------------+DriverVer=3D12/29/2013,1.3.0
+[ControlFlags]
+ExcludeFromSelect=3D= *
[Manufacturer]
-%QEMU%=3DQEMU,NTx86
+%QEMU%=3DQEMU,NTx86,NTAMD6= 4

[QEMU.NTx86]
-%QEMU-PCI_SERIAL.DeviceDesc% =3D ComPort, = "PCI\VEN_1b36&DEV_0002&CC_0700"
+%QEMU-PCI_SERIAL_1_PORT%=3DCom= Port_inst1, = PCI\VEN_1B36&DEV_0002&SUBSYS_11001AF4&REV_01
+%QEMU-PCI_SER= IAL_2_PORT%=3DComPort_inst2, = PCI\VEN_1B36&DEV_0003&SUBSYS_11001AF4&REV_01
+%QEMU-PCI_SER= IAL_4_PORT%=3DComPort_inst4, = PCI\VEN_1B36&DEV_0004&SUBSYS_11001AF4&REV_01
<= br>I think checking the subsystem is not necessary (and I think = downstreams
could legitimately change it).  Can you check CC and = REV but not SUBSYS?

PNP ID can be = reduced to vendor and device ID only, for example: = PCI\VEN_1B36&DEV_0002 . But in this case we cannot check = revision.

Yan.


Otherwise I cannot pretend I = know what's going on, but it makes sense. = :)

Paolo

= --Apple-Mail=_CDB364A1-7888-49BC-9862-3667D806902E--