From: Thomas Hellstrom Date: Fri, 7 Oct 2011 13:23:06 +0000 (+0200) Subject: vmwgfx: Implement memory accounting for resources X-Git-Tag: v3.2-rc1~135^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=414ee50b3a111983056b1a828fac08f9e8fbc7e9;p=pandora-kernel.git vmwgfx: Implement memory accounting for resources Contexts, surfaces and streams allocate persistent kernel memory as the direct result of user-space requests. Make sure this memory is accounted as graphics memory, to avoid DOS vulnerabilities. Also take the TTM read lock around resource creation to block switched-out dri clients from allocating resources. Signed-off-by: Thomas Hellstrom Reviewed-by: Jakob Bornecrantz Signed-off-by: Dave Airlie --- Reading git-diff-tree failed