lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <201804051814.zjdgVwPk%fengguang.wu@intel.com>
Date:   Thu, 5 Apr 2018 18:38:20 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Maran Wilson <maran.wilson@...cle.com>
Cc:     kbuild-all@...org, x86@...nel.org, linux-kernel@...r.kernel.org,
        xen-devel@...ts.xenproject.org, kvm@...r.kernel.org,
        pbonzini@...hat.com, jgross@...e.com, tglx@...utronix.de,
        mingo@...hat.com, hpa@...or.com, roger.pau@...rix.com,
        boris.ostrovsky@...cle.com, rkrcmar@...hat.com,
        maran.wilson@...cle.com
Subject: Re: [PATCH v6 7/7] KVM: x86: Allow Qemu/KVM to use PVH entry point

Hi Maran,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on next-20180405]
[cannot apply to tip/x86/core xen-tip/linux-next v4.16]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Maran-Wilson/KVM-x86-Allow-Qemu-KVM-to-use-PVH-entry-point/20180405-165048
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from arch/x86/platform/pvh/enlighten.c:12:0:
   arch/x86/include/asm/xen/hypercall.h: In function 'HYPERVISOR_update_va_mapping':
>> arch/x86/include/asm/xen/hypercall.h:366:33: warning: right shift count >= width of type [-Wshift-count-overflow]
           new_val.pte, new_val.pte >> 32, flags);
                                    ^
   arch/x86/include/asm/xen/hypercall.h:132:52: note: in definition of macro '__HYPERCALL_3ARG'
     __HYPERCALL_2ARG(a1,a2)  __arg3 = (unsigned long)(a3);
                                                       ^~
>> arch/x86/include/asm/xen/hypercall.h:192:2: note: in expansion of macro '__HYPERCALL_4ARG'
     __HYPERCALL_4ARG(a1, a2, a3, a4);    \
     ^~~~~~~~~~~~~~~~
>> arch/x86/include/asm/xen/hypercall.h:365:10: note: in expansion of macro '_hypercall4'
      return _hypercall4(int, update_va_mapping, va,
             ^~~~~~~~~~~
   arch/x86/include/asm/xen/hypercall.h: In function 'HYPERVISOR_update_va_mapping_otherdomain':
   arch/x86/include/asm/xen/hypercall.h:417:33: warning: right shift count >= width of type [-Wshift-count-overflow]
           new_val.pte, new_val.pte >> 32,
                                    ^
   arch/x86/include/asm/xen/hypercall.h:132:52: note: in definition of macro '__HYPERCALL_3ARG'
     __HYPERCALL_2ARG(a1,a2)  __arg3 = (unsigned long)(a3);
                                                       ^~
   arch/x86/include/asm/xen/hypercall.h:136:2: note: in expansion of macro '__HYPERCALL_4ARG'
     __HYPERCALL_4ARG(a1,a2,a3,a4) __arg5 = (unsigned long)(a5);
     ^~~~~~~~~~~~~~~~
>> arch/x86/include/asm/xen/hypercall.h:203:2: note: in expansion of macro '__HYPERCALL_5ARG'
     __HYPERCALL_5ARG(a1, a2, a3, a4, a5);    \
     ^~~~~~~~~~~~~~~~
>> arch/x86/include/asm/xen/hypercall.h:416:10: note: in expansion of macro '_hypercall5'
      return _hypercall5(int, update_va_mapping_otherdomain, va,
             ^~~~~~~~~~~
   arch/x86/include/asm/xen/hypercall.h: In function 'MULTI_update_va_mapping':
   arch/x86/include/asm/xen/hypercall.h:511:30: warning: right shift count >= width of type [-Wshift-count-overflow]
      mcl->args[2] = new_val.pte >> 32;
                                 ^~
   arch/x86/include/asm/xen/hypercall.h: In function 'MULTI_update_va_mapping_otherdomain':
   arch/x86/include/asm/xen/hypercall.h:543:30: warning: right shift count >= width of type [-Wshift-count-overflow]
      mcl->args[2] = new_val.pte >> 32;
                                 ^~

vim +366 arch/x86/include/asm/xen/hypercall.h

a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  188  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  189  #define _hypercall4(type, name, a1, a2, a3, a4)				\
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  190  ({									\
e74359028 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  191  	__HYPERCALL_DECLS;						\
e74359028 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08 @192  	__HYPERCALL_4ARG(a1, a2, a3, a4);				\
e74359028 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  193  	asm volatile (__HYPERCALL					\
e74359028 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  194  		      : __HYPERCALL_4PARAM				\
e74359028 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  195  		      : __HYPERCALL_ENTRY(name)				\
e74359028 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  196  		      : __HYPERCALL_CLOBBER4);				\
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  197  	(type)__res;							\
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  198  })
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  199  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  200  #define _hypercall5(type, name, a1, a2, a3, a4, a5)			\
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  201  ({									\
e74359028 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  202  	__HYPERCALL_DECLS;						\
e74359028 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08 @203  	__HYPERCALL_5ARG(a1, a2, a3, a4, a5);				\
e74359028 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  204  	asm volatile (__HYPERCALL					\
e74359028 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  205  		      : __HYPERCALL_5PARAM				\
e74359028 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  206  		      : __HYPERCALL_ENTRY(name)				\
e74359028 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  207  		      : __HYPERCALL_CLOBBER5);				\
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  208  	(type)__res;							\
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  209  })
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  210  
1246ae0bb arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2009-02-09  211  static inline long
1246ae0bb arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2009-02-09  212  privcmd_call(unsigned call,
1246ae0bb arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2009-02-09  213  	     unsigned long a1, unsigned long a2,
1246ae0bb arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2009-02-09  214  	     unsigned long a3, unsigned long a4,
1246ae0bb arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2009-02-09  215  	     unsigned long a5)
1246ae0bb arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2009-02-09  216  {
1246ae0bb arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2009-02-09  217  	__HYPERCALL_DECLS;
1246ae0bb arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2009-02-09  218  	__HYPERCALL_5ARG(a1, a2, a3, a4, a5);
1246ae0bb arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2009-02-09  219  
c54590cac arch/x86/include/asm/xen/hypercall.h Marek Marczykowski-Górecki 2017-06-26  220  	stac();
ea08816d5 arch/x86/include/asm/xen/hypercall.h David Woodhouse            2018-01-11  221  	asm volatile(CALL_NOSPEC
1246ae0bb arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2009-02-09  222  		     : __HYPERCALL_5PARAM
ea08816d5 arch/x86/include/asm/xen/hypercall.h David Woodhouse            2018-01-11  223  		     : [thunk_target] "a" (&hypercall_page[call])
1246ae0bb arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2009-02-09  224  		     : __HYPERCALL_CLOBBER5);
c54590cac arch/x86/include/asm/xen/hypercall.h Marek Marczykowski-Górecki 2017-06-26  225  	clac();
1246ae0bb arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2009-02-09  226  
1246ae0bb arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2009-02-09  227  	return (long)__res;
1246ae0bb arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2009-02-09  228  }
1246ae0bb arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2009-02-09  229  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  230  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  231  HYPERVISOR_set_trap_table(struct trap_info *table)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  232  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  233  	return _hypercall1(int, set_trap_table, table);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  234  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  235  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  236  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  237  HYPERVISOR_mmu_update(struct mmu_update *req, int count,
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  238  		      int *success_count, domid_t domid)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  239  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  240  	return _hypercall4(int, mmu_update, req, count, success_count, domid);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  241  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  242  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  243  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  244  HYPERVISOR_mmuext_op(struct mmuext_op *op, int count,
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  245  		     int *success_count, domid_t domid)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  246  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  247  	return _hypercall4(int, mmuext_op, op, count, success_count, domid);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  248  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  249  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  250  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  251  HYPERVISOR_set_gdt(unsigned long *frame_list, int entries)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  252  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  253  	return _hypercall2(int, set_gdt, frame_list, entries);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  254  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  255  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  256  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  257  HYPERVISOR_stack_switch(unsigned long ss, unsigned long esp)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  258  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  259  	return _hypercall2(int, stack_switch, ss, esp);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  260  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  261  
88459d4c7 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  262  #ifdef CONFIG_X86_32
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  263  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  264  HYPERVISOR_set_callbacks(unsigned long event_selector,
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  265  			 unsigned long event_address,
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  266  			 unsigned long failsafe_selector,
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  267  			 unsigned long failsafe_address)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  268  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  269  	return _hypercall4(int, set_callbacks,
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  270  			   event_selector, event_address,
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  271  			   failsafe_selector, failsafe_address);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  272  }
88459d4c7 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  273  #else  /* CONFIG_X86_64 */
88459d4c7 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  274  static inline int
88459d4c7 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  275  HYPERVISOR_set_callbacks(unsigned long event_address,
88459d4c7 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  276  			unsigned long failsafe_address,
88459d4c7 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  277  			unsigned long syscall_address)
88459d4c7 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  278  {
88459d4c7 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  279  	return _hypercall3(int, set_callbacks,
88459d4c7 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  280  			   event_address, failsafe_address,
88459d4c7 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  281  			   syscall_address);
88459d4c7 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  282  }
88459d4c7 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  283  #endif  /* CONFIG_X86_{32,64} */
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  284  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  285  static inline int
aa380c82b include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-03-17  286  HYPERVISOR_callback_op(int cmd, void *arg)
aa380c82b include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-03-17  287  {
aa380c82b include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-03-17  288  	return _hypercall2(int, callback_op, cmd, arg);
aa380c82b include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-03-17  289  }
aa380c82b include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-03-17  290  
aa380c82b include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-03-17  291  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  292  HYPERVISOR_fpu_taskswitch(int set)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  293  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  294  	return _hypercall1(int, fpu_taskswitch, set);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  295  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  296  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  297  static inline int
349c709f4 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-05-26  298  HYPERVISOR_sched_op(int cmd, void *arg)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  299  {
a8b745836 arch/x86/include/asm/xen/hypercall.h Ian Campbell               2011-02-17  300  	return _hypercall2(int, sched_op, cmd, arg);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  301  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  302  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  303  static inline long
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  304  HYPERVISOR_set_timer_op(u64 timeout)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  305  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  306  	unsigned long timeout_hi = (unsigned long)(timeout>>32);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  307  	unsigned long timeout_lo = (unsigned long)timeout;
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  308  	return _hypercall2(long, set_timer_op, timeout_lo, timeout_hi);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  309  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  310  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  311  static inline int
cef12ee52 arch/x86/include/asm/xen/hypercall.h Liu, Jinsong               2012-06-07  312  HYPERVISOR_mca(struct xen_mc *mc_op)
cef12ee52 arch/x86/include/asm/xen/hypercall.h Liu, Jinsong               2012-06-07  313  {
cef12ee52 arch/x86/include/asm/xen/hypercall.h Liu, Jinsong               2012-06-07  314  	mc_op->interface_version = XEN_MCA_INTERFACE_VERSION;
cef12ee52 arch/x86/include/asm/xen/hypercall.h Liu, Jinsong               2012-06-07  315  	return _hypercall1(int, mca, mc_op);
cef12ee52 arch/x86/include/asm/xen/hypercall.h Liu, Jinsong               2012-06-07  316  }
cef12ee52 arch/x86/include/asm/xen/hypercall.h Liu, Jinsong               2012-06-07  317  
cef12ee52 arch/x86/include/asm/xen/hypercall.h Liu, Jinsong               2012-06-07  318  static inline int
cfafae940 arch/x86/include/asm/xen/hypercall.h Stefano Stabellini         2015-11-23  319  HYPERVISOR_platform_op(struct xen_platform_op *op)
eec07a9ec arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2011-09-23  320  {
cfafae940 arch/x86/include/asm/xen/hypercall.h Stefano Stabellini         2015-11-23  321  	op->interface_version = XENPF_INTERFACE_VERSION;
cfafae940 arch/x86/include/asm/xen/hypercall.h Stefano Stabellini         2015-11-23  322  	return _hypercall1(int, platform_op, op);
eec07a9ec arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2011-09-23  323  }
eec07a9ec arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2011-09-23  324  
eec07a9ec arch/x86/include/asm/xen/hypercall.h Jeremy Fitzhardinge        2011-09-23  325  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  326  HYPERVISOR_set_debugreg(int reg, unsigned long value)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  327  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  328  	return _hypercall2(int, set_debugreg, reg, value);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  329  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  330  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  331  static inline unsigned long
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  332  HYPERVISOR_get_debugreg(int reg)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  333  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  334  	return _hypercall1(unsigned long, get_debugreg, reg);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  335  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  336  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  337  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  338  HYPERVISOR_update_descriptor(u64 ma, u64 desc)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  339  {
6a5c05f00 arch/x86/include/asm/xen/hypercall.h Jan Beulich                2009-03-12  340  	if (sizeof(u64) == sizeof(long))
6a5c05f00 arch/x86/include/asm/xen/hypercall.h Jan Beulich                2009-03-12  341  		return _hypercall2(int, update_descriptor, ma, desc);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  342  	return _hypercall4(int, update_descriptor, ma, ma>>32, desc, desc>>32);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  343  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  344  
24f775a66 arch/x86/include/asm/xen/hypercall.h Juergen Gross              2015-09-04  345  static inline long
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  346  HYPERVISOR_memory_op(unsigned int cmd, void *arg)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  347  {
24f775a66 arch/x86/include/asm/xen/hypercall.h Juergen Gross              2015-09-04  348  	return _hypercall2(long, memory_op, cmd, arg);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  349  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  350  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  351  static inline int
5e40704ed arch/x86/include/asm/xen/hypercall.h Ian Campbell               2014-04-17  352  HYPERVISOR_multicall(void *call_list, uint32_t nr_calls)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  353  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  354  	return _hypercall2(int, multicall, call_list, nr_calls);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  355  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  356  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  357  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  358  HYPERVISOR_update_va_mapping(unsigned long va, pte_t new_val,
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  359  			     unsigned long flags)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  360  {
ca15f20f1 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  361  	if (sizeof(new_val) == sizeof(long))
ca15f20f1 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  362  		return _hypercall3(int, update_va_mapping, va,
ca15f20f1 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  363  				   new_val.pte, flags);
ca15f20f1 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  364  	else
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17 @365  		return _hypercall4(int, update_va_mapping, va,
ca15f20f1 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08 @366  				   new_val.pte, new_val.pte >> 32, flags);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  367  }
cf47a83fb arch/x86/include/asm/xen/hypercall.h Jan Beulich                2012-10-19  368  extern int __must_check xen_event_channel_op_compat(int, void *);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  369  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  370  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  371  HYPERVISOR_event_channel_op(int cmd, void *arg)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  372  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  373  	int rc = _hypercall2(int, event_channel_op, cmd, arg);
cf47a83fb arch/x86/include/asm/xen/hypercall.h Jan Beulich                2012-10-19  374  	if (unlikely(rc == -ENOSYS))
cf47a83fb arch/x86/include/asm/xen/hypercall.h Jan Beulich                2012-10-19  375  		rc = xen_event_channel_op_compat(cmd, arg);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  376  	return rc;
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  377  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  378  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  379  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  380  HYPERVISOR_xen_version(int cmd, void *arg)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  381  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  382  	return _hypercall2(int, xen_version, cmd, arg);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  383  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  384  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  385  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  386  HYPERVISOR_console_io(int cmd, int count, char *str)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  387  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  388  	return _hypercall3(int, console_io, cmd, count, str);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  389  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  390  
909b3fdb0 arch/x86/include/asm/xen/hypercall.h Jan Beulich                2013-03-12  391  extern int __must_check xen_physdev_op_compat(int, void *);
cf47a83fb arch/x86/include/asm/xen/hypercall.h Jan Beulich                2012-10-19  392  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  393  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  394  HYPERVISOR_physdev_op(int cmd, void *arg)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  395  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  396  	int rc = _hypercall2(int, physdev_op, cmd, arg);
cf47a83fb arch/x86/include/asm/xen/hypercall.h Jan Beulich                2012-10-19  397  	if (unlikely(rc == -ENOSYS))
909b3fdb0 arch/x86/include/asm/xen/hypercall.h Jan Beulich                2013-03-12  398  		rc = xen_physdev_op_compat(cmd, arg);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  399  	return rc;
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  400  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  401  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  402  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  403  HYPERVISOR_grant_table_op(unsigned int cmd, void *uop, unsigned int count)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  404  {
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  405  	return _hypercall3(int, grant_table_op, cmd, uop, count);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  406  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  407  
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  408  static inline int
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  409  HYPERVISOR_update_va_mapping_otherdomain(unsigned long va, pte_t new_val,
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  410  					 unsigned long flags, domid_t domid)
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  411  {
ca15f20f1 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  412  	if (sizeof(new_val) == sizeof(long))
ca15f20f1 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  413  		return _hypercall4(int, update_va_mapping_otherdomain, va,
ca15f20f1 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  414  				   new_val.pte, flags, domid);
ca15f20f1 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  415  	else
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17 @416  		return _hypercall5(int, update_va_mapping_otherdomain, va,
ca15f20f1 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08 @417  				   new_val.pte, new_val.pte >> 32,
ca15f20f1 include/asm-x86/xen/hypercall.h      Jeremy Fitzhardinge        2008-07-08  418  				   flags, domid);
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  419  }
a42089dd3 include/asm-i386/xen/hypercall.h     Jeremy Fitzhardinge        2007-07-17  420  

:::::: The code at line 366 was first introduced by commit
:::::: ca15f20f1126f897500ade892a2d598a08da1b56 xen: fix 64-bit hypercall variants

:::::: TO: Jeremy Fitzhardinge <jeremy@...p.org>
:::::: CC: Ingo Molnar <mingo@...e.hu>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (62713 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ