Re: [Xen-devel] [PATCH 2/2] x86: latch current‑>domain in do_physdev_op()

2015-01-19 Thread Andrew Cooper
On 19/01/15 15:36, Jan Beulich wrote: > @@ -483,7 +482,7 @@ ret_t do_physdev_op(int cmd, XEN_GUEST_H > ret = -EFAULT; > if ( copy_from_guest(&apic, arg, 1) != 0 ) > break; > -ret = xsm_apic(XSM_PRIV, v->domain, cmd); > +ret = xsm_apic(XSM_PRIV, currd,

[Xen-devel] [PATCH 2/2] x86: latch current‑>domain in do_physdev_op()

2015-01-19 Thread Jan Beulich
... and drop global latching of current, as being needed more than once only in PHYSDEVOP_set_iobitmap, and not at all in almost all other cases. Signed-off-by: Jan Beulich --- a/xen/arch/x86/physdev.c +++ b/xen/arch/x86/physdev.c @@ -291,7 +291,7 @@ ret_t do_physdev_op(int cmd, XEN_GUEST_H {