summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/p2m.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-03-10 11:46:13 +0100
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>2021-03-10 16:39:29 -0600
commitf1d20d8643e54dcde242fd2c8748063ed75702a8 (patch)
treed30db68e7e948fcdeeae5f0fb503654c2d504a81 /arch/x86/xen/p2m.c
parentbce21a2b48ede7cbcab92db18bc956daf1d5c246 (diff)
downloadlinux-f1d20d8643e54dcde242fd2c8748063ed75702a8.tar.gz
linux-f1d20d8643e54dcde242fd2c8748063ed75702a8.tar.bz2
linux-f1d20d8643e54dcde242fd2c8748063ed75702a8.zip
Xen/gntdev: don't needlessly use kvcalloc()
Requesting zeroed memory when all of it will be overwritten subsequently by all ones is a waste of processing bandwidth. In fact, rather than recording zeroed ->grants[], fill that array too with more appropriate "invalid" indicators. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Juergen Gross <jgross@suse.com> Link: https://lore.kernel.org/r/9a726be2-4893-8ffe-0ef1-b70dd1c229b1@suse.com Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'arch/x86/xen/p2m.c')
0 files changed, 0 insertions, 0 deletions