Re: [Qemu-devel] [PATCH v3 1/5] exec: Change RAMBlockIterFunc definition

2019-02-20 Thread Dr. David Alan Gilbert
* Yury Kotov (yury-ko...@yandex-team.ru) wrote: > Currently, qemu_ram_foreach_* calls RAMBlockIterFunc with many > block-specific arguments. But often iter func needs RAMBlock*. > This refactoring is needed for fast access to RAMBlock flags from > qemu_ram_foreach_block's callback. The only way to

[Qemu-devel] [PATCH v3 1/5] exec: Change RAMBlockIterFunc definition

2019-02-15 Thread Yury Kotov
Currently, qemu_ram_foreach_* calls RAMBlockIterFunc with many block-specific arguments. But often iter func needs RAMBlock*. This refactoring is needed for fast access to RAMBlock flags from qemu_ram_foreach_block's callback. The only way to achieve this now is to call qemu_ram_block_from_host (wh