Use more specific constant
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.
Signed-off-by Frediano Ziglio <[email protected]>
--- xen/arch/x86/mm/paging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/mm/paging.c +1 -1
@@ -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
Quoted 6 lines · Frediano Ziglio
__HYPERVISOR_arch_1and__HYPERVISOR_paging_domctl_contfor 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.Signed-off-by Frediano Ziglio <[email protected]>
Reviewed-by Jan Beulich <[email protected]>
I can't reconstruct why it was done like this. arch_do_domctl() uses the "more specific" constant in any case.
Jan