qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Atomicity of i386 guest atomic instructions


From: Paul Brook
Subject: Re: [Qemu-devel] Atomicity of i386 guest atomic instructions
Date: Wed, 28 Apr 2010 23:27:34 +0100
User-agent: KMail/1.12.4 (Linux/2.6.33-2-amd64; KDE/4.3.4; x86_64; ; )

> Alexander Graf wrote:
> > They should be atomic. TCG SMP swaps between different vCPUs only
> > after translation blocks are done. In fact, the only way I'm aware
> > of to stop the execution of a TB mid-way is a page fault.
> 
> A page fault would interrupt it if the atomic is implemented as
> a read followed by a write, and the write faults.

Yes, but in that case the whole instruction should be abandoned.

Paul




reply via email to

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