xen-netback: use foreign page information from the pages themselves
authorJennifer Herbert <jennifer.herbert@citrix.com>
Mon, 5 Jan 2015 14:45:10 +0000 (14:45 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 28 Jan 2015 14:03:13 +0000 (14:03 +0000)
commitc2677a6fc4dee765fff8f7ac3d61f657dc295650
treeb32501958567bd3de4ef368f9e86ec73d26d6685
parent8da7633f168b5428e2cfb7342408b2c44088f5df
xen-netback: use foreign page information from the pages themselves

Use the foreign page flag in netback to get the domid and grant ref
needed for the grant copy.  This signficiantly simplifies the netback
code and makes netback work with foreign pages from other backends
(e.g., blkback).

This allows blkback to use iSCSI disks provided by domUs running on
the same host.

Signed-off-by: Jennifer Herbert <jennifer.herbert@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/net/xen-netback/netback.c