Skip to contentSkip to conversation

blkif.h in sparse tree

DISCUSSION Gary Pennington 2 participants 3 messages Feb 19, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

I'm puzzled as to why:

linux-2.6-xen-sparse/include/xen/blkif.h

includes functionality which looks as though it should be common to all OS implementations. It would certainly seem to make more sense if the code in this file was moved to:

xen/include/public/io/blkif.h

or (if there's a good reason to keep it in a separate file...)

xen/include/public/io/blkif_protocol.h

(or whatever name)

Can anyone explain why it's located as it is and, if not, can it be be re-located (and appropriately licensed) under xen/include/public as described in the include/public/COPYING file?

Gary

Signature · 4 lines
Gary Pennington
Solaris Core OS
Sun Microsystems
[email protected]
#1 lore raw
Quoted 6 lines · Gary Pennington

I'm puzzled as to why:

linux-2.6-xen-sparse/include/xen/blkif.h

includes functionality which looks as though it should be common to all OS implementations.

It's just glue, and uses gcc-specific pragmas which are not portable across compilers. We could stick a BSD license string at the top of the header.

-- Keir

#2 lore raw
Quoted 4 lines · Keir Fraser
Quoted 2 lines · Gary Pennington

I'm puzzled as to why:

Quoted 8 lines
Quoted 4 lines

linux-2.6-xen-sparse/include/xen/blkif.h

includes functionality which looks as though it should be common to all OS implementations.

It's just glue, and uses gcc-specific pragmas which are not portable across compilers. We could stick a BSD license string at the top of the header.

The pragmas which aren't portable could be protected by appropriate macros and it would be the responsibility of anyone using non-gcc compilers to provide appropriate support for their environment.

I appreciate that it's not terribly significant, but anyone who needs to provide support for a 32 bit PV guest on a 64 bit host would need code remarkably similar to this and so I don't think it's Linux specific. That's why I suggested re-locating it because it might make life simpler for other developers in the future.

If it's really not a good idea to re-locate it, then I think a BSD license would be an acceptable substitute for my purposes.

Thanks,

Gary

Quoted 3 lines

-- Keir