From: "Mike D. Day" Subject: Re: xsm: Consolidate xsm processing within domain control hypercall. Date: Tue, 4 Dec 2007 16:59:02 -0500 Message-ID: <20071204215902.GD23369@silverwood.ncultra.org> References: <20071204214635.GB23369@silverwood.ncultra.org> Reply-To: ncmike@us.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "George S. Coker, II" Cc: xen-devel , Alex Williamson List-Id: xen-devel@lists.xenproject.org On 04/12/07 16:54 -0500, George S. Coker, II wrote: > > > > >> 2) This will also impose on the security modules the responsibility to > >> acquire and hold locks on hypervisor resources. It would seem dangerous to > >> give modules this responsibility. > > > > I don't see it, the locking logic is still the same. Can you show me > > where the module needs to acquire locks differently than without the > > patch? > > > It's not that the locking logic is different. A security module may be > sloppy about its locking and cause Xen to crash without specifically > indicating a flaw in the security module. > > Getting locks right is tricky business, it would seem the Xen would want the > responsibility for the locking of resources to avoid the ills of race > conditions, etc. I agree with your comments, but I don't think the patch changes locking at all. If I'm wrong I agree that's a problem. Mike -- Mike D. Day IBM LTC Cell: 919 412-3900 Sametime: ncmike@us.ibm.com AIM: ncmikeday Yahoo: ultra.runner PGP key: http://www.ncultra.org/ncmike/pubkey.asc