[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [Qemu-devel] [PATCH v1 3/9] tcg: Factor out CONFIG_USER
From: |
Richard Henderson |
Subject: |
Re: [qemu-s390x] [Qemu-devel] [PATCH v1 3/9] tcg: Factor out CONFIG_USER_ONLY probe_write() from s390x code |
Date: |
Fri, 23 Aug 2019 08:22:43 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 8/23/19 3:07 AM, David Hildenbrand wrote:
> +void probe_write(CPUArchState *env, target_ulong addr, int size, int mmu_idx,
> + uintptr_t retaddr)
> +{
> + CPUState *cpu = env_cpu(env);
> + CPUClass *cc;
> +
> + if (!guest_addr_valid(addr) ||
> + (size > 0 && !guest_addr_valid(addr + size - 1)) ||
I think the interface needs to remain the same between softmmu and linux-user,
and we should not allow size to cross a page here either. Which also means
that the second line here can go away -- we only need the one test vs the
single page.
r~
- [qemu-s390x] [PATCH v1 0/9] tcg: probe_write() refactorings and watchpoints, David Hildenbrand, 2019/08/23
- [qemu-s390x] [PATCH v1 1/9] s390x/tcg: Use guest_addr_valid() instead of h2g_valid() in probe_write_access(), David Hildenbrand, 2019/08/23
- [qemu-s390x] [PATCH v1 2/9] s390x/tcg: Fix length calculation in probe_write_access(), David Hildenbrand, 2019/08/23
- [qemu-s390x] [PATCH v1 3/9] tcg: Factor out CONFIG_USER_ONLY probe_write() from s390x code, David Hildenbrand, 2019/08/23
- [qemu-s390x] [PATCH v1 4/9] tcg: Enforce single page access in probe_write() for !CONFIG_USER_ONLY, David Hildenbrand, 2019/08/23
- [qemu-s390x] [PATCH v1 5/9] mips/tcg: Call probe_write() for CONFIG_USER_ONLY as well, David Hildenbrand, 2019/08/23
- [qemu-s390x] [PATCH v1 6/9] hppa/tcg: Call probe_write() also for CONFIG_USER_ONLY, David Hildenbrand, 2019/08/23
- [qemu-s390x] [PATCH v1 7/9] s390x/tcg: Pass a size to probe_write() in do_csst(), David Hildenbrand, 2019/08/23
- [qemu-s390x] [PATCH v1 8/9] exec.c: Factor out core logic of check_watchpoint(), David Hildenbrand, 2019/08/23