Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2008 09:20:13 -0600
From:      James Gritton <jamie@gritton.org>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: V_* meta-symbols and locking
Message-ID:  <485927AD.8010204@gritton.org>
In-Reply-To: <200806181619.07026.zec@icir.org>
References:  <48588595.7020709@gritton.org> <200806181619.07026.zec@icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Marko Zec wrote:

 > You are most probably right about the current code not sufficiently
 > protecting the "hostname" global from concurrent access, but I don't
 > see how V_ macroization / virtualization adds or changes anything to
 > this particular issue.

The change is that with the virtual hostname, I want to have the locking
that is currently lacking.  As that locking would be in a jail context,
it doesn't make sense to go use these virtual-variable macros when the
"jailness" of it is explicitly exposed anyway.

 > The same goes for virtualizing the networking
 > state - if there is a locking issue in a newtorking subsystem,
 > virtualization should not make such issues any more or less pronounced. 

I suspect most, perhaps all, of the networking variables will work with
their own locking, especially if the locks themselves are part of a
virtualized structure.

- Jamie



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?485927AD.8010204>