From: Keir Fraser Subject: Re: [PATCH] [vTPM] Not building vTPM frontend as module Date: Wed, 10 May 2006 15:55:45 +0100 Message-ID: <95377b78a7bc3ca192d2e130212915fb@cl.cam.ac.uk> References: <1147194526.421.4.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1147194526.421.4.camel@941e-2.watson.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefan Berger Cc: xen-devel List-Id: xen-devel@lists.xenproject.org Even if it is unsafe to unload the module, there is still enormous benefit in allowing to build as a module as it allows the user to choose whether or not to load it in the first place! I suggest you add __unsafe(THIS_MODULE) to the end of your module_init function, as we have done for netback and blkback. This will make it impossible for the user to unload the module, and print a message to the kernel log explaining why. I'll apply the hunk of your patch that fixes the backend issue however. -- Keir On 9 May 2006, at 18:08, Stefan Berger wrote: > This patch prevents the vTPM frontend to be built as module for now. An > 'rmmod' causes some problems since the backend is still using the > shared > page. > This patch also fixes a problem in the backend. > > Signed-off-by: Stefan Berger > > >