xen: don't use privcmd_call() from xen_mc_flush()
authorJuergen Gross <jgross@suse.com>
Wed, 13 Jun 2018 09:58:06 +0000 (11:58 +0200)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 7 Aug 2018 15:37:01 +0000 (11:37 -0400)
commitcd9139220b87f40ea83858de1d6436c639376ce7
tree3f6e21d752354b5773dc6289246206498094a10d
parent405c018a25fe464dc68057bbc8014a58f2bd4422
xen: don't use privcmd_call() from xen_mc_flush()

Using privcmd_call() for a singleton multicall seems to be wrong, as
privcmd_call() is using stac()/clac() to enable hypervisor access to
Linux user space.

Even if currently not a problem (pv domains can't use SMAP while HVM
and PVH domains can't use multicalls) things might change when
PVH dom0 support is added to the kernel.

Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/include/asm/xen/hypercall.h
arch/x86/xen/multicalls.c