[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory regio
From: |
Jan Kiszka |
Subject: |
Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API |
Date: |
Thu, 19 May 2011 21:27:55 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
On 2011-05-19 16:12, Avi Kivity wrote:
> +/* Sets an offset to be added to MemoryRegionOps callbacks. */
> +void memory_region_set_offset(MemoryRegion *mr, target_phys_addr_t offset);
Please mark this as a legacy helper, ideally to be removed after the
complete conversion to this API. During that phase we should try to
identify those devices which still depend on offset=0 and maybe directly
fix them.
> +/* Turn loggging on or off for specified client (display, migration) */
> +void memory_region_set_log(MemoryRegion *mr, bool log, unsigned client);
> +/* Enable memory coalescing for the region. MMIO ->write callbacks may be
> + * delayed until a non-coalesced MMIO is issued.
> + */
> +void memory_region_set_coalescing(MemoryRegion *mr);
> +/* Enable memory coalescing for a sub-range of the region. MMIO ->write
> + * callbacks may be delayed until a non-coalesced MMIO is issued.
> + */
> +void memory_region_add_coalescing(MemoryRegion *mr,
> + target_phys_addr_t offset,
> + target_phys_addr_t size);
Will this be such a common use case that requesting the user to split up
the region and then use set_coalescing will generate too much boiler
plate code?
> +/* Disable MMIO coalescing for the region. */
> +void memory_region_clear_coalescing(MemoryRegion *mr);
And what about clearing coalescing for sub-ranges? Maybe skip
add_coalescing for the first run and see how far we get.
Jan
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [RFC v1] Memory API, Avi Kivity, 2011/05/19
- [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API, Avi Kivity, 2011/05/19
- Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API, Alex Williamson, 2011/05/19
- Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API,
Jan Kiszka <=
- Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API, Anthony Liguori, 2011/05/19
- Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API, Avi Kivity, 2011/05/20
- Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API, Richard Henderson, 2011/05/20
- Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API, Anthony Liguori, 2011/05/20
- Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API, Richard Henderson, 2011/05/20
- Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API, Anthony Liguori, 2011/05/20
- Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API, Blue Swirl, 2011/05/20
- Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API, Avi Kivity, 2011/05/22
- Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API, Avi Kivity, 2011/05/22