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>
Este cometimento está contido em:

cometido por
Boris Ostrovsky

ascendente
405c018a25
cometimento
cd9139220b
@@ -80,9 +80,9 @@ void xen_mc_flush(void)
|
||||
and just do the call directly. */
|
||||
mc = &b->entries[0];
|
||||
|
||||
mc->result = privcmd_call(mc->op,
|
||||
mc->args[0], mc->args[1], mc->args[2],
|
||||
mc->args[3], mc->args[4]);
|
||||
mc->result = xen_single_call(mc->op, mc->args[0], mc->args[1],
|
||||
mc->args[2], mc->args[3],
|
||||
mc->args[4]);
|
||||
ret = mc->result < 0;
|
||||
break;
|
||||
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador