[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH] linux-user/ppc: Implement swapcontex
From: |
Peter Maydell |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH] linux-user/ppc: Implement swapcontext syscall |
Date: |
Thu, 19 Jul 2018 16:48:48 +0100 |
On 19 July 2018 at 16:24, Richard Henderson
<address@hidden> wrote:
> On 07/19/2018 06:05 AM, Alex Bennée wrote:
>> I'm confused by the lock_user_struct/unlock_user_struct which AFAICT are
>> basically access checks. Is there an implied locking I'm missing?
>
> I have no idea why those have that name. There's no lock,
> just a validation of the underlying pages and a transform to
> the corresponding host address.
Mmm, it's unclear. It came in via 53a5960aadd542dd, and the
impression I get is that the idea was to try to decouple from
knowing that the guest memory layout is flat, as a preparation
for possible support for softmmu-in-usermode...
thanks
-- PMM