x86-64: fix HYPERVISOR_update_descriptor()
Subsystems (2)
PATCH 1/1 x86-64: fix HYPERVISOR_update_descriptor()
Signed-off-by Jan Beulich <[email protected]>
--- arch/x86/include/asm/xen/hypercall.h | 2 ++ 1 file changed, 2 insertions(+)
arch/x86/include/asm/xen/hypercall.h +2 -0
@@ -290,6 +290,8 @@ HYPERVISOR_get_debugreg(int reg)static inline int HYPERVISOR_update_descriptor (u64 ma,u64 desc) { +if (sizeof (u64) ==sizeof (long )) +return _hypercall2 (int, update_descriptor, ma, desc);return _hypercall4 (int, update_descriptor, ma, ma>>32 , desc, desc>>32 ); }
Quoted 2 lines · Jan Beulich
Signed-off-by Jan Beulich <[email protected]>
Quoted 19 lines
--- arch/x86/include/asm/xen/hypercall.h | 2 ++ 1 file changed, 2 insertions(+)arch/x86/include/asm/xen/hypercall.h +2
-0@@ -290,6 +290,8 @@ HYPERVISOR_get_debugreg(int reg)static inline int HYPERVISOR_update_descriptor (u64 ma,u64 desc) { +if (sizeof (u64) ==sizeof (long )) +return _hypercall2 (int, update_descriptor, ma, desc);return _hypercall4 (int, update_descriptor, ma, ma>>32 , desc, desc>>32 ); }