WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Replace get_domain_by_id() with find_domain_rcu_lock

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Replace get_domain_by_id() with find_domain_rcu_lock() [1/2]
From: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
Date: Thu, 1 Mar 2007 01:39:48 -0000
Cc: Jose Renato Santos <jsantos@xxxxxxxxxx>
Delivery-date: Wed, 28 Feb 2007 17:39:06 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acdbon9cS0Ec0suDSA2q9hJJX+ZWRg==
Thread-topic: [PATCH] Replace get_domain_by_id() with find_domain_rcu_lock() [1/2]
  These patches replaces invocations to get_domain_by_id()/put_domain()
with the more efficient pair find_domain_rcu_loc()/domain_rcu_unlock(). 
  Most of the current invocations of get_domain_by_id() have local scope
which are safe to be replaced with find_domain_rcu_lock(). There are
only a few places where the get_domain_by_id() was kept due to the
domain reference being kept beyond the current scope.

I decomposed the changes in two patches:
[1/2]: find_domain_rcu_lock_common.patch: changes in arch independent
code
[2/2]: find_domain_rcu_lock_x86.patch: changes in x86 code
 
I did not replace get_domain_by_id() for IA64 and PPC archs yet.
I will send a separate patch for these architectures after I have the
chance to generate the patches for them.

Thanks

Signed-off-by: Jose Renato Santos <jsantos@xxxxxxxxxx>





Attachment: find_domain_rcu_lock_common.patch
Description: find_domain_rcu_lock_common.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Replace get_domain_by_id() with find_domain_rcu_lock() [1/2], Santos, Jose Renato G <=