On 2013-05-23 14:05, David Gibson wrote: > On Tue, May 21, 2013 at 12:57:16PM +0200, Paolo Bonzini wrote: >> The old-style IOMMU lets you check whether an access is valid in a >> given DMAContext. There is no equivalent for AddressSpace in the >> memory API, implement it with a lookup of the dispatch tree. > > I don't love the name - "address_space_valid" suggests to me it tests > the validity of the whole address space, not a specific range. But > an obviously better name doesn't quickly occur to me.
Not sure ATM if someone else suggested this earlier already, but what about something like address_space_access_valid? Jan -- Siemens AG, Corporate Technology, CT RTC ITP SDP-DE Corporate Competence Center Embedded Linux