struct blkif_request_segment_aligned
Roger,
so you introduced this, yet looking in a little closer detail I can't seem to understand why: struct blkif_request_segment is identical in layout, the sole difference between the two is that in the new structure the padding field has a name, whereas in the old one it doesn't.
I'd really like to get rid of this redundant type again, unless there's a reason for it to be there which I'm overlooking.
Jan
Quoted 6 lines · Jan Beulich
Roger,
so you introduced this, yet looking in a little closer detail I can't seem to understand why: struct
blkif_request_segmentis identical in layout, the sole difference between the two is that in the new structure the padding field has a name, whereas in the old one it doesn't.
Is this something to do with Linux' use of __attribute__((packed)) once again causing confusion? (I really hope not API deviation...)
Quoted 10 lines
I'd really like to get rid of this redundant type again, unless there's a reason for it to be there which I'm overlooking.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 11 lines
Quoted 1 line
Quoted 1 line · Ian Campbell
Quoted 6 lines · Jan Beulich
Roger,
so you introduced this, yet looking in a little closer detail I can't seem to understand why: struct
blkif_request_segmentis identical in layout, the sole difference between the two is that in the new structure the padding field has a name, whereas in the old one it doesn't.Is this something to do with Linux' use of __attribute__((packed)) once again causing confusion? (I really hope not API deviation...)
Yes, I think it has to do with Linux'es way of defining these
structures: My assumption is that the embedded (but not such attributed) definition of struct blkif_request_segment inside struct struct blkif_request_rw was assumed to also be packed (which it isn't, or else upstream Linux front-/backends wouldn't work with other back-/frontends), thus apparently making it necessary to have an "aligned" (i.e. un-packed) variant thereof.
Jan
Quoted 10 lines
Quoted 10 lines
I'd really like to get rid of this redundant type again, unless there's a reason for it to be there which I'm overlooking.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 12 lines · Jan Beulich
Quoted 11 lines
Quoted 1 line
Quoted 1 line · Ian Campbell
Quoted 6 lines · Jan Beulich
Roger,
so you introduced this, yet looking in a little closer detail I can't seem to understand why: struct
blkif_request_segmentis identical in layout, the sole difference between the two is that in the new structure the padding field has a name, whereas in the old one it doesn't.Is this something to do with Linux' use of __attribute__((packed)) once again causing confusion? (I really hope not API deviation...)
Quoted 7 lines
Yes, I think it has to do with Linux'es way of defining these
structures: My assumption is that the embedded (but not such attributed) definition of structblkif_request_segmentinside struct structblkif_request_rwwas assumed to also be packed (which it isn't, or else upstream Linux front-/backends wouldn't work with other back-/frontends), thus apparently making it necessary to have an "aligned" (i.e. un-packed) variant thereof.
Yes, this is my fault for wrongly assuming struct blkif_request_segment inside struct blkif_request_rw was also packed, which it is not (or else it would break with non Linux backends). Thanks for sending the Xen side patch, I will take care of the Linux side if it's fine with you.
Roger.
Quoted 22 lines
Quoted 1 line
Quoted 1 line · Roger Pau Monné
Quoted 12 lines · Jan Beulich
Quoted 11 lines
Quoted 1 line
Quoted 1 line · Ian Campbell
Quoted 6 lines · Jan Beulich
Roger,
so you introduced this, yet looking in a little closer detail I can't seem to understand why: struct
blkif_request_segmentis identical in layout, the sole difference between the two is that in the new structure the padding field has a name, whereas in the old one it doesn't.Is this something to do with Linux' use of __attribute__((packed)) once again causing confusion? (I really hope not API deviation...)
Quoted 7 lines
Yes, I think it has to do with Linux'es way of defining these
structures: My assumption is that the embedded (but not such attributed) definition of structblkif_request_segmentinside struct structblkif_request_rwwas assumed to also be packed (which it isn't, or else upstream Linux front-/backends wouldn't work with other back-/frontends), thus apparently making it necessary to have an "aligned" (i.e. un-packed) variant thereof.
Quoted 4 lines
Yes, this is my fault for wrongly assuming struct
blkif_request_segmentinside structblkif_request_rwwas also packed, which it is not (or else it would break with non Linux backends). Thanks for sending the Xen side patch, I will take care of the Linux side if it's fine with you.
Please do.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel