]> xenbits.xensource.com Git - xen.git/commitdiff
ioreq_broadcast(): accept partial broadcast success
authorPer Bilse <per.bilse@citrix.com>
Tue, 20 Dec 2022 12:50:47 +0000 (13:50 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Dec 2022 12:50:47 +0000 (13:50 +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>
master commit: a44734df6c24fadbdb001f051cc5580c467caf7d
master date: 2022-12-07 12:17:30 +0100

xen/common/ioreq.c

index 42414b750befea9472585f655c7e6c1b33cb3231..2a8d8de2d576a65c869d1a495d9cb2dd3a11bc85 100644 (file)
@@ -1322,7 +1322,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 )