]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
ioreq_broadcast(): accept partial broadcast success
authorPer Bilse <per.bilse@citrix.com>
Wed, 7 Dec 2022 11:17:30 +0000 (12:17 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Dec 2022 11:17:30 +0000 (12:17 +0100)
Avoid incorrectly triggering an error when a broadcast buffered ioreq
is not handled by all registered clients, as long as the failure is
strictly because the client doesn't handle buffered ioreqs.

Signed-off-by: Per Bilse <per.bilse@citrix.com>
Reviewed-by: Paul Durrant <paul@xen.org>
xen/common/ioreq.c

index 4617aef29b7e492044fac6008993367d0627b2d0..ecb8f545e1c4c158272c9cd48090bb62ef88a567 100644 (file)
@@ -1317,7 +1317,8 @@ unsigned int ioreq_broadcast(ioreq_t *p, bool buffered)
 
     FOR_EACH_IOREQ_SERVER(d, id, s)
     {
-        if ( !s->enabled )
+        if ( !s->enabled ||
+             (buffered && s->bufioreq_handling == HVM_IOREQSRV_BUFIOREQ_OFF) )
             continue;
 
         if ( ioreq_send(s, p, buffered) == IOREQ_STATUS_UNHANDLED )