qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 04/30] add a header file for atomic operations


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 04/30] add a header file for atomic operations
Date: Mon, 1 Jul 2013 12:08:22 +0100

On 28 June 2013 21:41, Anthony Liguori <address@hidden> wrote:
> One thing I've been thinking about reviewing this code, what should we
> be doing in virtio.c?
>
> We have barriers but we're relying on st[u][wlb]_phys having atomic
> semantics.  I think it's okay in practice but if we're taking a more
> diligent approach here should we introduce atomic variants that work on
> guest phys addresses?

Those accesses are weird anyway, because they implicitly depend
on going through a path which is cache-coherent with the CPU
that was used to run the guest VCPU. So they're not strictly
speaking writing "guest physical memory" necessarily...

-- PMM



reply via email to

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