On 09/15/2011 01:18 PM, Jan Kiszka wrote:
On 2011-09-15 11:53, Avi Kivity wrote:
>>> The host pci bridge remaps this as
>>> 0x1000000105-0x1000000106 in the memory address space space. But
>>> someone configured a cpu-local region at this address, so the cpu can't
>>> reach it at all.
>>
>> Mapping PIO into MMIO space is special as it needs an intermediate layer
>> (ie. translation handlers).
>
> Translation handlers aren't needed - you can simply add the pci pio
> region as a subregion of the mmio space.
From the outer perspective. But internally, there is still
memory_region_iorange_read/write.
These will go away.
The point is that no use case actually justifies memory_region_set_offset.
It's just a compatibility interface. When everything is converted, and
no users remain, we'll remove it.
--
error compiling committee.c: too many arguments to function