xen: issue warning message when out of grant maptrack entries
authorJuergen Gross <jgross@suse.com>
Wed, 19 Sep 2018 13:42:33 +0000 (15:42 +0200)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 19 Sep 2018 15:27:42 +0000 (11:27 -0400)
commitd59f532480f5231bf62615a9287e05b78225fb05
treed67f3ae4a076a445fec3a4becbb84b849e9a6dae
parent70513d58751d7c6c1a0133557b13089b9f2e3e66
xen: issue warning message when out of grant maptrack entries

When a driver domain (e.g. dom0) is running out of maptrack entries it
can't map any more foreign domain pages. Instead of silently stalling
the affected domUs issue a rate limited warning in this case in order
to make it easier to detect that situation.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/grant-table.c