[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1] tests/tcg: target/s390x: Test MVC
From: |
David Hildenbrand |
Subject: |
Re: [Qemu-devel] [PATCH v1] tests/tcg: target/s390x: Test MVC |
Date: |
Fri, 20 Sep 2019 11:14:33 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 19.09.19 18:01, Richard Henderson wrote:
> On 9/19/19 2:41 AM, David Hildenbrand wrote:
>>> + /* prepare the buffers - two consecutive pages */
>>> + src = valloc(ALLOC_SIZE);
>>> + dst = valloc(ALLOC_SIZE);
>>
>> If anybody cares, I can convert the obsolete valloc into a
>> posix_memalign(&src, 4096, ALLOC_SIZE) etc.
>
> I don't care. It may be obsolete, but it still works.
>
> If you were to change it to anything I would think mmap
> instead of using mprotect on the heap at all...
Yeah, that was my other thought, but after all I own "full" pages.
I'll leave it like this than unless somebody objects :)
>
> Reviewed-by: Richard Henderson <address@hidden>
Thanks!
>
>
> r~
>
--
Thanks,
David / dhildenb