|
From: | Andrey Smetanin |
Subject: | [Qemu-devel] Question: cpu_physical_memory_map() and atomic test and set bit pattern |
Date: | Mon, 3 Aug 2015 13:38:38 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 |
Hello, QEMU Developers!cpu_physical_memory_map() calls directly addess_space_map() which has comment "Use only for reads OR writes - not for read-modify-write operations."
Why there is such restriction (only read or write access) in addess_space_map()/cpu_physical_memory_map() ? How to transparently atomically test and set bit of guest memory inside QEMU host? Is there any API for that pattern ? Or may I use cpu_physical_memory_map with is_write = 1 for that safely ?
Thanks, Andrey
[Prev in Thread] | Current Thread | [Next in Thread] |