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

Re: [Xen-devel] Atomic operations

My domU kernels are configured with:

CONFIG_SMP=y
CONFIG_X86_FIND_SMP_CONFIG=y
CONFIG_X86_MPPARSE=y
# CONFIG_X86_PC is not set
CONFIG_X86_XEN=y

The problem occurs when I limit the VCPUs in each guest to 1, presumably they get scheduled into unique physical CPUs in parallel. Is there anything else I should be aware of? I'm quite optimistic that the XenSocket logic is sound, the only thing I can attribute this to is a lack of atomicity.

Tim

2009/3/26 Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
On 26/03/2009 07:34, "Juergen Gross" <juergen.gross@xxxxxxxxxxxxxxxxxxx>
wrote:

> Keir Fraser wrote:
>> The Linux atomic.h operations will be atomic even across domains.
>
> ... unless CONFIG_SMP was not defined in the domU kernel build.

Yes, good point. Actually I assumed the OP was copying atomic.h for his own
use, but he probably isn't actually. And either way the CONFIG_SMP ifdef'ery
could bite.

 -- Keir





_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>