Andres Lagar-Cavilla
2012-Apr-12 14:06 UTC
[PATCH] x86/mem_event: Fix foregin domain flag in grab_slot
xen/arch/x86/mm/mem_event.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org> diff -r 84c3a14dc28a -r c74fe64aafeb xen/arch/x86/mm/mem_event.c --- a/xen/arch/x86/mm/mem_event.c +++ b/xen/arch/x86/mm/mem_event.c @@ -415,7 +415,7 @@ int __mem_event_claim_slot(struct domain if ( (current->domain == d) && allow_sleep ) return mem_event_wait_slot(med); else - return mem_event_grab_slot(med, 1); + return mem_event_grab_slot(med, (current->domain != d)); } /* Registered with Xen-bound event channel for incoming notifications. */
Tim Deegan
2012-Apr-18 12:40 UTC
Re: [PATCH] x86/mem_event: Fix foregin domain flag in grab_slot
At 10:06 -0400 on 12 Apr (1334225202), Andres Lagar-Cavilla wrote:> diff -r 84c3a14dc28a -r c74fe64aafeb xen/arch/x86/mm/mem_event.c > --- a/xen/arch/x86/mm/mem_event.c > +++ b/xen/arch/x86/mm/mem_event.c > @@ -415,7 +415,7 @@ int __mem_event_claim_slot(struct domain > if ( (current->domain == d) && allow_sleep ) > return mem_event_wait_slot(med); > else > - return mem_event_grab_slot(med, 1); > + return mem_event_grab_slot(med, (current->domain != d)); > } > > /* Registered with Xen-bound event channel for incoming notifications. */Applied, thanks. Tim.