diff options
author | Jan Beulich <jbeulich@suse.com> | 2013-06-12 10:07:48 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-06-12 10:07:48 +0200 |
commit | 613659da9b1755ddf0a291071f6551a0ad25419b (patch) | |
tree | 53532d2cc24671ad507605a339685f56dd7b41e3 /xen/include/public | |
parent | a63c57093b610e8707653fb2320f48e2ad5acbc2 (diff) | |
download | xen-613659da9b1755ddf0a291071f6551a0ad25419b.tar.gz xen-613659da9b1755ddf0a291071f6551a0ad25419b.tar.bz2 xen-613659da9b1755ddf0a291071f6551a0ad25419b.zip |
io/ring.h: drop unused and broken *_RING_ATTACH() macros
Initializing r*_prod_pvt and r*_cons from independent shared ring
fields is broken, as other macros in this header rely on them being
coupled. Furthermore using the backend variant would also imply a
security vulnerability.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/public')
-rw-r--r-- | xen/include/public/io/ring.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/xen/include/public/io/ring.h b/xen/include/public/io/ring.h index bdfb998cec..73e13d7ae4 100644 --- a/xen/include/public/io/ring.h +++ b/xen/include/public/io/ring.h @@ -174,21 +174,6 @@ typedef struct __name##_back_ring __name##_back_ring_t (_r)->sring = (_s); \ } while (0) -/* Initialize to existing shared indexes -- for recovery */ -#define FRONT_RING_ATTACH(_r, _s, __size) do { \ - (_r)->sring = (_s); \ - (_r)->req_prod_pvt = (_s)->req_prod; \ - (_r)->rsp_cons = (_s)->rsp_prod; \ - (_r)->nr_ents = __RING_SIZE(_s, __size); \ -} while (0) - -#define BACK_RING_ATTACH(_r, _s, __size) do { \ - (_r)->sring = (_s); \ - (_r)->rsp_prod_pvt = (_s)->rsp_prod; \ - (_r)->req_cons = (_s)->req_prod; \ - (_r)->nr_ents = __RING_SIZE(_s, __size); \ -} while (0) - /* How big is this ring? */ #define RING_SIZE(_r) \ ((_r)->nr_ents) |