qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] spapr-pci: remove io ports workaround


From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH] spapr-pci: remove io ports workaround
Date: Tue, 16 Jul 2013 11:01:41 +0200


Am 16.07.2013 um 10:45 schrieb Benjamin Herrenschmidt <address@hidden>:

> On Tue, 2013-07-16 at 10:32 +0200, Alexander Graf wrote:
>>>> Did I miss anything here?
>>> 
>>> No, I don't think so.  The patch looks good.
>> 
>> ... and will break all Mac targets again, no? Not to speak of non-ppc
>> devices.
> 
> Do you know why it breaks ? Can you suggest what's wrong and how to fix
> it maybe ?

Sure. Get rid of cpu_inX and cpu_outX completely and verify that the conversion 
is doing the "right thing" for each conversion. Some of them are really tricky 
- like MIPS which accesses the RTC in native endian (big) in current code. So 
this patch would definitely break that one too.

I'm actually surprised we have to mark the ioport region little endian for 
sPAPR. We already did have it converted to a direct memory api alias a while 
ago and IIRC the only problem back then were the old_portio callbacks. I wonder 
what changed in between.


Alex

> 
> Cheers,
> Ben,
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]