* [PATCH] x86/mem_event: Fix foregin domain flag in grab_slot
@ 2012-04-12 14:06 Andres Lagar-Cavilla
2012-04-18 12:40 ` Tim Deegan
0 siblings, 1 reply; 2+ messages in thread
From: Andres Lagar-Cavilla @ 2012-04-12 14:06 UTC (permalink / raw)
To: xen-devel; +Cc: andres, tim, adin
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. */
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] x86/mem_event: Fix foregin domain flag in grab_slot
2012-04-12 14:06 [PATCH] x86/mem_event: Fix foregin domain flag in grab_slot Andres Lagar-Cavilla
@ 2012-04-18 12:40 ` Tim Deegan
0 siblings, 0 replies; 2+ messages in thread
From: Tim Deegan @ 2012-04-18 12:40 UTC (permalink / raw)
To: Andres Lagar-Cavilla; +Cc: andres, adin, xen-devel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-18 12:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-12 14:06 [PATCH] x86/mem_event: Fix foregin domain flag in grab_slot Andres Lagar-Cavilla
2012-04-18 12:40 ` Tim Deegan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).