|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [Qemu-devel] [PATCH 02/10] xen: backend driver core
On 04/08/09 15:17, Anthony Liguori wrote:
I meant the public stuff too. I don't like having extern variables all
over the place.
It would be better to have this in a structure that was passed to all of
the backend drivers that they then passed as a context. This will become
more useful down the road too when we start introducing a common device
model and finer grain locking.
The variables are more global xen state, not device / xenbus state. The
usage is not limited to the backend drivers, the domain builder code
will use them as well. There will never ever be more than one instance
of these. I don't see the point of placing them into a struct and
passing around a pointer.
cheers,
Gerd
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|