[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[win-pv-devel] [PATCH 1/2] Continue checking for emulated type if not PCI or IDE


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Owen Smith <owen.smith@xxxxxxxxxx>
  • Date: Wed, 5 Feb 2020 16:52:36 +0000
  • Authentication-results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=owen.smith@xxxxxxxxxx; spf=Pass smtp.mailfrom=owen.smith@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Owen Smith <owen.smith@xxxxxxxxxx>
  • Delivery-date: Wed, 05 Feb 2020 16:53:19 +0000
  • Ironport-sdr: RRGBEYRUqrgmf/0j8RG3NuUOL1/jofs8yIcGdJEx45Zb2pCSloAvcEP9+Y7vi8A0bkZwK1iCHh hrwR+HZhDQG1dnUMg8KwxOC08sf3uJAS10Zcnb+jqDm/v4l2iLe1UBQHccrsEUN3E77gcN+luA ZV3PGsHtpwgPNoRAstJ56eRcTn86RUE80lnjE2Gf3FDr8Tfbyu+kcBbAeytKQVtJ026wnRh2ik wTv8iVtivLKyZwKD89mNHVisd/fDOXtPZybJHCrmxnP13bV0zU6zUQWt3xn4Rh6zCGCTUTqi2f +oM=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

When determining the XENFILT_EMULATED_OBJECT_TYPE, keep trying all
supplied HardwareIDs/CompatibleIDs until an exact match is made. If an
early match is made that is not a valid type, ignore the match and
continue checking for either "PCI" or "IDE".
This covers situations where XenFilt's Parameters key contains stale
strings from previous (v8.x) versions, and fixes an upgrade failure when
upgrading v8.x to v9.x

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
 src/xenfilt/driver.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/xenfilt/driver.c b/src/xenfilt/driver.c
index 0167c21..53df169 100644
--- a/src/xenfilt/driver.c
+++ b/src/xenfilt/driver.c
@@ -760,7 +760,8 @@ DriverGetEmulatedType(
                 Type = XENFILT_EMULATED_OBJECT_TYPE_IDE;
 
             RegistryFreeSzValue(Ansi);
-            break;
+            if (Type != XENFILT_EMULATED_OBJECT_TYPE_UNKNOWN)
+                break;
         } else {
             Trace("NO MATCH: %s\n", &Id[Index]);
         }
-- 
2.16.2.windows.1


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/win-pv-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.