From: Christopher Clark Date: Wed, 6 Feb 2019 08:56:00 +0000 (+0100) Subject: xsm, argo: notify: don't describe rings that cannot be sent to X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2be7f17e4b9884947888e442ef0a445d5523d15d;p=people%2Fpauldu%2Fxen.git xsm, argo: notify: don't describe rings that cannot be sent to Signed-off-by: Christopher Clark Acked-by: Daniel De Graaf Tested-by: Chris Patterson Release-acked-by: Juergen Gross --- diff --git a/xen/common/argo.c b/xen/common/argo.c index 7523f32af5..13052b9239 100644 --- a/xen/common/argo.c +++ b/xen/common/argo.c @@ -1342,6 +1342,17 @@ fill_ring_data(const struct domain *currd, if ( !dst_d || !dst_d->argo ) goto out; + /* + * Don't supply information about rings that a guest is not + * allowed to send to. + */ + ret = xsm_argo_send(currd, dst_d); + if ( ret ) + { + put_domain(dst_d); + return ret; + } + read_lock(&dst_d->argo->rings_L2_rwlock); ring_info = find_ring_info_by_match(dst_d, ent.ring.aport,