[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] question about atomic get_page


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • Date: Sat, 11 Jun 2005 12:08:08 +0800
  • Delivery-date: Sat, 11 Jun 2005 04:07:22 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcVuOyz+uEA4MaOYS9iPTmdOqdgxFA==
  • Thread-topic: question about atomic get_page

Now get_page on x86 is implemented to atomic exchange both _domain and
count_info simultaneously. Cmpxchg8b is used to cover two fields because
they are all 32bit width.

However on ia64 where _domain is 64bit, hard to use single instruction
to cover two fields. Yes, there's workaround to solve that, like adding
spinlock with some overhead. But I'd like to know the reason why _domain
and count_info should be operated together. Is there any case that
ownership changes just after checking ownership and before modifying
count_info?

Thanks,
Kevin 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.