Re: RFC/patch 2/3 portability: move x86 emulation and mmio device hook to x86.c

Avi Kivity
2007-10-31T22:11:17Z

Hollis Blanchard wrote:
> On Wed, 2007-10-31 at 02:24 +0200, Avi Kivity wrote:
>
>> For x86 there are two kinds of mmio devices: one is the expected
>> system-wide mmio, and the other is mmio that depends not only on the
>> address, but also on which cpu originated the request. This type is
>> only needed for the local apic.
>>
>> Is the second type also useful for ppc?
>>
>
> Actually yes. At least OpenPIC (one of a variety of interrupt
> controllers used on PowerPC systems) has per-CPU registers:
> A copy of each of these registers will be available to each CPU
> at the same physical address.
>
>

Okay, so we'll have to generalize that code and move it back.

--
Any sufficiently difficult bug is indistinguishable from a feature.