qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] PCI CAS implementation in qemu


From: Paolo Bonzini
Subject: Re: [Qemu-devel] PCI CAS implementation in qemu
Date: Tue, 20 Nov 2012 17:48:18 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1

Il 20/11/2012 17:32, Francois WELLENREITER ha scritto:
> 
> I order to develop a qemu module, I aim to use the PCI CAS (compare
> and swap) function to guarantee an atomic access somewhere in the
> guest memory (in a multi-core emulation case).
> 
> Nevertheless, I did not find any routine in qemu implementing this
> function.
> 
> Could anyone on this list tell me if this is implemented and if that's
> not the case, if this would be hard to get implemented ?

(I know nothing about PCI CAS).

Can you just use a compare-and-swap in the QEMU device model (via
__sync_val_compare_and_swap for example)?

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]