qemu-devel
[Top][All Lists]
Advanced

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

Re: [Bug 1911351] Re: x86-64 MTTCG Does not update page table entries at


From: Peter Maydell
Subject: Re: [Bug 1911351] Re: x86-64 MTTCG Does not update page table entries atomically
Date: Tue, 2 Feb 2021 09:52:02 +0000

On Tue, 2 Feb 2021 at 05:07, Venkatesh Srinivas
<1911351@bugs.launchpad.net> wrote:
> BTW, the RISC-V MMU code _does_ get this right and the model could be
> followed by the x86 version - - something like
> https://github.com/vsrinivas/qemu/commit/1efa7dc689c4572d8fe0880ddbe44ec22f8f4348,
> (but with more compiling + working) might solve this problem and more
> closely model h/w

target/i386 is the wrong place to put the fix, though:
the abstraction layers for working with AddressSpaces need to
provide atomic operations and then under the hood do the right
thing to implement them. target-specific code shouldn't need
to manually do the translation, fish out a MemoryRegion,
check whether it's really host RAM, and so on.

thanks
-- PMM



reply via email to

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