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

[win-pv-devel] [PATCH 2/4] Presence or absence of a PCI device determines the filter state...


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Paul Durrant <paul.durrant@xxxxxxxxxx>
  • Date: Wed, 2 Oct 2019 12:24:48 +0100
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=paul.durrant@xxxxxxxxxx; spf=Pass smtp.mailfrom=Paul.Durrant@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Paul Durrant <paul.durrant@xxxxxxxxxx>
  • Delivery-date: Wed, 02 Oct 2019 11:25:09 +0000
  • Ironport-sdr: ufUL9tFPef4tPkewP9JvomPzirKU88F4/N+MnDm31u76jprozXNt0jd/t6yTN0ErXicnb5anfV +gPeHA+2VUmnKY1NAGTRVEezElyY1Ouf8DDrcGu/vN8lMBDZH/ba1HwwgfJhsrk3LaELSkHGIW DdoqsUnQXDWfQD2V97QkaLsJXADVbPEgrlCSBEnamGnDky8reXytDHJ/cmEL4XQrfxP3uS7eEt WMnnxtcMEq39KEeeGXGLRrULKN0u2klKj4wfvWLzUGSrFiGqwfDbkOxSyz2Gv72kCYoV5XM2+q +o8=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

...so no need to call DriverSetFilterState() for any other type.

Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
 src/xenfilt/fdo.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/xenfilt/fdo.c b/src/xenfilt/fdo.c
index b8cf424..9ba3619 100644
--- a/src/xenfilt/fdo.c
+++ b/src/xenfilt/fdo.c
@@ -387,7 +387,8 @@ __FdoSetEnumerated(
 {
     Fdo->Enumerated = TRUE;
 
-    DriverSetFilterState();
+    if (Fdo->Type == XENFILT_EMULATED_OBJECT_TYPE_PCI)
+        DriverSetFilterState();
 }
 
 BOOLEAN
-- 
2.5.3


_______________________________________________
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®.