* [Qemu-devel] PCI CAS implementation in qemu
@ 2012-11-20 16:32 Francois WELLENREITER
2012-11-20 16:48 ` Paolo Bonzini
0 siblings, 1 reply; 2+ messages in thread
From: Francois WELLENREITER @ 2012-11-20 16:32 UTC (permalink / raw)
To: qemu-devel
Hi there,
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 ?
Thanks in advance for any answer.
Regards,
François
--
François WELLENREITER
Bull - R&D Extreme Computing - Grenoble
francois.wellenreiter@bull.net
--
Bull, Architect of an Open World
http://www.bull.com
Bull World Web TV: http://www.bull-world.com/
Career opportunities at Bull: http://www.bull.fr/emploi
This e-mail contains material that is confidential for the sole use of the intended recipient.
Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited.
If you are not the intended recipient, please contact the sender and delete all copies.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] PCI CAS implementation in qemu
2012-11-20 16:32 [Qemu-devel] PCI CAS implementation in qemu Francois WELLENREITER
@ 2012-11-20 16:48 ` Paolo Bonzini
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2012-11-20 16:48 UTC (permalink / raw)
To: Francois WELLENREITER; +Cc: qemu-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-20 16:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-20 16:32 [Qemu-devel] PCI CAS implementation in qemu Francois WELLENREITER
2012-11-20 16:48 ` Paolo Bonzini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).