|
Description
|
Brand specific data structure needed perzone. One application for this data structure for lx zones would be to store the version of the linux kernel we are emulating. I plan to implement this data structure by adding a void *zone_brand_data to zone_t to point to the data structure. I also plan to add two new hooks to brand_ops, b_createbrand, and b_freebrand, which brands could then use to initialize and free zone_brand_data.
the brandz framework allows for brand specific zone properties but
doesn't provide any place for brands to save these properties when
they are set. one option would be for brands to use zsd, but zsd
is slow isn't a good option if any of this per-zone data needs to
be in a performance critical path. a much better solution is to
simply provide brands with an abstract pointer in the zones structure
that they can use to maintain private per-zone data. this would be
similar to the existing per-proc and per-lwp brand private data
pointers that we already have.
|