Re: [PATCH 0/2] cleanup on page size

2019-10-14 Thread Wei Yang
Hi, All, I got one page size related question, hope to get some hint. There is one comment in page_size_init(). /* NOTE: we can always suppose that qemu_host_page_size >= TARGET_PAGE_SIZE */ The final result is true, since we compare qemu_host_page_size with TARGET_PAGE_SIZE and if

Re: [PATCH 0/2] cleanup on page size

2019-10-13 Thread Michael S. Tsirkin
On Sun, Oct 13, 2019 at 10:11:43AM +0800, Wei Yang wrote: > Patch 1 simplify the definition of xxx_PAGE_ALIGN. > Patch 2 replaces getpagesize() with qemu_real_host_page_size. This one touch a > volume of code. If some point is not correct, I'd appreciate your > notification. Pls queue at the

[PATCH 0/2] cleanup on page size

2019-10-12 Thread Wei Yang
Patch 1 simplify the definition of xxx_PAGE_ALIGN. Patch 2 replaces getpagesize() with qemu_real_host_page_size. This one touch a volume of code. If some point is not correct, I'd appreciate your notification. Wei Yang (2): cpu: use ROUND_UP() to define xxx_PAGE_ALIGN core: replace