[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 40/51] ram: Rename qemu_target_page_bits() to qe
From: |
Juan Quintela |
Subject: |
Re: [Qemu-devel] [PATCH 40/51] ram: Rename qemu_target_page_bits() to qemu_target_page_size() |
Date: |
Thu, 30 Mar 2017 11:11:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Peter Xu <address@hidden> wrote:
> On Thu, Mar 23, 2017 at 09:45:33PM +0100, Juan Quintela wrote:
>> It was used as a size in all cases except one.
>
> Considering that:
>
> - qemu_target_page_bits() is only used in migration codes, in only
> several places below
>
> - migration codes is using TARGET_PAGE_{BITS|SIZE} a lot as well
TARGET_PAGE_* is only defined for target specific files, migration (in
general) is not one of them (ram.c on the other hand is).
Until we exported that function, there wasn't a way to know the
TARGET_PAGE_SIZE in migration.c, for instance.
>
> How about we just remove this function, and directly use
> TARGET_PAGE_{BITS|SIZE}?
We can't. This was the reason why we used to have exported the sizes in
bytes and in pages. There are files in qemu that are compiled by
target, and there are files that are compiled the same for all targets.
Later, Juan.
- [Qemu-devel] [PATCH 37/51] ram: Move compression_switch to RAMState, (continued)
- [Qemu-devel] [PATCH 37/51] ram: Move compression_switch to RAMState, Juan Quintela, 2017/03/23
- [Qemu-devel] [PATCH 39/51] ram: We don't need MigrationState parameter anymore, Juan Quintela, 2017/03/23
- [Qemu-devel] [PATCH 40/51] ram: Rename qemu_target_page_bits() to qemu_target_page_size(), Juan Quintela, 2017/03/23
- [Qemu-devel] [PATCH 41/51] Add page-size to output in 'info migrate', Juan Quintela, 2017/03/23
- [Qemu-devel] [PATCH 42/51] ram: Pass RAMBlock to bitmap_sync, Juan Quintela, 2017/03/23
Re: [Qemu-devel] [PATCH 42/51] ram: Pass RAMBlock to bitmap_sync, Dr. David Alan Gilbert, 2017/03/30