Skip to contentSkip to conversation

Use more specific constant

PATCH Superseded Frediano Ziglio 2 participants 2 messages Feb 5, 2024 – Feb 6, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 Use more specific constant

__HYPERVISOR_arch_1 and __HYPERVISOR_paging_domctl_cont for x86 have the same value but this function is handling "paging_domctl_cont" hypercall so using the latter mnemonic in the code is more clear.

---
 xen/arch/x86/mm/paging.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/mm/paging.c +1 -1
index 541c2ea9b2..2961ca734d 100644
@@ -783,7 +783,7 @@ long do_paging_domctl_cont(
     rcu_unlock_domain(d);
 
     if ( ret == -ERESTART )
-        ret = hypercall_create_continuation(__HYPERVISOR_arch_1,
+        ret = hypercall_create_continuation(__HYPERVISOR_paging_domctl_cont,
                                             "h", u_domctl);
     else if ( __copy_field_to_guest(u_domctl, &op, u.shadow_op) )
         ret = -EFAULT;
Signature · 1 line
2.34.1
Reviewed-by on v1 3/5
#1 lore raw
Quoted 6 lines · Frediano Ziglio

__HYPERVISOR_arch_1 and __HYPERVISOR_paging_domctl_cont for x86 have the same value but this function is handling "paging_domctl_cont" hypercall so using the latter mnemonic in the code is more clear.

I can't reconstruct why it was done like this. arch_do_domctl() uses the "more specific" constant in any case.

Jan