xen: return machine address without knowing memseg id
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 18 May 2016 11:04:47 +0000 (13:04 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 19 May 2016 12:40:14 +0000 (14:40 +0200)
commit8dab4837012957b08d6770d307fa186bdced25d7
tree982338922a34a3b834a4655de64b257ad2ad979a
parent85226f9c526bc15d203e5be40bc4ea1f7bf390ef
xen: return machine address without knowing memseg id

The conversion from guest physical address to machine physical address
is fast when the caller knows the memseg corresponding to the gpa.

But in case the user does not know this information, just find it
by browsing the segments. This feature will be used by next commit.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_eal/common/include/rte_memory.h
lib/librte_eal/linuxapp/eal/eal_xen_memory.c