Skip to contentSkip to conversation

xen/arm: use masking operation instead of test_bit for MCSF bits

PATCH In review Julien Grall 2 participants 2 messages Nov 19, 2015 – Nov 24, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: use masking operation instead of test_bit for MCSF bits

This is a follow of commit 90f2e2a307fc6a6258c39cc87b3b2bf9441c0fa7 "use masking operation instead of test_bit for MCSF bits" where the ARM changes were missing.

---
 xen/arch/arm/domain.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
xen/arch/arm/domain.c +2 -2
index 880d0a6..1b0f9eb 100644
@@ -327,7 +327,7 @@ void hypercall_cancel_continuation(void)
     struct cpu_user_regs *regs = guest_cpu_user_regs();
     struct mc_state *mcs = &current->mc_state;
 
-    if ( test_bit(_MCSF_in_multicall, &mcs->flags) )
+    if ( mcs->flags & MCSF_in_multicall )
     {
         __clear_bit(_MCSF_call_preempted, &mcs->flags);
     }
@@ -352,7 +352,7 @@ unsigned long hypercall_create_continuation(
 
     va_start(args, format);
 
-    if ( test_bit(_MCSF_in_multicall, &mcs->flags) )
+    if ( mcs->flags & MCSF_in_multicall )
     {
         __set_bit(_MCSF_call_preempted, &mcs->flags);
 
Signature · 1 line
2.1.4
#1 lore raw
Quoted 5 lines · Julien Grall

This is a follow of commit 90f2e2a307fc6a6258c39cc87b3b2bf9441c0fa7 "use masking operation instead of test_bit for MCSF bits" where the ARM changes were missing.

Acked + applied.

Quoted 18 lines

---
 xen/arch/arm/domain.c | 4 ++--

 1 file changed, 2 insertions(+), 2 deletions(-)
xen/arch/arm/domain.c +0 -0
index 880d0a6..1b0f9eb 100644
@@ -327,7 +327,7 @@ void hypercall_cancel_continuation(void)
      struct cpu_user_regs *regs = guest_cpu_user_regs();
      struct mc_state *mcs = &current->mc_state;


-    if ( test_bit(_MCSF_in_multicall, &mcs->flags) ) +    if ( mcs->flags & MCSF_in_multicall )
     {
         __clear_bit(_MCSF_call_preempted, &mcs->flags); }

xen/arch/arm/domain.c +0 -0
@@ -352,7 +352,7 @@ unsigned long hypercall_create_continuation(
Quoted 8 lines


     va_start(args, format);

-    if ( test_bit(_MCSF_in_multicall, &mcs->flags) ) +    if ( mcs->flags & MCSF_in_multicall )
     {
         __set_bit(_MCSF_call_preempted, &mcs->flags);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel