On Wed, Oct 27, 2010 at 9:26 AM, Avi Kivity <avi@xxxxxxxxxx> wrote: > ÂOn 10/26/2010 08:33 PM, Blue Swirl wrote: >> >> > >> > ÂWhy two types? ÂI think some devices use PIO on a PC and MMIO on other >> > Âarchitectures. ÂSharing the type would allow sharing code. >> >> Then there are the functions provided by rwhandler.c. I think that >> interface makes even more sense compared to 8/16/32 (and 64?) bit >> handlers in many cases. > > On the other hand, that makes the transition harder. > > Perhaps we can have a type with {read,write}(addr, width), and another built > on top that provides the traditional {read,write}[bwl](addr) to ease the > transition. That should work. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html