[prev in list] [next in list] [prev in thread] [next in thread] 

List:       win-pv-devel
Subject:    [win-pv-devel] [PATCH 2/4] Presence or absence of a PCI device determines the filter state...
From:       Paul Durrant <paul.durrant () citrix ! com>
Date:       2019-10-02 11:24:48
Message-ID: 1570015490-844-3-git-send-email-paul.durrant () citrix ! com
[Download RAW message or body]

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

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
---
 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@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/win-pv-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic