Skip to contentSkip to conversation

extending blkif_request_t

DISCUSSION Deepak Manohar 3 participants 3 messages Mar 19, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I am sorry if this was asked earlier, but I couldnt find it.

If I want to pass another field in the structure blkif_request_t do I
simply add it to xen/include/public/io/blkif.h ?

After doing this will the backend and the frontend be able to access
this field. Thanks.

Deepak

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#1 lore raw

If you need to add a new field to blkif_request_t, you might have to be very careful, because the size of blkif_request_t and the blkif_ring_t are carefully calibrated. If you add a new field, make it sure that the size of blkif_ring_t will not exceed PAGE_SIZE. You may also change blkif_ring_t to hold more request. That may take some more work.

Good luck,
Xin

Quoted 13 lines · Deepak Manohar

Hi,

I am sorry if this was asked earlier, but I couldnt find it.

If I want to pass another field in the structure blkif_request_t do I
simply add it to xen/include/public/io/blkif.h ?

After doing this will the backend and the frontend be able to access
this field. Thanks.

Deepak

Quoted 10 lines

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#2 lore raw
Quoted 5 lines

If you need to add a new field to blkif_request_t, you might have to be very careful, because the size of blkif_request_t and the blkif_ring_t are carefully calibrated. If you add a new field, make it sure that the size of blkif_ring_t will not exceed PAGE_SIZE. You may also change blkif_ring_t to hold more request. That may take some more work.

Under the unstable tree it'll automatically sort itself out, since the blkif drivers use the magic ring macros in xen/include/public/io/ring.h - in that tree, the netif drivers are the only ones that don't use these ring macros at the moment.

Under the 2.0.x tree, you'll still have to sort out ring sizing issues manually.

When playing with these structures, don't forget to recompile both front and backend kernels, or things will get very confused!

Cheers,
Mark

Quoted 27 lines

Good luck,
Xin

Quoted 13 lines · Deepak Manohar

Hi,

I am sorry if this was asked earlier, but I couldnt find it.

If I want to pass another field in the structure blkif_request_t do I
simply add it to xen/include/public/io/blkif.h ?

After doing this will the backend and the frontend be able to access
this field. Thanks.

Deepak

Quoted 9 lines

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

Quoted 9 lines

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click