Fixed do_* functions argument
PATCH 1/1 Fixed do_* functions argument
Hi,
I found some mistakes of argument by the do_* functions of hypercall. This patch fixed those mistakes.
Signed-off-by Masaki Kanno <[email protected]>
Best regards,
Kan
xen/arch/ia64/vmx/vmx_hypercall.c +24 -21
@@ -30,6 +30,7 @@#include <asm/page.h> #include <xen/mm.h> #include <xen/multicall.h> +#include <xen/hypercall.h> void hyper_not_support (void )
@@ -118,30 +119,31 @@void hyper_sched_op (void ) {VCPU *vcpu=current; +u64 r32,r33,ret; +vcpu_get_gr_nat (vcpu,16 ,&r32); +vcpu_get_gr_nat (vcpu,17 ,&r33); + ret=do_sched_op (r32,r33); +vcpu_set_gr (vcpu,8 , ret,0 ); + +vmx_vcpu_increment_iip (vcpu); +} + +void hyper_dom0_op (void ) +{ +VCPU *vcpu=current;u64 r32,ret;vcpu_get_gr_nat (vcpu,16 ,&r32); - ret=do_sched_op (r32); -vcpu_set_gr (vcpu,8 , ret,0 ); - -vmx_vcpu_increment_iip (vcpu); -} - -void hyper_dom0_op (void ) + ret=do_dom0_op ((dom0_op_t *)r32); +vcpu_set_gr (vcpu,8 , ret,0 ); + +vmx_vcpu_increment_iip (vcpu); +} + +void hyper_event_channel_op (void ) {VCPU *vcpu=current;u64 r32,ret;vcpu_get_gr_nat (vcpu,16 ,&r32); - ret=do_dom0_op ((dom0_op_t *)r32); -vcpu_set_gr (vcpu,8 , ret,0 ); - -vmx_vcpu_increment_iip (vcpu); -} - -void hyper_event_channel_op (void ) -{ -VCPU *vcpu=current; -u64 r32,ret; -vcpu_get_gr_nat (vcpu,16 ,&r32); ret=do_event_channel_op ((evtchn_op_t *)r32);vcpu_set_gr (vcpu,8 , ret,0 );vmx_vcpu_increment_iip (vcpu);
@@ -150,9 +152,10 @@void hyper_xen_version (void ) {VCPU *vcpu=current; -u64 r32,ret; -vcpu_get_gr_nat (vcpu,16 ,&r32); - ret=do_xen_version ((int )r32); +u64 r32,r33,ret; +vcpu_get_gr_nat (vcpu,16 ,&r32); +vcpu_get_gr_nat (vcpu,17 ,&r33); + ret=do_xen_version ((int )r32,r33);vcpu_set_gr (vcpu,8 , ret,0 );vmx_vcpu_increment_iip (vcpu); }
xen/arch/ia64/xen/hypercall.c +2 -1
@@ -8,6 +8,7 @@#include <xen/config.h> #include <xen/sched.h> +#include <xen/hypercall.h> #include <linux/efi.h> /* FOR EFI_UNIMPLEMENTED */ #include <asm/sal.h> /* FOR struct ia64_sal_retval */
@@ -57,7 +58,7 @@ }else { pal_halt_light_count++; -do_sched_op (SCHEDOP_yield); +do_sched_op (SCHEDOP_yield,0 ); } regs->r8 =0 ; regs->r9 =0 ;
xen/arch/x86/vmx.c +2 -3
@@ -25,6 +25,7 @@#include <xen/irq.h> #include <xen/softirq.h> #include <xen/domain_page.h> +#include <xen/hypercall.h> #include <asm/current.h> #include <asm/io.h> #include <asm/shadow.h>
@@ -1801,14 +1802,12 @@case TRAP_debug: {void store_cpu_user_regs (struct cpu_user_regs *regs); -long do_sched_op (unsigned long op); -store_cpu_user_regs (®s);__vm_clear_bit (GUEST_PENDING_DBG_EXCEPTIONS ,PENDING_DEBUG_EXC_BS );domain_pause_for_debugger (); -do_sched_op (SCHEDOP_yield); +do_sched_op (SCHEDOP_yield,0 );break ; }
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel