Re: [PATCH 4/5] KVM: Add the irq handling consumer

2015-12-03 Thread kbuild test robot
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]
Hi Yunhong,

[auto build test ERROR on kvm/linux-next]
[also build test ERROR on v4.4-rc3 next-20151202]

url:
https://github.com/0day-ci/linux/commits/Yunhong-Jiang/KVM-Extract-the-irqfd_wakeup_pollin-irqfd_wakeup_pollup/20151204-024034
base:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next
config: arm64-allmodconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   arch/arm64/kvm/built-in.o: In function `kvm_irqfd_assign':
>> :(.text+0x10a70): undefined reference to `irq_bypass_register_consumer'
   arch/arm64/kvm/built-in.o: In function `irqfd_shutdown':
>> :(.text+0x10cd4): undefined reference to `irq_bypass_unregister_consumer'

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


.config.gz
Description: Binary data


Re: [PATCH] vhost: replace % with & on data path

2015-11-30 Thread kbuild test robot
Hi Michael,

[auto build test ERROR on: v4.4-rc3]
[also build test ERROR on: next-20151127]

url:
https://github.com/0day-ci/linux/commits/Michael-S-Tsirkin/vhost-replace-with-on-data-path/20151130-163704
config: s390-performance_defconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=s390 

All errors (new ones prefixed by >>):

   drivers/vhost/vhost.c: In function 'vhost_get_vq_desc':
   drivers/vhost/vhost.c:1345:6: warning: unused variable 'ret' 
[-Wunused-variable]
 int ret;
 ^
   drivers/vhost/vhost.c:1344:13: warning: unused variable 'ring_head' 
[-Wunused-variable]
 __virtio16 ring_head;
^
   drivers/vhost/vhost.c:1341:24: warning: unused variable 'found' 
[-Wunused-variable]
 unsigned int i, head, found = 0;
   ^
   drivers/vhost/vhost.c:1341:18: warning: unused variable 'head' 
[-Wunused-variable]
 unsigned int i, head, found = 0;
 ^
   drivers/vhost/vhost.c:1341:15: warning: unused variable 'i' 
[-Wunused-variable]
 unsigned int i, head, found = 0;
  ^
   drivers/vhost/vhost.c:1340:20: warning: unused variable 'desc' 
[-Wunused-variable]
 struct vring_desc desc;
   ^
   drivers/vhost/vhost.c: At top level:
   drivers/vhost/vhost.c:1373:2: error: expected identifier or '(' before 'if'
 if (unlikely(__get_user(ring_head,
 ^
   In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/uapi/asm-generic/fcntl.h:4,
from arch/s390/include/uapi/asm/fcntl.h:1,
from include/uapi/linux/fcntl.h:4,
from include/linux/fcntl.h:4,
from include/linux/eventfd.h:11,
from drivers/vhost/vhost.c:14:
>> arch/s390/include/asm/uaccess.h:250:2: error: expected identifier or '(' 
>> before ')' token
})
 ^
   include/linux/compiler.h:166:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
 ^
   drivers/vhost/vhost.c:1373:15: note: in expansion of macro '__get_user'
 if (unlikely(__get_user(ring_head,
  ^
   drivers/vhost/vhost.c:1381:2: warning: data definition has no type or 
storage class
 head = vhost16_to_cpu(vq, ring_head);
 ^
   drivers/vhost/vhost.c:1381:2: error: type defaults to 'int' in declaration 
of 'head' [-Werror=implicit-int]
   drivers/vhost/vhost.c:1381:24: error: 'vq' undeclared here (not in a 
function)
 head = vhost16_to_cpu(vq, ring_head);
   ^
   drivers/vhost/vhost.c:1381:28: error: 'ring_head' undeclared here (not in a 
function)
 head = vhost16_to_cpu(vq, ring_head);
   ^
   drivers/vhost/vhost.c:1384:2: error: expected identifier or '(' before 'if'
 if (unlikely(head >= vq->num)) {
 ^
   drivers/vhost/vhost.c:1391:2: warning: data definition has no type or 
storage class
 *out_num = *in_num = 0;
 ^
   drivers/vhost/vhost.c:1391:3: error: type defaults to 'int' in declaration 
of 'out_num' [-Werror=implicit-int]
 *out_num = *in_num = 0;
  ^
   drivers/vhost/vhost.c:1391:14: error: 'in_num' undeclared here (not in a 
function)
 *out_num = *in_num = 0;
 ^
   drivers/vhost/vhost.c:1392:2: error: expected identifier or '(' before 'if'
 if (unlikely(log))
 ^
   drivers/vhost/vhost.c:1395:2: warning: data definition has no type or 
storage class
 i = head;
 ^
   drivers/vhost/vhost.c:1395:2: error: type defaults to 'int' in declaration 
of 'i' [-Werror=implicit-int]
   drivers/vhost/vhost.c:1395:2: error: initializer element is not constant
   drivers/vhost/vhost.c:1396:2: error: expected identifier or '(' before 'do'
 do {
 ^
   drivers/vhost/vhost.c:1454:4: error: expected identifier or '(' before 
'while'
 } while ((i = next_desc(vq, )) != -1);
   ^
   drivers/vhost/vhost.c:1457:4: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '->' token
 vq->last_avail_idx++;
   ^
   In file included from arch/s390/include/asm/bug.h:69:0,
from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from include/asm-generic/preempt.h:4,
from arch/s390/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/wait.h:8,
   

Re: [PATCH] vhost: replace % with & on data path

2015-11-30 Thread kbuild test robot
Hi Michael,

[auto build test ERROR on: v4.4-rc3]
[also build test ERROR on: next-20151127]

url:
https://github.com/0day-ci/linux/commits/Michael-S-Tsirkin/vhost-replace-with-on-data-path/20151130-163704
config: i386-randconfig-s1-201548 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   drivers/vhost/vhost.c: In function 'vhost_get_vq_desc':
>> drivers/vhost/vhost.c:1345:6: warning: unused variable 'ret' 
>> [-Wunused-variable]
 int ret;
 ^
>> drivers/vhost/vhost.c:1344:13: warning: unused variable 'ring_head' 
>> [-Wunused-variable]
 __virtio16 ring_head;
^
>> drivers/vhost/vhost.c:1341:24: warning: unused variable 'found' 
>> [-Wunused-variable]
 unsigned int i, head, found = 0;
   ^
>> drivers/vhost/vhost.c:1341:18: warning: unused variable 'head' 
>> [-Wunused-variable]
 unsigned int i, head, found = 0;
 ^
>> drivers/vhost/vhost.c:1341:15: warning: unused variable 'i' 
>> [-Wunused-variable]
 unsigned int i, head, found = 0;
  ^
>> drivers/vhost/vhost.c:1340:20: warning: unused variable 'desc' 
>> [-Wunused-variable]
 struct vring_desc desc;
   ^
   drivers/vhost/vhost.c: At top level:
>> drivers/vhost/vhost.c:1373:2: error: expected identifier or '(' before 'if'
 if (unlikely(__get_user(ring_head,
 ^
   In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/uapi/asm-generic/fcntl.h:4,
from arch/x86/include/uapi/asm/fcntl.h:1,
from include/uapi/linux/fcntl.h:4,
from include/linux/fcntl.h:4,
from include/linux/eventfd.h:11,
from drivers/vhost/vhost.c:14:
>> arch/x86/include/asm/uaccess.h:414:2: error: expected identifier or '(' 
>> before ')' token
})
 ^
   include/linux/compiler.h:137:45: note: in definition of macro 'unlikely'
#  define unlikely(x) (__builtin_constant_p(x) ? !!(x) : 
__branch_check__(x, 0))
^
   arch/x86/include/asm/uaccess.h:479:2: note: in expansion of macro 
'__get_user_nocheck'
 __get_user_nocheck((x), (ptr), sizeof(*(ptr)))
 ^
>> drivers/vhost/vhost.c:1373:15: note: in expansion of macro '__get_user'
 if (unlikely(__get_user(ring_head,
  ^
>> arch/x86/include/asm/uaccess.h:414:2: error: expected identifier or '(' 
>> before ')' token
})
 ^
   include/linux/compiler.h:137:53: note: in definition of macro 'unlikely'
#  define unlikely(x) (__builtin_constant_p(x) ? !!(x) : 
__branch_check__(x, 0))
^
   arch/x86/include/asm/uaccess.h:479:2: note: in expansion of macro 
'__get_user_nocheck'
 __get_user_nocheck((x), (ptr), sizeof(*(ptr)))
 ^
>> drivers/vhost/vhost.c:1373:15: note: in expansion of macro '__get_user'
 if (unlikely(__get_user(ring_head,
  ^
>> include/linux/compiler.h:126:4: error: expected identifier or '(' before ')' 
>> token
  })
   ^
   include/linux/compiler.h:137:58: note: in expansion of macro 
'__branch_check__'
#  define unlikely(x) (__builtin_constant_p(x) ? !!(x) : 
__branch_check__(x, 0))
 ^
>> drivers/vhost/vhost.c:1373:6: note: in expansion of macro 'unlikely'
 if (unlikely(__get_user(ring_head,
 ^
>> drivers/vhost/vhost.c:1381:2: warning: data definition has no type or 
>> storage class
 head = vhost16_to_cpu(vq, ring_head);
 ^
>> drivers/vhost/vhost.c:1381:2: error: type defaults to 'int' in declaration 
>> of 'head' [-Werror=implicit-int]
>> drivers/vhost/vhost.c:1381:24: error: 'vq' undeclared here (not in a 
>> function)
 head = vhost16_to_cpu(vq, ring_head);
   ^
>> drivers/vhost/vhost.c:1381:28: error: 'ring_head' undeclared here (not in a 
>> function)
 head = vhost16_to_cpu(vq, ring_head);
   ^
   drivers/vhost/vhost.c:1384:2: error: expected identifier or '(' before 'if'
 if (unlikely(head >= vq->num)) {
 ^
   In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/uapi/asm-generic/fcntl.h:4,
from arch/x86/include/uapi/asm/fcntl.h:1,
from include/uapi/linux/fcntl.h:4,
from include/linux/fcntl.h:4,
  

Re: [PATCH] vhost: replace % with & on data path

2015-11-30 Thread kbuild test robot
Hi Michael,

[auto build test ERROR on: v4.4-rc3]
[also build test ERROR on: next-20151127]

url:
https://github.com/0day-ci/linux/commits/Michael-S-Tsirkin/vhost-replace-with-on-data-path/20151130-163704
config: x86_64-randconfig-s0-11301655 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   drivers/vhost/vhost.c: In function 'vhost_get_vq_desc':
   drivers/vhost/vhost.c:1345:6: warning: unused variable 'ret' 
[-Wunused-variable]
 int ret;
 ^
   drivers/vhost/vhost.c:1344:13: warning: unused variable 'ring_head' 
[-Wunused-variable]
 __virtio16 ring_head;
^
   drivers/vhost/vhost.c:1341:24: warning: unused variable 'found' 
[-Wunused-variable]
 unsigned int i, head, found = 0;
   ^
   drivers/vhost/vhost.c:1341:18: warning: unused variable 'head' 
[-Wunused-variable]
 unsigned int i, head, found = 0;
 ^
   drivers/vhost/vhost.c:1341:15: warning: unused variable 'i' 
[-Wunused-variable]
 unsigned int i, head, found = 0;
  ^
   drivers/vhost/vhost.c:1340:20: warning: unused variable 'desc' 
[-Wunused-variable]
 struct vring_desc desc;
   ^
   In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/uapi/asm-generic/fcntl.h:4,
from arch/x86/include/uapi/asm/fcntl.h:1,
from include/uapi/linux/fcntl.h:4,
from include/linux/fcntl.h:4,
from include/linux/eventfd.h:11,
from drivers/vhost/vhost.c:14:
   drivers/vhost/vhost.c: At top level:
>> include/linux/compiler.h:147:2: error: expected identifier or '(' before 'if'
 if (__builtin_constant_p((cond)) ? !!(cond) :   \
 ^
   include/linux/compiler.h:145:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^
>> drivers/vhost/vhost.c:1373:2: note: in expansion of macro 'if'
 if (unlikely(__get_user(ring_head,
 ^
   arch/x86/include/asm/uaccess.h:414:2: error: expected identifier or '(' 
before ')' token
})
 ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
 if (__builtin_constant_p((cond)) ? !!(cond) :   \
   ^
>> drivers/vhost/vhost.c:1373:2: note: in expansion of macro 'if'
 if (unlikely(__get_user(ring_head,
 ^
   drivers/vhost/vhost.c:1373:6: note: in expansion of macro 'unlikely'
 if (unlikely(__get_user(ring_head,
 ^
   arch/x86/include/asm/uaccess.h:479:2: note: in expansion of macro 
'__get_user_nocheck'
 __get_user_nocheck((x), (ptr), sizeof(*(ptr)))
 ^
   drivers/vhost/vhost.c:1373:15: note: in expansion of macro '__get_user'
 if (unlikely(__get_user(ring_head,
  ^
   arch/x86/include/asm/uaccess.h:414:2: error: expected identifier or '(' 
before ')' token
})
 ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
 if (__builtin_constant_p((cond)) ? !!(cond) :   \
   ^
>> drivers/vhost/vhost.c:1373:2: note: in expansion of macro 'if'
 if (unlikely(__get_user(ring_head,
 ^
   drivers/vhost/vhost.c:1373:6: note: in expansion of macro 'unlikely'
 if (unlikely(__get_user(ring_head,
 ^
   arch/x86/include/asm/uaccess.h:479:2: note: in expansion of macro 
'__get_user_nocheck'
 __get_user_nocheck((x), (ptr), sizeof(*(ptr)))
 ^
   drivers/vhost/vhost.c:1373:15: note: in expansion of macro '__get_user'
 if (unlikely(__get_user(ring_head,
  ^
   include/linux/compiler.h:126:4: error: expected identifier or '(' before ')' 
token
  })
   ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
 if (__builtin_constant_p((cond)) ? !!(cond) :   \
   ^
>> drivers/vhost/vhost.c:1373:2: note: in expansion of macro 'if'
 if (unlikely(__get_user(ring_head,
 ^
   include/linux/compiler.h:137:58: note: in expansion of macro 
'__branch_check__'
#  define unlikely(x) (__builtin_constant_p(x) ? !!(x) : 
__branch_check__(x, 0))
 ^
   drivers/vhost/vhost.c:1373:6: note: in expansion of macro 'unlikely'
 if (unlikely(__get_user(ring_head,
 ^
   arch/x86/include/asm/uaccess.h:414:2: error: expected identifier or '(' 
before ')' token
})
 ^
   include/linux/compiler.h:147:40: note: in definition of macro '__trace_if'
 if (__builtin_constant_p((cond)) ? !!(cond) :   \
   ^
>> 

Re: [PATCH v6 4/7] KVM: arm64: Implement vGICv3 distributor and redistributor access from userspace

2015-11-24 Thread kbuild test robot
Hi Pavel,

[auto build test ERROR on kvm/linux-next]
[also build test ERROR on v4.4-rc2 next-20151124]

url:
https://github.com/0day-ci/linux/commits/Pavel-Fedin/KVM-arm64-Implement-API-for-vGICv3-live-migration/20151124-171812
base:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next
config: arm64-allyesconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64 

Note: the 
linux-review/Pavel-Fedin/KVM-arm64-Implement-API-for-vGICv3-live-migration/20151124-171812
 HEAD 03ad7de97d6a551c4a70e7723383007f54bf56a3 builds fine.
  It only hurts bisectibility.

All error/warnings (new ones prefixed by >>):

   arch/arm64/kvm/../../../virt/kvm/arm/vgic-v3-emul.c: In function 
'vgic_v3_has_attr':
>> arch/arm64/kvm/../../../virt/kvm/arm/vgic-v3-emul.c:1114:24: error: storage 
>> size of 'params' isn't known
 struct sys_reg_params params;
   ^
>> arch/arm64/kvm/../../../virt/kvm/arm/vgic-v3-emul.c:1134:7: error: 
>> 'KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS' undeclared (first use in this function)
 case KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS:
  ^
   arch/arm64/kvm/../../../virt/kvm/arm/vgic-v3-emul.c:1134:7: note: each 
undeclared identifier is reported only once for each function it appears in
>> arch/arm64/kvm/../../../virt/kvm/arm/vgic-v3-emul.c:1135:25: error: 
>> 'KVM_DEV_ARM_VGIC_SYSREG_MASK' undeclared (first use in this function)
  regid = (attr->attr & KVM_DEV_ARM_VGIC_SYSREG_MASK) |
^
>> arch/arm64/kvm/../../../virt/kvm/arm/vgic-v3-emul.c:1137:3: error: implicit 
>> declaration of function 'find_reg_by_id' 
>> [-Werror=implicit-function-declaration]
  return find_reg_by_id(regid, , gic_v3_icc_reg_descs,
  ^
>> arch/arm64/kvm/../../../virt/kvm/arm/vgic-v3-emul.c:1137:41: error: 
>> 'gic_v3_icc_reg_descs' undeclared (first use in this function)
  return find_reg_by_id(regid, , gic_v3_icc_reg_descs,
^
   In file included from include/linux/thread_info.h:11:0,
from include/asm-generic/current.h:4,
from arch/arm64/include/generated/asm/current.h:1,
from include/linux/mutex.h:13,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:15,
from include/linux/kobject.h:21,
from include/linux/device.h:17,
from include/linux/node.h:17,
from include/linux/cpu.h:16,
from arch/arm64/kvm/../../../virt/kvm/arm/vgic-v3-emul.c:38:
>> include/linux/bug.h:33:45: error: bit-field '' width not an 
>> integer constant
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
^
   include/linux/compiler-gcc.h:64:28: note: in expansion of macro 
'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
   ^
   include/linux/kernel.h:54:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + 
__must_be_array(arr))
  ^
>> arch/arm64/kvm/../../../virt/kvm/arm/vgic-v3-emul.c:1138:11: note: in 
>> expansion of macro 'ARRAY_SIZE'
  ARRAY_SIZE(gic_v3_icc_reg_descs)) ?
  ^
   arch/arm64/kvm/../../../virt/kvm/arm/vgic-v3-emul.c:1114:24: warning: unused 
variable 'params' [-Wunused-variable]
 struct sys_reg_params params;
   ^
   cc1: some warnings being treated as errors

vim +/KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS +1134 
arch/arm64/kvm/../../../virt/kvm/arm/vgic-v3-emul.c

  1108  }
  1109  
  1110  static int vgic_v3_has_attr(struct kvm_device *dev,
    struct kvm_device_attr *attr)
  1112  {
  1113  phys_addr_t offset;
> 1114  struct sys_reg_params params;
  1115  u64 regid;
  1116  
  1117  switch (attr->group) {
  1118  case KVM_DEV_ARM_VGIC_GRP_ADDR:
  1119  switch (attr->attr) {
  1120  case KVM_VGIC_V2_ADDR_TYPE_DIST:
  1121  case KVM_VGIC_V2_ADDR_TYPE_CPU:
  1122  return -ENXIO;
  1123  case KVM_VGIC_V3_ADDR_TYPE_DIST:
  1124  case KVM_VGIC_V3_ADDR_TYPE_REDIST:
  1125  return 0;
  1126  }
  1127  break;
  1128  case KVM_DEV_ARM_VGIC_GRP_DIST_REGS:
  1129  offset = attr->attr & KVM_DEV_ARM_VGIC_OFFSET_MASK;
  1130  return vgic_has_attr_regs(vgic_v3_dist_ranges, offset);
  1131  case KVM_DEV_ARM_VGIC_GRP_REDIST_REGS:
  1132   

Re: [PATCH 3/3] vfio: Introduce generic MSI mapping operations

2015-11-24 Thread kbuild test robot
Hi Pavel,

[auto build test ERROR on tip/irq/core]
[also build test ERROR on v4.4-rc2 next-20151124]

url:
https://github.com/0day-ci/linux/commits/Pavel-Fedin/Introduce-MSI-hardware-mapping-for-VFIO/20151124-155050
config: powerpc-allmodconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   drivers/vfio/vfio.c: In function 'vfio_device_map_msi':
>> drivers/vfio/vfio.c:908:11: error: dereferencing pointer to incomplete type 
>> 'struct msi_domain_info'
 if (!info->ops->vfio_map)
  ^
   drivers/vfio/vfio.c: In function 'msi_release':
   drivers/vfio/vfio.c:958:6: error: dereferencing pointer to incomplete type 
'struct msi_domain_info'
 info->ops->vfio_unmap(vmsi->domain, container->iommu_driver->ops,
 ^
   drivers/vfio/vfio.c: In function 'vfio_device_unmap_msi':
   drivers/vfio/vfio.c:976:11: error: dereferencing pointer to incomplete type 
'struct msi_domain_info'
 if (!info->ops->vfio_unmap)
  ^

vim +908 drivers/vfio/vfio.c

   902  struct vfio_msi *vmsi;
   903  int ret;
   904  
   905  if (!msi_domain)
   906  return 0;
   907  info = msi_domain->host_data;
 > 908  if (!info->ops->vfio_map)
   909  return 0;
   910  
   911  device = dev_get_drvdata(dev);

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


.config.gz
Description: Binary data


Re: [PATCH] KVM: arm: Don't try to flush hyp-mode device mappings

2015-11-05 Thread kbuild test robot
Hi Christoffer,

[auto build test WARNING on: kvmarm/next]
[also build test WARNING on: v4.3 next-20151105]

url:
https://github.com/0day-ci/linux/commits/Christoffer-Dall/KVM-arm-Don-t-try-to-flush-hyp-mode-device-mappings/20151105-232548
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git next
config: arm64-defconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All warnings (new ones prefixed by >>):

   arch/arm64/kvm/../../../arch/arm/kvm/mmu.c: In function 'unmap_ptes':
>> arch/arm64/kvm/../../../arch/arm/kvm/mmu.c:212:3: warning: ISO C90 forbids 
>> mixed declarations and code [-Wdeclaration-after-statement]
  pte_t old_pte = *pte;
  ^

vim +212 arch/arm64/kvm/../../../arch/arm/kvm/mmu.c

363ef89f8 Marc Zyngier 2014-12-19  196   *
363ef89f8 Marc Zyngier 2014-12-19  197   * This is why right after 
unmapping a page/section and invalidating
363ef89f8 Marc Zyngier 2014-12-19  198   * the corresponding TLBs, we call 
kvm_flush_dcache_p*() to make sure
363ef89f8 Marc Zyngier 2014-12-19  199   * the IO subsystem will never hit 
in the cache.
363ef89f8 Marc Zyngier 2014-12-19  200   */
4f853a714 Christoffer Dall 2014-05-09  201  static void unmap_ptes(struct kvm 
*kvm, pmd_t *pmd,
4f853a714 Christoffer Dall 2014-05-09  202 phys_addr_t 
addr, phys_addr_t end)
4f728276f Marc Zyngier 2013-04-12  203  {
4f853a714 Christoffer Dall 2014-05-09  204  phys_addr_t start_addr = addr;
4f853a714 Christoffer Dall 2014-05-09  205  pte_t *pte, *start_pte;
4f853a714 Christoffer Dall 2014-05-09  206  
4f853a714 Christoffer Dall 2014-05-09  207  start_pte = pte = 
pte_offset_kernel(pmd, addr);
4f853a714 Christoffer Dall 2014-05-09  208  do {
8e9a96138 Christoffer Dall 2015-11-05  209  if (pte_none(*pte))
8e9a96138 Christoffer Dall 2015-11-05  210  continue;
8e9a96138 Christoffer Dall 2015-11-05  211  
363ef89f8 Marc Zyngier 2014-12-19 @212  pte_t old_pte = *pte;
363ef89f8 Marc Zyngier 2014-12-19  213  
4f728276f Marc Zyngier 2013-04-12  214  kvm_set_pte(pte, 
__pte(0));
d4cb9df5d Marc Zyngier 2013-05-14  215  
kvm_tlb_flush_vmid_ipa(kvm, addr);
363ef89f8 Marc Zyngier 2014-12-19  216  
363ef89f8 Marc Zyngier 2014-12-19  217  /* No need to 
invalidate the cache for device mappings */
8e9a96138 Christoffer Dall 2015-11-05  218  if ((pte_val(old_pte) & 
PAGE_S2_DEVICE) != PAGE_S2_DEVICE &&
8e9a96138 Christoffer Dall 2015-11-05  219  (pte_val(old_pte) & 
PAGE_HYP_DEVICE) != PAGE_HYP_DEVICE)
363ef89f8 Marc Zyngier 2014-12-19  220  
kvm_flush_dcache_pte(old_pte);

:: The code at line 212 was first introduced by commit
:: 363ef89f8e9bcedc28b976d0fe2d858fe139c122 arm/arm64: KVM: Invalidate data 
cache on unmap

:: TO: Marc Zyngier 
:: CC: Christoffer Dall 

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


.config.gz
Description: Binary data


Re: [PATCH] KVM: arm: Don't try to flush hyp-mode device mappings

2015-11-05 Thread kbuild test robot
Hi Christoffer,

[auto build test WARNING on: kvmarm/next]
[also build test WARNING on: v4.3 next-20151105]

url:
https://github.com/0day-ci/linux/commits/Christoffer-Dall/KVM-arm-Don-t-try-to-flush-hyp-mode-device-mappings/20151105-232548
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git next
config: arm-axm55xx_defconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

   arch/arm/kvm/mmu.c: In function 'unmap_ptes':
>> arch/arm/kvm/mmu.c:212:3: warning: ISO C90 forbids mixed declarations and 
>> code [-Wdeclaration-after-statement]
  pte_t old_pte = *pte;
  ^

vim +212 arch/arm/kvm/mmu.c

363ef89f8 Marc Zyngier 2014-12-19  196   *
363ef89f8 Marc Zyngier 2014-12-19  197   * This is why right after 
unmapping a page/section and invalidating
363ef89f8 Marc Zyngier 2014-12-19  198   * the corresponding TLBs, we call 
kvm_flush_dcache_p*() to make sure
363ef89f8 Marc Zyngier 2014-12-19  199   * the IO subsystem will never hit 
in the cache.
363ef89f8 Marc Zyngier 2014-12-19  200   */
4f853a714 Christoffer Dall 2014-05-09  201  static void unmap_ptes(struct kvm 
*kvm, pmd_t *pmd,
4f853a714 Christoffer Dall 2014-05-09  202 phys_addr_t 
addr, phys_addr_t end)
4f728276f Marc Zyngier 2013-04-12  203  {
4f853a714 Christoffer Dall 2014-05-09  204  phys_addr_t start_addr = addr;
4f853a714 Christoffer Dall 2014-05-09  205  pte_t *pte, *start_pte;
4f853a714 Christoffer Dall 2014-05-09  206  
4f853a714 Christoffer Dall 2014-05-09  207  start_pte = pte = 
pte_offset_kernel(pmd, addr);
4f853a714 Christoffer Dall 2014-05-09  208  do {
8e9a96138 Christoffer Dall 2015-11-05  209  if (pte_none(*pte))
8e9a96138 Christoffer Dall 2015-11-05  210  continue;
8e9a96138 Christoffer Dall 2015-11-05  211  
363ef89f8 Marc Zyngier 2014-12-19 @212  pte_t old_pte = *pte;
363ef89f8 Marc Zyngier 2014-12-19  213  
4f728276f Marc Zyngier 2013-04-12  214  kvm_set_pte(pte, 
__pte(0));
d4cb9df5d Marc Zyngier 2013-05-14  215  
kvm_tlb_flush_vmid_ipa(kvm, addr);
363ef89f8 Marc Zyngier 2014-12-19  216  
363ef89f8 Marc Zyngier 2014-12-19  217  /* No need to 
invalidate the cache for device mappings */
8e9a96138 Christoffer Dall 2015-11-05  218  if ((pte_val(old_pte) & 
PAGE_S2_DEVICE) != PAGE_S2_DEVICE &&
8e9a96138 Christoffer Dall 2015-11-05  219  (pte_val(old_pte) & 
PAGE_HYP_DEVICE) != PAGE_HYP_DEVICE)
363ef89f8 Marc Zyngier 2014-12-19  220  
kvm_flush_dcache_pte(old_pte);

:: The code at line 212 was first introduced by commit
:: 363ef89f8e9bcedc28b976d0fe2d858fe139c122 arm/arm64: KVM: Invalidate data 
cache on unmap

:: TO: Marc Zyngier 
:: CC: Christoffer Dall 

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


.config.gz
Description: Binary data


[vfio:next 15/15] drivers/vfio/vfio.c:1002:32-35: ERROR: driver is NULL but dereferenced.

2015-11-03 Thread kbuild test robot
tree:   https://github.com/awilliam/linux-vfio.git next
head:   f54e0bcf65bf7d2015e1aa1c6353e5feb71c3654
commit: f54e0bcf65bf7d2015e1aa1c6353e5feb71c3654 [15/15] vfio: Include No-IOMMU 
mode


coccinelle warnings: (new ones prefixed by >>)

>> drivers/vfio/vfio.c:1002:32-35: ERROR: driver is NULL but dereferenced.

vim +1002 drivers/vfio/vfio.c

0b43c082 Alex Williamson 2013-04-29   986   
down_read(>group_lock);
0b43c082 Alex Williamson 2013-04-29   987  
0b43c082 Alex Williamson 2013-04-29   988   driver = 
container->iommu_driver;
0b43c082 Alex Williamson 2013-04-29   989  
cba3345c Alex Williamson 2012-07-31   990   switch (arg) {
cba3345c Alex Williamson 2012-07-31   991   /* No base extensions 
yet */
cba3345c Alex Williamson 2012-07-31   992   default:
cba3345c Alex Williamson 2012-07-31   993   /*
cba3345c Alex Williamson 2012-07-31   994* If no driver is set, 
poll all registered drivers for
cba3345c Alex Williamson 2012-07-31   995* extensions and 
return the first positive result.  If
cba3345c Alex Williamson 2012-07-31   996* a driver is already 
set, further queries will be passed
cba3345c Alex Williamson 2012-07-31   997* only to that driver.
cba3345c Alex Williamson 2012-07-31   998*/
cba3345c Alex Williamson 2012-07-31   999   if (!driver) {
cba3345c Alex Williamson 2012-07-31  1000   
mutex_lock(_drivers_lock);
f54e0bcf Alex Williamson 2015-10-15  1001   
vfio_for_each_iommu_driver(container, driver) {
cba3345c Alex Williamson 2012-07-31 @1002   if 
(!try_module_get(driver->ops->owner))
cba3345c Alex Williamson 2012-07-31  1003   
continue;
cba3345c Alex Williamson 2012-07-31  1004  
cba3345c Alex Williamson 2012-07-31  1005   ret = 
driver->ops->ioctl(NULL,
cba3345c Alex Williamson 2012-07-31  1006   
 VFIO_CHECK_EXTENSION,
cba3345c Alex Williamson 2012-07-31  1007   
 arg);
cba3345c Alex Williamson 2012-07-31  1008   
module_put(driver->ops->owner);
cba3345c Alex Williamson 2012-07-31  1009   if (ret 
> 0)
cba3345c Alex Williamson 2012-07-31  1010   
break;

:: The code at line 1002 was first introduced by commit
:: cba3345cc494ad286ca8823f44b2c16cae496679 vfio: VFIO core

:: TO: Alex Williamson 
:: CC: Alex Williamson 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v4 18/21] KVM: ARM64: Add PMU overflow interrupt routing

2015-10-30 Thread kbuild test robot
Hi Shannon,

[auto build test ERROR on kvm/linux-next -- if it's inappropriate base, please 
suggest rules for selecting the more suitable base]

url:
https://github.com/0day-ci/linux/commits/Shannon-Zhao/KVM-ARM64-Add-guest-PMU-support/20151030-143148
config: arm-axm55xx_defconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   In file included from arch/arm/kvm/arm.c:31:0:
>> include/kvm/arm_pmu.h:22:21: fatal error: asm/pmu.h: No such file or 
>> directory
#include 
^
   compilation terminated.

vim +22 include/kvm/arm_pmu.h

219856f5 Shannon Zhao 2015-10-30  16   */
219856f5 Shannon Zhao 2015-10-30  17  
219856f5 Shannon Zhao 2015-10-30  18  #ifndef __ASM_ARM_KVM_PMU_H
219856f5 Shannon Zhao 2015-10-30  19  #define __ASM_ARM_KVM_PMU_H
219856f5 Shannon Zhao 2015-10-30  20  
219856f5 Shannon Zhao 2015-10-30  21  #include 
219856f5 Shannon Zhao 2015-10-30 @22  #include 
219856f5 Shannon Zhao 2015-10-30  23  
219856f5 Shannon Zhao 2015-10-30  24  struct kvm_pmc {
219856f5 Shannon Zhao 2015-10-30  25u8 idx;/* index into the pmu->pmc array 
*/

:: The code at line 22 was first introduced by commit
:: 219856f54d23298fff48e6e20e7e87fc45e42798 KVM: ARM64: Define PMU data 
structure for each vcpu

:: TO: Shannon Zhao 
:: CC: 0day robot 

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


.config.gz
Description: Binary data


Re: [PATCH 5/6] KVM: PPC: Book3S HV: Send IPI to host core to wake VCPU

2015-10-30 Thread kbuild test robot
Hi Suresh,

[auto build test ERROR on kvm/linux-next -- if it's inappropriate base, please 
suggest rules for selecting the more suitable base]

url:
https://github.com/0day-ci/linux/commits/Suresh-Warrier/KVM-PPC-Book3S-HV-Optimize-wakeup-VCPU-from-H_IPI/20151030-081329
config: powerpc-defconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   arch/powerpc/kernel/smp.c: In function 'smp_ipi_demux':
>> arch/powerpc/kernel/smp.c:261:25: error: 'PPC_MSG_RM_HOST_ACTION' undeclared 
>> (first use in this function)
  if (all & IPI_MESSAGE(PPC_MSG_RM_HOST_ACTION))
^
   arch/powerpc/kernel/smp.c:239:41: note: in definition of macro 'IPI_MESSAGE'
#define IPI_MESSAGE(A) (1 << (24 - 8 * (A)))
^
   arch/powerpc/kernel/smp.c:261:25: note: each undeclared identifier is 
reported only once for each function it appears in
  if (all & IPI_MESSAGE(PPC_MSG_RM_HOST_ACTION))
^
   arch/powerpc/kernel/smp.c:239:41: note: in definition of macro 'IPI_MESSAGE'
#define IPI_MESSAGE(A) (1 << (24 - 8 * (A)))
^
--
   arch/powerpc/kvm/book3s_hv_rm_xics.c: In function 'icp_rm_set_vcpu_irq':
   arch/powerpc/kvm/book3s_hv_rm_xics.c:142:4: error: implicit declaration of 
function 'smp_muxed_ipi_rm_message_pass' [-Werror=implicit-function-declaration]
   smp_muxed_ipi_rm_message_pass(hcpu,
   ^
>> arch/powerpc/kvm/book3s_hv_rm_xics.c:143:7: error: 'PPC_MSG_RM_HOST_ACTION' 
>> undeclared (first use in this function)
  PPC_MSG_RM_HOST_ACTION);
  ^
   arch/powerpc/kvm/book3s_hv_rm_xics.c:143:7: note: each undeclared identifier 
is reported only once for each function it appears in
   cc1: all warnings being treated as errors

vim +/PPC_MSG_RM_HOST_ACTION +261 arch/powerpc/kernel/smp.c

   255   * Must check for PPC_MSG_RM_HOST_ACTION messages
   256   * before PPC_MSG_CALL_FUNCTION messages because when
   257   * a VM is destroyed, we call kick_all_cpus_sync()
   258   * to ensure that any pending PPC_MSG_RM_HOST_ACTION
   259   * messages have completed before we free any VCPUs.
   260   */
 > 261  if (all & IPI_MESSAGE(PPC_MSG_RM_HOST_ACTION))
   262  kvmppc_xics_ipi_action();
   263  #endif
   264  if (all & IPI_MESSAGE(PPC_MSG_CALL_FUNCTION))

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


.config.gz
Description: Binary data


Re: [PATCH 5/6] KVM: PPC: Book3S HV: Send IPI to host core to wake VCPU

2015-10-29 Thread kbuild test robot
Hi Suresh,

[auto build test ERROR on kvm/linux-next -- if it's inappropriate base, please 
suggest rules for selecting the more suitable base]

url:
https://github.com/0day-ci/linux/commits/Suresh-Warrier/KVM-PPC-Book3S-HV-Optimize-wakeup-VCPU-from-H_IPI/20151030-081329
config: powerpc-defconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   arch/powerpc/kvm/book3s_hv_rm_xics.c: In function 'icp_rm_set_vcpu_irq':
>> arch/powerpc/kvm/book3s_hv_rm_xics.c:142:4: error: implicit declaration of 
>> function 'smp_muxed_ipi_rm_message_pass' 
>> [-Werror=implicit-function-declaration]
   smp_muxed_ipi_rm_message_pass(hcpu,
   ^
   arch/powerpc/kvm/book3s_hv_rm_xics.c:143:7: error: 'PPC_MSG_RM_HOST_ACTION' 
undeclared (first use in this function)
  PPC_MSG_RM_HOST_ACTION);
  ^
   arch/powerpc/kvm/book3s_hv_rm_xics.c:143:7: note: each undeclared identifier 
is reported only once for each function it appears in
   cc1: all warnings being treated as errors

vim +/smp_muxed_ipi_rm_message_pass +142 arch/powerpc/kvm/book3s_hv_rm_xics.c

   136  hcore = -1;
   137  if (kvmppc_host_rm_ops_hv)
   138  hcore = 
find_available_hostcore(XICS_RM_KICK_VCPU);
   139  if (hcore != -1) {
   140  hcpu = hcore << threads_shift;
   141  kvmppc_host_rm_ops_hv->rm_core[hcore].rm_data = 
vcpu;
 > 142  smp_muxed_ipi_rm_message_pass(hcpu,
   143  PPC_MSG_RM_HOST_ACTION);
   144  } else {
   145  this_icp->rm_action |= XICS_RM_KICK_VCPU;

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


.config.gz
Description: Binary data


Re: [PATCH v3] VFIO: platform: reset: AMD xgbe reset module

2015-10-24 Thread kbuild test robot
Hi Eric,

[auto build test ERROR on asm-generic/master -- if it's inappropriate base, 
please suggest rules for selecting the more suitable base]

url:
https://github.com/0day-ci/linux/commits/Eric-Auger/VFIO-platform-reset-AMD-xgbe-reset-module/20151024-000245
config: arm-allyesconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

>> drivers/vfio/platform/reset/vfio_platform_amdxgbe.c:122:27: error: expected 
>> declaration specifiers or '...' before string constant
module_vfio_reset_handler("amd,xgbe-seattle-v1a", 
vfio_platform_amdxgbe_reset);
  ^
>> drivers/vfio/platform/reset/vfio_platform_amdxgbe.c:122:51: error: expected 
>> declaration specifiers or '...' before 'vfio_platform_amdxgbe_reset'
module_vfio_reset_handler("amd,xgbe-seattle-v1a", 
vfio_platform_amdxgbe_reset);
  ^
--
>> /kbuild/src/defs/drivers/vfio/platform/reset/vfio_platform_amdxgbe.c:122:27: 
>> error: expected declaration specifiers or '...' before string constant
module_vfio_reset_handler("amd,xgbe-seattle-v1a", 
vfio_platform_amdxgbe_reset);
  ^
>> /kbuild/src/defs/drivers/vfio/platform/reset/vfio_platform_amdxgbe.c:122:51: 
>> error: expected declaration specifiers or '...' before 
>> 'vfio_platform_amdxgbe_reset'
module_vfio_reset_handler("amd,xgbe-seattle-v1a", 
vfio_platform_amdxgbe_reset);
  ^

vim +122 drivers/vfio/platform/reset/vfio_platform_amdxgbe.c

   116  if (!count)
   117  pr_warn("%s MAC SW reset failed\n", __func__);
   118  
   119  return 0;
   120  }
   121  
 > 122  module_vfio_reset_handler("amd,xgbe-seattle-v1a", 
 > vfio_platform_amdxgbe_reset);
   123  
   124  MODULE_VERSION("0.1");
   125  MODULE_LICENSE("GPL v2");

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


.config.gz
Description: Binary data


Re: [PATCH v2 1/4] KVM: X86: Add arrays to save/restore LBR MSRs

2015-10-23 Thread kbuild test robot
Hi Jian,

[auto build test ERROR on v4.3-rc6 -- if it's inappropriate base, please 
suggest rules for selecting the more suitable base]

url:
https://github.com/0day-ci/linux/commits/Jian-Zhou/KVM-X86-Add-arrays-to-save-restore-LBR-MSRs/20151023-172601
config: x86_64-lkp (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

Note: the 
linux-review/Jian-Zhou/KVM-X86-Add-arrays-to-save-restore-LBR-MSRs/20151023-172601
 HEAD d402c03a709c1dff60e2800becbafaf3b2d86dcd builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   In file included from include/linux/kvm_host.h:34:0,
from arch/x86/kvm/../../../virt/kvm/kvm_main.c:21:
>> arch/x86/include/asm/kvm_host.h:530:25: error: 'MAX_NUM_LBR_MSRS' undeclared 
>> here (not in a function)
  struct msr_data guest[MAX_NUM_LBR_MSRS];
^

vim +/MAX_NUM_LBR_MSRS +530 arch/x86/include/asm/kvm_host.h

   524  
   525  int lbr_status;
   526  int lbr_used;
   527  
   528  struct lbr_msr {
   529  unsigned nr;
 > 530  struct msr_data guest[MAX_NUM_LBR_MSRS];
   531  struct msr_data host[MAX_NUM_LBR_MSRS];
   532  }lbr_msr;
   533  

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


.config.gz
Description: Binary data


[kvm:master 9/11] arch/x86/kvm/x86.c:7499:3: note: in expansion of macro 'if'

2015-10-13 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git master
head:   73917739334c6509833b0403b81d4a04a8784bdf
commit: f0d648bdf0a5bbc91da6099d5282f77996558ea4 [9/11] KVM: x86: map/unmap 
private slots in __x86_set_memory_region
config: i386-randconfig-x000-10121721 (attached as .config)
reproduce:
git checkout f0d648bdf0a5bbc91da6099d5282f77996558ea4
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/kvm_host.h:9,
from arch/x86/kvm/x86.c:22:
   arch/x86/kvm/x86.c: In function '__x86_set_memory_region':
   arch/x86/kvm/x86.c:7499:14: warning: cast to pointer from integer of 
different size [-Wint-to-pointer-cast]
  if (IS_ERR((void *)hva))
 ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
 if (__builtin_constant_p((cond)) ? !!(cond) :   \
   ^
>> arch/x86/kvm/x86.c:7499:3: note: in expansion of macro 'if'
  if (IS_ERR((void *)hva))
  ^
   arch/x86/kvm/x86.c:7499:14: warning: cast to pointer from integer of 
different size [-Wint-to-pointer-cast]
  if (IS_ERR((void *)hva))
 ^
   include/linux/compiler.h:147:40: note: in definition of macro '__trace_if'
 if (__builtin_constant_p((cond)) ? !!(cond) :   \
   ^
>> arch/x86/kvm/x86.c:7499:3: note: in expansion of macro 'if'
  if (IS_ERR((void *)hva))
  ^
   arch/x86/kvm/x86.c:7499:14: warning: cast to pointer from integer of 
different size [-Wint-to-pointer-cast]
  if (IS_ERR((void *)hva))
 ^
   include/linux/compiler.h:158:16: note: in definition of macro '__trace_if'
  __r = !!(cond); \
   ^
>> arch/x86/kvm/x86.c:7499:3: note: in expansion of macro 'if'
  if (IS_ERR((void *)hva))
  ^
   arch/x86/kvm/x86.c:7500:19: warning: cast to pointer from integer of 
different size [-Wint-to-pointer-cast]
   return PTR_ERR((void *)hva);
  ^

vim +/if +7499 arch/x86/kvm/x86.c

  7483  
  7484  /* Called with kvm->slots_lock held.  */
  7485  if (WARN_ON(id >= KVM_MEM_SLOTS_NUM))
  7486  return -EINVAL;
  7487  
  7488  slot = id_to_memslot(slots, id);
  7489  if (size) {
  7490  if (WARN_ON(slot->npages))
  7491  return -EEXIST;
  7492  
  7493  /*
  7494   * MAP_SHARED to prevent internal slot pages from being 
moved
  7495   * by fork()/COW.
  7496   */
  7497  hva = vm_mmap(NULL, 0, size, PROT_READ | PROT_WRITE,
  7498MAP_SHARED | MAP_ANONYMOUS, 0);
> 7499  if (IS_ERR((void *)hva))
  7500  return PTR_ERR((void *)hva);
  7501  } else {
  7502  if (!slot->npages)
  7503  return 0;
  7504  
  7505  hva = 0;
  7506  }
  7507  

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


.config.gz
Description: Binary data


[kvm:master 9/11] arch/x86/kvm/x86.c:7499:14: warning: cast to pointer from integer of different size

2015-10-13 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git master
head:   73917739334c6509833b0403b81d4a04a8784bdf
commit: f0d648bdf0a5bbc91da6099d5282f77996558ea4 [9/11] KVM: x86: map/unmap 
private slots in __x86_set_memory_region
config: i386-randconfig-s0-201541 (attached as .config)
reproduce:
git checkout f0d648bdf0a5bbc91da6099d5282f77996558ea4
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

   arch/x86/kvm/x86.c: In function '__x86_set_memory_region':
>> arch/x86/kvm/x86.c:7499:14: warning: cast to pointer from integer of 
>> different size [-Wint-to-pointer-cast]
  if (IS_ERR((void *)hva))
 ^
   arch/x86/kvm/x86.c:7500:19: warning: cast to pointer from integer of 
different size [-Wint-to-pointer-cast]
   return PTR_ERR((void *)hva);
  ^

vim +7499 arch/x86/kvm/x86.c

  7483  
  7484  /* Called with kvm->slots_lock held.  */
  7485  if (WARN_ON(id >= KVM_MEM_SLOTS_NUM))
  7486  return -EINVAL;
  7487  
  7488  slot = id_to_memslot(slots, id);
  7489  if (size) {
  7490  if (WARN_ON(slot->npages))
  7491  return -EEXIST;
  7492  
  7493  /*
  7494   * MAP_SHARED to prevent internal slot pages from being 
moved
  7495   * by fork()/COW.
  7496   */
  7497  hva = vm_mmap(NULL, 0, size, PROT_READ | PROT_WRITE,
  7498MAP_SHARED | MAP_ANONYMOUS, 0);
> 7499  if (IS_ERR((void *)hva))
  7500  return PTR_ERR((void *)hva);
  7501  } else {
  7502  if (!slot->npages)
  7503  return 0;
  7504  
  7505  hva = 0;
  7506  }
  7507  

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


.config.gz
Description: Binary data


Re: [PATCH] kvm: svm: Only propagate next_rip when guest supports it

2015-10-07 Thread kbuild test robot
Hi Joerg,

[auto build test ERROR on v4.3-rc4 -- if it's inappropriate base, please ignore]

config: i386-randconfig-x009-201540 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   arch/x86/kvm/svm.c: In function 'nested_svm_vmexit':
>> arch/x86/kvm/svm.c:2369:28: error: 'vcpu' undeclared (first use in this 
>> function)
 if (guest_cpuid_has_nrips(vcpu))
   ^
   arch/x86/kvm/svm.c:2369:28: note: each undeclared identifier is reported 
only once for each function it appears in

vim +/vcpu +2369 arch/x86/kvm/svm.c

  2363  nested_vmcb->control.exit_code_hi  = 
vmcb->control.exit_code_hi;
  2364  nested_vmcb->control.exit_info_1   = 
vmcb->control.exit_info_1;
  2365  nested_vmcb->control.exit_info_2   = 
vmcb->control.exit_info_2;
  2366  nested_vmcb->control.exit_int_info = 
vmcb->control.exit_int_info;
  2367  nested_vmcb->control.exit_int_info_err = 
vmcb->control.exit_int_info_err;
  2368  
> 2369  if (guest_cpuid_has_nrips(vcpu))
  2370  nested_vmcb->control.next_rip  = vmcb->control.next_rip;
  2371  
  2372  /*

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


.config.gz
Description: Binary data


Re: [RFC PATCH 5/6] vfio-pci: Create iommu mapping for msi interrupt

2015-09-30 Thread kbuild test robot
Hi Bharat,

[auto build test results on v4.3-rc3 -- if it's inappropriate base, please 
ignore]

config: i386-allmodconfig (attached as .config)
reproduce:
  git checkout 6fdf43e0b410216a2fe2d1d6e8541fb4f69557f9
  # save the attached .config to linux build tree
  make ARCH=i386 

All error/warnings (new ones prefixed by >>):

>> ERROR: "vfio_device_map_msi" undefined!
>> ERROR: "vfio_device_unmap_msi" undefined!

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


.config.gz
Description: Binary data


Re: [RFC PATCH 5/6] vfio-pci: Create iommu mapping for msi interrupt

2015-09-30 Thread kbuild test robot
Hi Bharat,

[auto build test results on v4.3-rc3 -- if it's inappropriate base, please 
ignore]

config: x86_64-rhel (attached as .config)
reproduce:
  git checkout 6fdf43e0b410216a2fe2d1d6e8541fb4f69557f9
  # save the attached .config to linux build tree
  make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

>> ERROR: "vfio_device_map_msi" [drivers/vfio/pci/vfio-pci.ko] undefined!
>> ERROR: "vfio_device_unmap_msi" [drivers/vfio/pci/vfio-pci.ko] undefined!

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


.config.gz
Description: Binary data


Re: [PATCH v3 4/4] scsi: provide UAPI version of scsi/sg.h and scsi/scsi_ioctl.h

2015-09-28 Thread kbuild test robot
Hi Paolo,

[auto build test results on v4.3-rc2 -- if it's inappropriate base, please 
ignore]

config: i386-randconfig-a0-201538 (attached as .config)
reproduce:
  git checkout d88f2083643f6dfacba14b2e95217dc6e0a4be37
  # save the attached .config to linux build tree
  make ARCH=i386 

All warnings (new ones prefixed by >>):

>> ./usr/include/linux/scsi_ioctl.h:49: found __[us]{8,16,32,64} type without 
>> #include 

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


.config.gz
Description: Binary data


[kvm:queue 20/31] arch/x86/kvm/vmx.c:2502:78: warning: left shift count >= width of type

2015-09-28 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   0e67722dd743e8218b4fc7924a1ab4ffda781517
commit: 8de182e8f597f4ec81a6fca865fb709c0753ca53 [20/31] KVM: nVMX: expose VPID 
capability to L1
config: i386-randconfig-x006-201539 (attached as .config)
reproduce:
  git checkout 8de182e8f597f4ec81a6fca865fb709c0753ca53
  # save the attached .config to linux build tree
  make ARCH=i386 

All warnings (new ones prefixed by >>):

   arch/x86/kvm/vmx.c: In function 'nested_vmx_setup_ctls_msrs':
>> arch/x86/kvm/vmx.c:2502:78: warning: left shift count >= width of type 
>> [-Wshift-count-overflow]
  vmx->nested.nested_vmx_ept_vpid_caps |= (unsigned 
long)vmx_capability.vpid << 32;

 ^

vim +2502 arch/x86/kvm/vmx.c

  2486  SECONDARY_EXEC_XSAVES;
  2487  
  2488  if (enable_ept | enable_vpid) {
  2489  /* nested EPT: emulate EPT also to L1 */
  2490  vmx->nested.nested_vmx_secondary_ctls_high |=
  2491  SECONDARY_EXEC_ENABLE_EPT;
  2492  vmx->nested.nested_vmx_ept_vpid_caps = 
VMX_EPT_PAGE_WALK_4_BIT |
  2493   VMX_EPTP_WB_BIT | VMX_EPT_2MB_PAGE_BIT |
  2494   VMX_EPT_INVEPT_BIT;
  2495  vmx->nested.nested_vmx_ept_vpid_caps &= 
vmx_capability.ept;
  2496  /*
  2497   * For nested guests, we don't do anything specific
  2498   * for single context invalidation. Hence, only 
advertise
  2499   * support for global context invalidation.
  2500   */
  2501  vmx->nested.nested_vmx_ept_vpid_caps |= 
VMX_EPT_EXTENT_GLOBAL_BIT;
> 2502  vmx->nested.nested_vmx_ept_vpid_caps |= (unsigned 
> long)vmx_capability.vpid << 32;
  2503  } else
  2504  vmx->nested.nested_vmx_ept_vpid_caps = 0;
  2505  
  2506  if (enable_unrestricted_guest)
  2507  vmx->nested.nested_vmx_secondary_ctls_high |=
  2508  SECONDARY_EXEC_UNRESTRICTED_GUEST;
  2509  
  2510  /* miscellaneous data */

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


.config.gz
Description: Binary data


[kvm:vtd-pi 23/38] virt/built-in.o: warning: input is not relaxable

2015-09-27 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git vtd-pi
head:   7690a83389ca993040950b6ed7b4b5efbd50a782
commit: 3d28100d4df3d7d70072d0d90195d75e9c4b0c48 [23/38] virt: Add virt 
directory to the top Makefile
config: avr32-atngw100_defconfig (attached as .config)
reproduce:
  wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
  chmod +x ~/bin/make.cross
  git checkout 3d28100d4df3d7d70072d0d90195d75e9c4b0c48
  # save the attached .config to linux build tree
  make.cross ARCH=avr32 

All warnings (new ones prefixed by >>):

>> virt/built-in.o: warning: input is not relaxable
>> virt/built-in.o: warning: input is not relaxable
>> virt/built-in.o: warning: input is not relaxable

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


.config.gz
Description: Binary data


[kvm:vtd-pi 34/38] arch/x86/kvm/vmx.c:609:16: sparse: symbol 'vcpu_to_pi_desc' was not declared. Should it be static?

2015-09-25 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git vtd-pi
head:   7690a83389ca993040950b6ed7b4b5efbd50a782
commit: 2d579d1d9677512d50d00f5864344331add3f9bc [34/38] KVM: x86: Update IRTE 
for posted-interrupts
reproduce:
  # apt-get install sparse
  git checkout 2d579d1d9677512d50d00f5864344331add3f9bc
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> arch/x86/kvm/vmx.c:609:16: sparse: symbol 'vcpu_to_pi_desc' was not 
>> declared. Should it be static?
>> arch/x86/kvm/vmx.c:10347:5: sparse: symbol 'vmx_update_pi_irte' was not 
>> declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH kvm] KVM: x86: vcpu_to_pi_desc() can be static

2015-09-25 Thread kbuild test robot

Signed-off-by: Fengguang Wu 
---
 vmx.c |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 4480752..c1833e1 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -606,7 +606,7 @@ static inline struct vcpu_vmx *to_vmx(struct kvm_vcpu *vcpu)
return container_of(vcpu, struct vcpu_vmx, vcpu);
 }
 
-struct pi_desc *vcpu_to_pi_desc(struct kvm_vcpu *vcpu)
+static struct pi_desc *vcpu_to_pi_desc(struct kvm_vcpu *vcpu)
 {
return &(to_vmx(vcpu)->pi_desc);
 }
@@ -10344,8 +10344,8 @@ static void vmx_enable_log_dirty_pt_masked(struct kvm 
*kvm,
  * @set: set or unset PI
  * returns 0 on success, < 0 on failure
  */
-int vmx_update_pi_irte(struct kvm *kvm, unsigned int host_irq,
-  uint32_t guest_irq, bool set)
+static int vmx_update_pi_irte(struct kvm *kvm, unsigned int host_irq,
+ uint32_t guest_irq, bool set)
 {
struct kvm_kernel_irq_routing_entry *e;
struct kvm_irq_routing_table *irq_rt;
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[kvm:queue 27/38] arch/x86/kvm/hyperv.c:186:41: sparse: incorrect type in argument 2 (different modifiers)

2015-09-18 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   ed393e4134de0dd02d8ba98ca8ce3ae65d1eb567
commit: 46f4c309534b10ca1026273abe38955d3cff4023 [27/38] kvm/x86: Hyper-V 
HV_X64_MSR_VP_RUNTIME support
reproduce:
  # apt-get install sparse
  git checkout 46f4c309534b10ca1026273abe38955d3cff4023
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> arch/x86/kvm/hyperv.c:186:41: sparse: incorrect type in argument 2 
>> (different modifiers)
   arch/x86/kvm/hyperv.c:186:41:expected unsigned long [nocast] [usertype] 
*ut
   arch/x86/kvm/hyperv.c:186:41:got unsigned long *
>> arch/x86/kvm/hyperv.c:186:41: sparse: implicit cast to nocast type
>> arch/x86/kvm/hyperv.c:186:49: sparse: incorrect type in argument 3 
>> (different modifiers)
   arch/x86/kvm/hyperv.c:186:49:expected unsigned long [nocast] [usertype] 
*st
   arch/x86/kvm/hyperv.c:186:49:got unsigned long *
   arch/x86/kvm/hyperv.c:186:49: sparse: implicit cast to nocast type

vim +186 arch/x86/kvm/hyperv.c

   170  kvm_make_request(KVM_REQ_HV_RESET, vcpu);
   171  }
   172  break;
   173  default:
   174  vcpu_unimpl(vcpu, "Hyper-V uhandled wrmsr: 0x%x data 
0x%llx\n",
   175  msr, data);
   176  return 1;
   177  }
   178  return 0;
   179  }
   180  
   181  /* Calculate cpu time spent by current task in 100ns units */
   182  static u64 current_task_runtime_100ns(void)
   183  {
   184  cputime_t utime, stime;
   185  
 > 186  task_cputime_adjusted(current, , );
   187  return div_u64(cputime_to_nsecs(utime + stime), 100);
   188  }
   189  
   190  static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, 
bool host)
   191  {
   192  struct kvm_vcpu_hv *hv = >arch.hyperv;
   193  
   194  switch (msr) {

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[kvm:queue 25/26] arch/x86/kvm/irq_comm.c:358:15: sparse: incorrect type in assignment (different address spaces)

2015-07-30 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   f38ddd2ff03e4ee11af36c9c8be373fc94b1cbcc
commit: 0fd71ef57c16e38cfed49d8d65b2f9c9b4881fb8 [25/26] KVM: x86: Add EOI exit 
bitmap inference
reproduce:
  # apt-get install sparse
  git checkout 0fd71ef57c16e38cfed49d8d65b2f9c9b4881fb8
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by )

 arch/x86/kvm/irq_comm.c:358:15: sparse: incorrect type in assignment 
 (different address spaces)
   arch/x86/kvm/irq_comm.c:358:15:expected struct kvm_irq_routing_table 
*table
   arch/x86/kvm/irq_comm.c:358:15:got struct kvm_irq_routing_table 
[noderef] asn:4*irq_routing

vim +358 arch/x86/kvm/irq_comm.c

   342  return;
   343  kvm_make_scan_ioapic_request(kvm);
   344  }
   345  
   346  void kvm_scan_ioapic_routes(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap)
   347  {
   348  struct kvm *kvm = vcpu-kvm;
   349  struct kvm_kernel_irq_routing_entry *entry;
   350  struct kvm_irq_routing_table *table;
   351  u32 i, nr_ioapic_pins;
   352  int idx;
   353  
   354  /* kvm-irq_routing must be read after clearing
   355   * KVM_SCAN_IOAPIC. */
   356  smp_mb();
   357  idx = srcu_read_lock(kvm-irq_srcu);
  358  table = kvm-irq_routing;
   359  nr_ioapic_pins = min_t(u32, table-nr_rt_entries,
   360 kvm-arch.nr_reserved_ioapic_pins);
   361  for (i = 0; i  nr_ioapic_pins; ++i) {
   362  hlist_for_each_entry(entry, table-map[i], link) {
   363  u32 dest_id, dest_mode;
   364  
   365  if (entry-type != KVM_IRQ_ROUTING_MSI)
   366  continue;

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[kvm:queue 25/26] include/linux/kvm_host.h:333:11: error: 'KVM_NR_IRQCHIPS' undeclared here (not in a function)

2015-07-30 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   50079e2c9bcb2dd8ffe573c0edddbef9ad6fd809
commit: b7b0d2b2f35c0e6882ea0b342318bf06472ce756 [25/26] KVM: x86: Add EOI exit 
bitmap inference
config: mips-jz4740 (attached as .config)
reproduce:
  wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
  chmod +x ~/bin/make.cross
  git checkout b7b0d2b2f35c0e6882ea0b342318bf06472ce756
  # save the attached .config to linux build tree
  make.cross ARCH=mips 

All error/warnings (new ones prefixed by ):

   In file included from arch/mips/kernel/asm-offsets.c:22:0:
 include/linux/kvm_host.h:333:11: error: 'KVM_NR_IRQCHIPS' undeclared here 
 (not in a function)
 int chip[KVM_NR_IRQCHIPS][KVM_IRQCHIP_NUM_PINS];
  ^
 include/linux/kvm_host.h:333:28: error: 'KVM_IRQCHIP_NUM_PINS' undeclared 
 here (not in a function)
 int chip[KVM_NR_IRQCHIPS][KVM_IRQCHIP_NUM_PINS];
   ^
   make[2]: *** [arch/mips/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +/KVM_NR_IRQCHIPS +333 include/linux/kvm_host.h

   327  struct kvm_s390_adapter_int adapter;
   328  };
   329  struct hlist_node link;
   330  };
   331  
   332  struct kvm_irq_routing_table {
  333  int chip[KVM_NR_IRQCHIPS][KVM_IRQCHIP_NUM_PINS];
   334  struct kvm_kernel_irq_routing_entry *rt_entries;
   335  u32 nr_rt_entries;
   336  /*

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
#
# Automatically generated file; DO NOT EDIT.
# Linux/mips 4.2.0-rc3 Kernel Configuration
#
CONFIG_MIPS=y

#
# Machine selection
#
# CONFIG_MIPS_ALCHEMY is not set
# CONFIG_AR7 is not set
# CONFIG_ATH25 is not set
# CONFIG_ATH79 is not set
# CONFIG_BMIPS_GENERIC is not set
# CONFIG_BCM47XX is not set
# CONFIG_BCM63XX is not set
# CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set
# CONFIG_MACH_INGENIC is not set
# CONFIG_LANTIQ is not set
# CONFIG_LASAT is not set
# CONFIG_MACH_LOONGSON32 is not set
# CONFIG_MACH_LOONGSON64 is not set
# CONFIG_MACH_PISTACHIO is not set
# CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD3 is not set
# CONFIG_NEC_MARKEINS is not set
# CONFIG_MACH_VR41XX is not set
# CONFIG_NXP_STB220 is not set
# CONFIG_NXP_STB225 is not set
# CONFIG_PMC_MSP is not set
# CONFIG_RALINK is not set
CONFIG_SGI_IP22=y
# CONFIG_SGI_IP27 is not set
# CONFIG_SGI_IP28 is not set
# CONFIG_SGI_IP32 is not set
# CONFIG_SIBYTE_CRHINE is not set
# CONFIG_SIBYTE_CARMEL is not set
# CONFIG_SIBYTE_CRHONE is not set
# CONFIG_SIBYTE_RHONE is not set
# CONFIG_SIBYTE_SWARM is not set
# CONFIG_SIBYTE_LITTLESUR is not set
# CONFIG_SIBYTE_SENTOSA is not set
# CONFIG_SIBYTE_BIGSUR is not set
# CONFIG_SNI_RM is not set
# CONFIG_MACH_TX39XX is not set
# CONFIG_MACH_TX49XX is not set
# CONFIG_MIKROTIK_RB532 is not set
# CONFIG_CAVIUM_OCTEON_SOC is not set
# CONFIG_NLM_XLR_BOARD is not set
# CONFIG_NLM_XLP_BOARD is not set
# CONFIG_MIPS_PARAVIRT is not set
# CONFIG_ALCHEMY_GPIO_INDIRECT is not set
CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
# CONFIG_ARCH_HAS_ILOG2_U64 is not set
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_SCHED_OMIT_FRAME_POINTER=y
CONFIG_FW_ARC=y
CONFIG_CEVT_R4K=y
CONFIG_CSRC_R4K=y
# CONFIG_ARCH_DMA_ADDR_T_64BIT is not set
CONFIG_DMA_NONCOHERENT=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_I8259=y
# CONFIG_MIPS_MACHINE is not set
# CONFIG_NO_IOPORT_MAP is not set
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_ISA_DMA_SUPPORT_BROKEN=y
CONFIG_ISA_DMA_API=y
CONFIG_CPU_BIG_ENDIAN=y
CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y
# CONFIG_MIPS_HUGE_TLB_SUPPORT is not set
CONFIG_SWAP_IO_SPACE=y
CONFIG_SGI_HAS_INDYDOG=y
CONFIG_SGI_HAS_HAL2=y
CONFIG_SGI_HAS_SEEQ=y
CONFIG_SGI_HAS_WD93=y
CONFIG_SGI_HAS_ZILOG=y
CONFIG_SGI_HAS_I8042=y
CONFIG_DEFAULT_SGI_PARTITION=y
CONFIG_FW_ARC32=y
CONFIG_BOOT_ELF32=y
CONFIG_MIPS_L1_CACHE_SHIFT_7=y
CONFIG_MIPS_L1_CACHE_SHIFT=7
# CONFIG_ARC_CONSOLE is not set
CONFIG_ARC_PROMLIB=y

#
# CPU selection
#
CONFIG_CPU_R4X00=y
# CONFIG_CPU_R5000 is not set
CONFIG_SYS_HAS_CPU_R4X00=y
CONFIG_SYS_HAS_CPU_R5000=y
CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y
CONFIG_SYS_SUPPORTS_64BIT_KERNEL=y
CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y
CONFIG_CPU_SUPPORTS_64BIT_KERNEL=y
CONFIG_CPU_SUPPORTS_HUGEPAGES=y

#
# Kernel type
#
CONFIG_32BIT=y
# CONFIG_64BIT is not set
# CONFIG_KVM_GUEST is not set
CONFIG_PAGE_SIZE_4KB=y
# CONFIG_PAGE_SIZE_16KB is not set
# CONFIG_PAGE_SIZE_64KB is not set
CONFIG_FORCE_MAX_ZONEORDER=11
CONFIG_BOARD_SCACHE=y
CONFIG_IP22_CPU_SCACHE=y
CONFIG_CPU_GENERIC_DUMP_TLB=y
CONFIG_CPU_R4K_FPU=y
CONFIG_CPU_R4K_CACHE_TLB=y

[kvm-ppc:kvm-ppc-queue 6/9] kernel/fork.c:99:0: warning: MAX_THREADS redefined

2015-07-01 Thread kbuild test robot
tree:   git://github.com/agraf/linux-2.6.git kvm-ppc-queue
head:   cc75c6b1368c88977d6015fd67b02c85ee04e57c
commit: c98d80c7b761a4b3bcbcc9314c4492f76585caa0 [6/9] KVM: PPC: Book3S HV: 
Implement dynamic micro-threading on POWER8
config: powerpc-defconfig (attached as .config)
reproduce:
  wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
  chmod +x ~/bin/make.cross
  git checkout c98d80c7b761a4b3bcbcc9314c4492f76585caa0
  # save the attached .config to linux build tree
  make.cross ARCH=powerpc 

All warnings (new ones prefixed by ):

 kernel/fork.c:99:0: warning: MAX_THREADS redefined
#define MAX_THREADS FUTEX_TID_MASK
^
   In file included from arch/powerpc/include/asm/paca.h:25:0,
from arch/powerpc/include/asm/hw_irq.h:42,
from arch/powerpc/include/asm/irqflags.h:11,
from include/linux/irqflags.h:15,
from include/linux/spinlock.h:53,
from include/linux/mmzone.h:7,
from include/linux/gfp.h:5,
from include/linux/slab.h:14,
from kernel/fork.c:14:
   arch/powerpc/include/asm/kvm_book3s_asm.h:29:0: note: this is the location 
of the previous definition
#define MAX_THREADS  8
^
 kernel/fork.c:99:0: warning: MAX_THREADS redefined
#define MAX_THREADS FUTEX_TID_MASK
^
   In file included from arch/powerpc/include/asm/paca.h:25:0,
from arch/powerpc/include/asm/hw_irq.h:42,
from arch/powerpc/include/asm/irqflags.h:11,
from include/linux/irqflags.h:15,
from include/linux/spinlock.h:53,
from include/linux/mmzone.h:7,
from include/linux/gfp.h:5,
from include/linux/slab.h:14,
from kernel/fork.c:14:
   arch/powerpc/include/asm/kvm_book3s_asm.h:29:0: note: this is the location 
of the previous definition
#define MAX_THREADS  8
^

vim +/MAX_THREADS +99 kernel/fork.c

^1da177e Linus Torvalds  2005-04-16   83  #include asm/cacheflush.h
^1da177e Linus Torvalds  2005-04-16   84  #include asm/tlbflush.h
^1da177e Linus Torvalds  2005-04-16   85  
ad8d75ff Steven Rostedt  2009-04-14   86  #include trace/events/sched.h
ad8d75ff Steven Rostedt  2009-04-14   87  
43d2b113 KAMEZAWA Hiroyuki   2012-01-10   88  #define CREATE_TRACE_POINTS
43d2b113 KAMEZAWA Hiroyuki   2012-01-10   89  #include trace/events/task.h
43d2b113 KAMEZAWA Hiroyuki   2012-01-10   90  
^1da177e Linus Torvalds  2005-04-16   91  /*
ac1b398d Heinrich Schuchardt 2015-04-16   92   * Minimum number of threads to 
boot the kernel
ac1b398d Heinrich Schuchardt 2015-04-16   93   */
ac1b398d Heinrich Schuchardt 2015-04-16   94  #define MIN_THREADS 20
ac1b398d Heinrich Schuchardt 2015-04-16   95  
ac1b398d Heinrich Schuchardt 2015-04-16   96  /*
ac1b398d Heinrich Schuchardt 2015-04-16   97   * Maximum number of threads
ac1b398d Heinrich Schuchardt 2015-04-16   98   */
ac1b398d Heinrich Schuchardt 2015-04-16  @99  #define MAX_THREADS FUTEX_TID_MASK
ac1b398d Heinrich Schuchardt 2015-04-16  100  
ac1b398d Heinrich Schuchardt 2015-04-16  101  /*
^1da177e Linus Torvalds  2005-04-16  102   * Protected counters by 
write_lock_irq(tasklist_lock)
^1da177e Linus Torvalds  2005-04-16  103   */
^1da177e Linus Torvalds  2005-04-16  104  unsigned long total_forks;
/* Handle normal Linux uptimes. */
^1da177e Linus Torvalds  2005-04-16  105  int nr_threads;   
/* The idle threads do not count.. */
^1da177e Linus Torvalds  2005-04-16  106  
^1da177e Linus Torvalds  2005-04-16  107  int max_threads;  /* 
tunable limit on nr_threads */

:: The code at line 99 was first introduced by commit
:: ac1b398de1ef94aeee8ba87b0120763526572a6e kernel/fork.c: avoid division 
by zero

:: TO: Heinrich Schuchardt xypron.g...@gmx.de
:: CC: Linus Torvalds torva...@linux-foundation.org

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
#
# Automatically generated file; DO NOT EDIT.
# Linux/powerpc 4.1.0 Kernel Configuration
#
CONFIG_PPC64=y

#
# Processor support
#
CONFIG_PPC_BOOK3S_64=y
# CONFIG_PPC_BOOK3E_64 is not set
CONFIG_GENERIC_CPU=y
# CONFIG_CELL_CPU is not set
# CONFIG_POWER4_CPU is not set
# CONFIG_POWER5_CPU is not set
# CONFIG_POWER6_CPU is not set
# CONFIG_POWER7_CPU is not set
# CONFIG_POWER8_CPU is not set
CONFIG_PPC_BOOK3S=y
# CONFIG_TUNE_CELL is not set
CONFIG_PPC_FPU=y
CONFIG_ALTIVEC=y
CONFIG_VSX=y
# CONFIG_PPC_ICSWX is not set
CONFIG_PPC_STD_MMU=y
CONFIG_PPC_STD_MMU_64=y
CONFIG_PPC_MM_SLICES=y
CONFIG_PPC_HAVE_PMU_SUPPORT=y
CONFIG_PPC_PERF_CTRS=y
CONFIG_SMP=y
CONFIG_NR_CPUS=32
CONFIG_PPC_DOORBELL=y
CONFIG_VDSO32=y
CONFIG_CPU_BIG_ENDIAN=y
# CONFIG_CPU_LITTLE_ENDIAN is not set

[kvm:queue 94/94] mtrr.c:undefined reference to `__udivdi3'

2015-06-17 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   3b1a15b8db95eff1bcd9303057c9415f650c6331
commit: 3b1a15b8db95eff1bcd9303057c9415f650c6331 [94/94] KVM: MTRR: do not map 
huge page for non-consistent range
config: i386-randconfig-i0-201524 (attached as .config)
reproduce:
  git checkout 3b1a15b8db95eff1bcd9303057c9415f650c6331
  # save the attached .config to linux build tree
  make ARCH=i386 

All error/warnings (new ones prefixed by ):

   arch/x86/built-in.o: In function `mtrr_lookup_fixed_next':
 mtrr.c:(.text+0x35282): undefined reference to `__udivdi3'
   arch/x86/built-in.o: In function `mtrr_lookup_start.constprop.1':
   mtrr.c:(.text+0x35529): undefined reference to `__udivdi3'

---
0-DAY kernel test infrastructureOpen Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
#
# Automatically generated file; DO NOT EDIT.
# Linux/i386 4.1.0-rc2 Kernel Configuration
#
# CONFIG_64BIT is not set
CONFIG_X86_32=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT=elf32-i386
CONFIG_ARCH_DEFCONFIG=arch/x86/configs/i386_defconfig
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_MMU=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_ARCH_HAS_CPU_RELAX=y
CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_X86_32_SMP=y
CONFIG_X86_HT=y
CONFIG_X86_32_LAZY_GS=y
CONFIG_ARCH_HWEIGHT_CFLAGS=-fcall-saved-ecx -fcall-saved-edx
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_FIX_EARLYCON_MEM=y
CONFIG_PGTABLE_LEVELS=3
CONFIG_DEFCONFIG_LIST=/lib/modules/$UNAME_RELEASE/.config
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_EXTABLE_SORT=y

#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION=
CONFIG_LOCALVERSION_AUTO=y
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
CONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
CONFIG_DEFAULT_HOSTNAME=(none)
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y
# CONFIG_CROSS_MEMORY_ATTACH is not set
CONFIG_FHANDLE=y
CONFIG_USELIB=y
# CONFIG_AUDIT is not set
CONFIG_HAVE_ARCH_AUDITSYSCALL=y

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_IRQ_LEGACY_ALLOC_HWIRQ=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_GENERIC_IRQ_CHIP=y
CONFIG_IRQ_DOMAIN=y
# CONFIG_IRQ_DOMAIN_DEBUG is not set
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_ARCH_CLOCKSOURCE_DATA=y
CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y
CONFIG_GENERIC_CMOS_UPDATE=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y

#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_IRQ_TIME_ACCOUNTING is not set
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
# CONFIG_TASK_XACCT is not set

#
# RCU Subsystem
#
CONFIG_TREE_RCU=y
CONFIG_SRCU=y
CONFIG_TASKS_RCU=y
CONFIG_RCU_STALL_COMMON=y
CONFIG_RCU_FANOUT=32
CONFIG_RCU_FANOUT_LEAF=16
CONFIG_RCU_FANOUT_EXACT=y
# CONFIG_RCU_FAST_NO_HZ is not set
CONFIG_TREE_RCU_TRACE=y
CONFIG_RCU_KTHREAD_PRIO=0
# CONFIG_RCU_NOCB_CPU is not set
# CONFIG_RCU_EXPEDITE_BOOT is not set
CONFIG_BUILD_BIN2C=y
CONFIG_IKCONFIG=y
# CONFIG_IKCONFIG_PROC is not set
CONFIG_LOG_BUF_SHIFT=17
CONFIG_LOG_CPU_MAX_BUF_SHIFT=12
CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
CONFIG_CGROUPS=y
CONFIG_CGROUP_DEBUG=y
# CONFIG_CGROUP_FREEZER is not set
CONFIG_CGROUP_DEVICE=y
CONFIG_CPUSETS=y
CONFIG_PROC_PID_CPUSET=y
# CONFIG_CGROUP_CPUACCT is not set
CONFIG_PAGE_COUNTER=y
CONFIG_MEMCG=y
CONFIG_MEMCG_SWAP=y
# CONFIG_MEMCG_SWAP_ENABLED is not set
# CONFIG_MEMCG_KMEM is not set
# CONFIG_CGROUP_PERF is not set
# CONFIG_CGROUP_SCHED is not set
# CONFIG_BLK_CGROUP is not set
CONFIG_CHECKPOINT_RESTORE=y
# CONFIG_NAMESPACES is not set
# CONFIG_SCHED_AUTOGROUP is not set
# CONFIG_SYSFS_DEPRECATED is not set
CONFIG_RELAY=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=
CONFIG_RD_GZIP=y
CONFIG_RD_BZIP2=y
CONFIG_RD_LZMA=y
CONFIG_RD_XZ=y

[kvm:queue 76/76] arch/x86/kvm/../../../virt/kvm/irqchip.c:144:35: sparse: incorrect type in argument 1 (different address spaces)

2015-06-05 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   6aa5e7eb06cff8d317328a0c4696b5f635ba6be3
commit: 6aa5e7eb06cff8d317328a0c4696b5f635ba6be3 [76/76] kvm: irqchip: Break up 
high order allocations of kvm_irq_routing_table
reproduce:
  # apt-get install sparse
  git checkout 6aa5e7eb06cff8d317328a0c4696b5f635ba6be3
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by )

 arch/x86/kvm/../../../virt/kvm/irqchip.c:144:35: sparse: incorrect type in 
 argument 1 (different address spaces)
   arch/x86/kvm/../../../virt/kvm/irqchip.c:144:35:expected struct 
kvm_irq_routing_table *rt
   arch/x86/kvm/../../../virt/kvm/irqchip.c:144:35:got struct 
kvm_irq_routing_table [noderef] asn:4*irq_routing
   arch/x86/kvm/../../../virt/kvm/irqchip.c:224:13: sparse: incorrect type in 
assignment (different address spaces)
   arch/x86/kvm/../../../virt/kvm/irqchip.c:224:13:expected struct 
kvm_irq_routing_table *old
   arch/x86/kvm/../../../virt/kvm/irqchip.c:224:13:got struct 
kvm_irq_routing_table [noderef] asn:4*irq_routing

vim +144 arch/x86/kvm/../../../virt/kvm/irqchip.c

   128  struct kvm_kernel_irq_routing_entry *e;
   129  struct hlist_node *n;
   130  
   131  hlist_for_each_entry_safe(e, n, rt-map[i], link) {
   132  hlist_del(e-link);
   133  kfree(e);
   134  }
   135  }
   136  
   137  kfree(rt);
   138  }
   139  
   140  void kvm_free_irq_routing(struct kvm *kvm)
   141  {
   142  /* Called only during vm destruction. Nobody can use the pointer
   143 at this stage */
  144  free_irq_routing_table(kvm-irq_routing);
   145  }
   146  
   147  static int setup_routing_entry(struct kvm_irq_routing_table *rt,
   148 struct kvm_kernel_irq_routing_entry *e,
   149 const struct kvm_irq_routing_entry *ue)
   150  {
   151  int r = -EINVAL;
   152  struct kvm_kernel_irq_routing_entry *ei;

---
0-DAY kernel test infrastructureOpen Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH vfio] vfio: virqfd_lock can be static

2015-03-16 Thread kbuild test robot

Signed-off-by: Fengguang Wu fengguang...@intel.com
---
 virqfd.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/vfio/virqfd.c b/drivers/vfio/virqfd.c
index 5967899..3d19aaf 100644
--- a/drivers/vfio/virqfd.c
+++ b/drivers/vfio/virqfd.c
@@ -16,7 +16,7 @@
 #include linux/slab.h
 
 static struct workqueue_struct *vfio_irqfd_cleanup_wq;
-DEFINE_SPINLOCK(virqfd_lock);
+static DEFINE_SPINLOCK(virqfd_lock);
 
 int __init vfio_virqfd_init(void)
 {
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[vfio:next 19/21] drivers/vfio/virqfd.c:19:1: sparse: symbol 'virqfd_lock' was not declared. Should it be static?

2015-03-16 Thread kbuild test robot
tree:   git://github.com/awilliam/linux-vfio.git next
head:   2f51bf4be99386f49841b6365a85a5cabc148565
commit: 42ac9bd18d4fc28c36c7927847f0f6e90ecd7710 [19/21] vfio: initialize the 
virqfd workqueue in VFIO generic code
reproduce:
  # apt-get install sparse
  git checkout 42ac9bd18d4fc28c36c7927847f0f6e90ecd7710
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by )

 drivers/vfio/virqfd.c:19:1: sparse: symbol 'virqfd_lock' was not declared. 
 Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructureOpen Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH target] vhost/scsi: vhost_skip_iovec_bytes() can be static

2015-02-01 Thread kbuild test robot
drivers/vhost/scsi.c:1081:5: sparse: symbol 'vhost_skip_iovec_bytes' was not 
declared. Should it be static?

Signed-off-by: Fengguang Wu fengguang...@intel.com
---
 scsi.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c
index d888bd9..8ac003f 100644
--- a/drivers/vhost/scsi.c
+++ b/drivers/vhost/scsi.c
@@ -1078,7 +1078,7 @@ vhost_scsi_send_bad_target(struct vhost_scsi *vs,
pr_err(Faulted on virtio_scsi_cmd_resp\n);
 }
 
-int vhost_skip_iovec_bytes(size_t bytes, int max_niov,
+static int vhost_skip_iovec_bytes(size_t bytes, int max_niov,
   struct iovec *iov_in, size_t off_in,
   struct iovec **iov_out, size_t *off_out)
 {
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[target:for-next 16/21] drivers/vhost/scsi.c:1081:5: sparse: symbol 'vhost_skip_iovec_bytes' was not declared. Should it be static?

2015-02-01 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git 
for-next
head:   2936f1d4f3e8247bd519feba7892371d5e4c6603
commit: 105acf608f25d5e0d9fef669299a5438b7b114ee [16/21] vhost/scsi: Add 
ANY_LAYOUT vhost_skip_iovec_bytes helper
reproduce:
  # apt-get install sparse
  git checkout 105acf608f25d5e0d9fef669299a5438b7b114ee
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by )

 drivers/vhost/scsi.c:1081:5: sparse: symbol 'vhost_skip_iovec_bytes' was not 
 declared. Should it be static?
   drivers/vhost/scsi.c:969:1: warning: 'vhost_scsi_mapal' defined but not used 
[-Wunused-function]
vhost_scsi_mapal(struct tcm_vhost_cmd *cmd, int max_niov,
^

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructureOpen Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH kvm] KVM: kvm_read_nested_guest_page() can be static

2015-01-19 Thread kbuild test robot
arch/x86/kvm/x86.c:495:5: sparse: symbol 'kvm_read_nested_guest_page' was not 
declared. Should it be static?
arch/x86/kvm/x86.c:646:5: sparse: symbol '__kvm_set_xcr' was not declared. 
Should it be static?
arch/x86/kvm/x86.c:1183:15: sparse: symbol 'max_tsc_khz' was not declared. 
Should it be static?
arch/x86/kvm/x86.c:1237:6: sparse: symbol 'kvm_track_tsc_matching' was not 
declared. Should it be static?

Signed-off-by: Fengguang Wu fengguang...@intel.com
---
 x86.c |8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index c259814..f149b7c 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -492,7 +492,7 @@ int kvm_read_guest_page_mmu(struct kvm_vcpu *vcpu, struct 
kvm_mmu *mmu,
 }
 EXPORT_SYMBOL_GPL(kvm_read_guest_page_mmu);
 
-int kvm_read_nested_guest_page(struct kvm_vcpu *vcpu, gfn_t gfn,
+static int kvm_read_nested_guest_page(struct kvm_vcpu *vcpu, gfn_t gfn,
   void *data, int offset, int len, u32 access)
 {
return kvm_read_guest_page_mmu(vcpu, vcpu-arch.walk_mmu, gfn,
@@ -643,7 +643,7 @@ static void kvm_put_guest_xcr0(struct kvm_vcpu *vcpu)
}
 }
 
-int __kvm_set_xcr(struct kvm_vcpu *vcpu, u32 index, u64 xcr)
+static int __kvm_set_xcr(struct kvm_vcpu *vcpu, u32 index, u64 xcr)
 {
u64 xcr0 = xcr;
u64 old_xcr0 = vcpu-arch.xcr0;
@@ -1180,7 +1180,7 @@ static atomic_t kvm_guest_has_master_clock = 
ATOMIC_INIT(0);
 #endif
 
 static DEFINE_PER_CPU(unsigned long, cpu_tsc_khz);
-unsigned long max_tsc_khz;
+static unsigned long max_tsc_khz;
 
 static inline u64 nsec_to_cycles(struct kvm_vcpu *vcpu, u64 nsec)
 {
@@ -1234,7 +1234,7 @@ static u64 compute_guest_tsc(struct kvm_vcpu *vcpu, s64 
kernel_ns)
return tsc;
 }
 
-void kvm_track_tsc_matching(struct kvm_vcpu *vcpu)
+static void kvm_track_tsc_matching(struct kvm_vcpu *vcpu)
 {
 #ifdef CONFIG_X86_64
bool vcpus_matched;
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[kvm:master 1/1] arch/x86/kvm/../../../virt/kvm/kvm_main.c:2062:25: sparse: incorrect type in assignment (different address spaces)

2015-01-19 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/virt/kvm/kvm.git master
head:   cdef511985374dd042a40bb32c1c346c2662c9dc
commit: cdef511985374dd042a40bb32c1c346c2662c9dc [1/1] KVM: fix sparse warning 
in include/trace/events/kvm.h
reproduce:
  # apt-get install sparse
  git checkout cdef511985374dd042a40bb32c1c346c2662c9dc
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by )

 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2062:25: sparse: incorrect type in 
 assignment (different address spaces)
   arch/x86/kvm/../../../virt/kvm/kvm_main.c:2062:25:expected struct pid 
*volatile noident
   arch/x86/kvm/../../../virt/kvm/kvm_main.c:2062:25:got struct pid 
[noderef] asn:4*noident
 arch/x86/kvm/../../../virt/kvm/kvm_main.c:741:9: sparse: incorrect type in 
 assignment (different address spaces)
   arch/x86/kvm/../../../virt/kvm/kvm_main.c:741:9:expected struct 
kvm_memslots *volatile noident
   arch/x86/kvm/../../../virt/kvm/kvm_main.c:741:9:got struct kvm_memslots 
[noderef] asn:4*noident
   include/linux/kvm_host.h:482:16: sparse: incompatible types in comparison 
expression (different address spaces)
   include/linux/kvm_host.h:482:16: sparse: incompatible types in comparison 
expression (different address spaces)
   include/linux/kvm_host.h:482:16: sparse: incompatible types in comparison 
expression (different address spaces)
   include/linux/kvm_host.h:482:16: sparse: incompatible types in comparison 
expression (different address spaces)
   arch/x86/kvm/../../../virt/kvm/kvm_main.c:1790:15: sparse: incompatible 
types in comparison expression (different address spaces)
   arch/x86/kvm/../../../virt/kvm/kvm_main.c:2957:15: sparse: incompatible 
types in comparison expression (different address spaces)
   arch/x86/kvm/../../../virt/kvm/kvm_main.c:2974:15: sparse: incompatible 
types in comparison expression (different address spaces)
   arch/x86/kvm/../../../virt/kvm/kvm_main.c:3024:15: sparse: incompatible 
types in comparison expression (different address spaces)
--
 arch/x86/kvm/../../../virt/kvm/irqchip.c:125:18: sparse: incorrect type in 
 argument 1 (different address spaces)
   arch/x86/kvm/../../../virt/kvm/irqchip.c:125:18:expected void const 
*noident
   arch/x86/kvm/../../../virt/kvm/irqchip.c:125:18:got struct 
kvm_irq_routing_table [noderef] asn:4*irq_routing
 arch/x86/kvm/../../../virt/kvm/irqchip.c:201:13: sparse: incorrect type in 
 assignment (different address spaces)
   arch/x86/kvm/../../../virt/kvm/irqchip.c:201:13:expected struct 
kvm_irq_routing_table *old
   arch/x86/kvm/../../../virt/kvm/irqchip.c:201:13:got struct 
kvm_irq_routing_table [noderef] asn:4*irq_routing
--
 arch/x86/kvm/x86.c:495:5: sparse: symbol 'kvm_read_nested_guest_page' was 
 not declared. Should it be static?
 arch/x86/kvm/x86.c:646:5: sparse: symbol '__kvm_set_xcr' was not declared. 
 Should it be static?
 arch/x86/kvm/x86.c:1183:15: sparse: symbol 'max_tsc_khz' was not declared. 
 Should it be static?
 arch/x86/kvm/x86.c:1237:6: sparse: symbol 'kvm_track_tsc_matching' was not 
 declared. Should it be static?
 arch/x86/kvm/x86.c:1898:38: sparse: incorrect type in argument 1 (different 
 address spaces)
   arch/x86/kvm/x86.c:1898:38:expected void const [noderef] 
asn:1*noident
   arch/x86/kvm/x86.c:1898:38:got unsigned char [usertype] *
   include/linux/kvm_host.h:482:16: sparse: incompatible types in comparison 
expression (different address spaces)
   include/linux/kvm_host.h:482:16: sparse: incompatible types in comparison 
expression (different address spaces)
   arch/x86/kvm/x86.c:7431:15: sparse: incompatible types in comparison 
expression (different address spaces)

Please review and possibly fold the followup patch.

vim +2062 arch/x86/kvm/../../../virt/kvm/kvm_main.c

2122ff5e virt/kvm/kvm_main.cAvi Kivity2010-05-13  2046  
return kvm_arch_vcpu_ioctl(filp, ioctl, arg);
2122ff5e virt/kvm/kvm_main.cAvi Kivity2010-05-13  2047  #endif
2122ff5e virt/kvm/kvm_main.cAvi Kivity2010-05-13  2048  
2122ff5e virt/kvm/kvm_main.cAvi Kivity2010-05-13  2049  
9fc77441 virt/kvm/kvm_main.cMichael S. Tsirkin2012-09-16  2050  
r = vcpu_load(vcpu);
9fc77441 virt/kvm/kvm_main.cMichael S. Tsirkin2012-09-16  2051  
if (r)
9fc77441 virt/kvm/kvm_main.cMichael S. Tsirkin2012-09-16  2052  
return r;
6aa8b732 drivers/kvm/kvm_main.c Avi Kivity2006-12-10  2053  
switch (ioctl) {
9a2bb7f4 drivers/kvm/kvm_main.c Avi Kivity2007-02-22  2054  
case KVM_RUN:
f0fe5108 drivers/kvm/kvm_main.c Avi Kivity2007-03-07  2055  
r = -EINVAL;
f0fe5108 drivers/kvm/kvm_main.c Avi Kivity2007-03-07  2056  
if (arg)
f0fe5108 drivers/kvm/kvm_main.c Avi Kivity2007-03-07  2057  
goto out;
7a72f7a1 virt/kvm/kvm_main.c 

[kvm:linux-next 16/16] arch/x86/kvm/paging_tmpl.h:154:57: warning: unused variable 'shift'

2013-01-07 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next
head:   908e7d7999bcce70ac52e7f390a8f5cbc55948de
commit: 908e7d7999bcce70ac52e7f390a8f5cbc55948de [16/16] KVM: MMU: simplify 
folding of dirty bit into accessed_dirty
config: make ARCH=x86_64 allmodconfig

All warnings:

In file included from arch/x86/kvm/mmu.c:3482:0:
arch/x86/kvm/paging_tmpl.h: In function 'paging64_walk_addr_generic':
arch/x86/kvm/paging_tmpl.h:154:57: warning: unused variable 'shift' 
[-Wunused-variable]
In file included from arch/x86/kvm/mmu.c:3486:0:
arch/x86/kvm/paging_tmpl.h: In function 'paging32_walk_addr_generic':
arch/x86/kvm/paging_tmpl.h:154:57: warning: unused variable 'shift' 
[-Wunused-variable]

vim +/shift +154 arch/x86/kvm/paging_tmpl.h

8cbc7069 arch/x86/kvm/paging_tmpl.h Avi Kivity   2012-09-16  138
walker-ptes[level] = pte;
8cbc7069 arch/x86/kvm/paging_tmpl.h Avi Kivity   2012-09-16  139}
8cbc7069 arch/x86/kvm/paging_tmpl.h Avi Kivity   2012-09-16  140return 
0;
8cbc7069 arch/x86/kvm/paging_tmpl.h Avi Kivity   2012-09-16  141  }
8cbc7069 arch/x86/kvm/paging_tmpl.h Avi Kivity   2012-09-16  142  
ac79c978 drivers/kvm/paging_tmpl.h  Avi Kivity   2007-01-05  143  /*
ac79c978 drivers/kvm/paging_tmpl.h  Avi Kivity   2007-01-05  144   * Fetch 
a guest pte for a guest virtual address
ac79c978 drivers/kvm/paging_tmpl.h  Avi Kivity   2007-01-05  145   */
1e301feb arch/x86/kvm/paging_tmpl.h Joerg Roedel 2010-09-10  146  static 
int FNAME(walk_addr_generic)(struct guest_walker *walker,
1e301feb arch/x86/kvm/paging_tmpl.h Joerg Roedel 2010-09-10  147
struct kvm_vcpu *vcpu, struct kvm_mmu *mmu,
33770780 arch/x86/kvm/paging_tmpl.h Xiao Guangrong   2010-09-28  148
gva_t addr, u32 access)
6aa8b732 drivers/kvm/paging_tmpl.h  Avi Kivity   2006-12-10  149  {
8cbc7069 arch/x86/kvm/paging_tmpl.h Avi Kivity   2012-09-16  150int ret;
42bf3f0a drivers/kvm/paging_tmpl.h  Avi Kivity   2007-10-17  151
pt_element_t pte;
b7233635 arch/x86/kvm/paging_tmpl.h Borislav Petkov  2011-05-30  152
pt_element_t __user *uninitialized_var(ptep_user);
cea0f0e7 drivers/kvm/paging_tmpl.h  Avi Kivity   2007-01-05  153gfn_t 
table_gfn;
b514c30f arch/x86/kvm/paging_tmpl.h Avi Kivity   2012-09-16 @154
unsigned index, pt_access, pte_access, accessed_dirty, shift;
42bf3f0a drivers/kvm/paging_tmpl.h  Avi Kivity   2007-10-17  155gpa_t 
pte_gpa;
134291bf arch/x86/kvm/paging_tmpl.h Takuya Yoshikawa 2011-07-01  156int 
offset;
134291bf arch/x86/kvm/paging_tmpl.h Takuya Yoshikawa 2011-07-01  157const 
int write_fault = access  PFERR_WRITE_MASK;
134291bf arch/x86/kvm/paging_tmpl.h Takuya Yoshikawa 2011-07-01  158const 
int user_fault  = access  PFERR_USER_MASK;
134291bf arch/x86/kvm/paging_tmpl.h Takuya Yoshikawa 2011-07-01  159const 
int fetch_fault = access  PFERR_FETCH_MASK;
134291bf arch/x86/kvm/paging_tmpl.h Takuya Yoshikawa 2011-07-01  160u16 
errcode = 0;
13d22b6a arch/x86/kvm/paging_tmpl.h Avi Kivity   2012-09-12  161gpa_t 
real_gpa;
13d22b6a arch/x86/kvm/paging_tmpl.h Avi Kivity   2012-09-12  162gfn_t 
gfn;

---
0-DAY kernel build testing backend Open Source Technology Center
Fengguang Wu, Yuanhan Liu  Intel Corporation
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[kvm:linux-next 3/13] arch/x86/kvm/irq.c:46:18: warning: unused variable 's'

2012-12-14 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next
head:   0f888f5acd0cd806d4fd9f4067276b3855a13309
commit: f3200d00ea42e485772ff92d6d649aa8eeb640c0 [3/13] KVM: inject ExtINT 
interrupt before APIC interrupts
config: make ARCH=x86_64 allmodconfig

All warnings:

arch/x86/kvm/irq.c: In function 'kvm_cpu_has_interrupt':
arch/x86/kvm/irq.c:46:18: warning: unused variable 's' [-Wunused-variable]
arch/x86/kvm/irq.c: In function 'kvm_cpu_get_interrupt':
arch/x86/kvm/irq.c:63:18: warning: unused variable 's' [-Wunused-variable]

vim +/s +46 arch/x86/kvm/irq.c

85f455f7 drivers/kvm/irq.c  Eddie Dong  2007-07-06  30  /*
3d80840d arch/x86/kvm/irq.c Marcelo Tosatti 2008-04-11  31   * check if there 
are pending timer events
3d80840d arch/x86/kvm/irq.c Marcelo Tosatti 2008-04-11  32   * to be processed.
3d80840d arch/x86/kvm/irq.c Marcelo Tosatti 2008-04-11  33   */
3d80840d arch/x86/kvm/irq.c Marcelo Tosatti 2008-04-11  34  int 
kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu)
3d80840d arch/x86/kvm/irq.c Marcelo Tosatti 2008-04-11  35  {
23e7a794 arch/x86/kvm/irq.c Jason Wang  2010-08-27  36  return 
apic_has_pending_timer(vcpu);
3d80840d arch/x86/kvm/irq.c Marcelo Tosatti 2008-04-11  37  }
3d80840d arch/x86/kvm/irq.c Marcelo Tosatti 2008-04-11  38  
EXPORT_SYMBOL(kvm_cpu_has_pending_timer);
3d80840d arch/x86/kvm/irq.c Marcelo Tosatti 2008-04-11  39  
3d80840d arch/x86/kvm/irq.c Marcelo Tosatti 2008-04-11  40  /*
85f455f7 drivers/kvm/irq.c  Eddie Dong  2007-07-06  41   * check if there 
is pending interrupt without
85f455f7 drivers/kvm/irq.c  Eddie Dong  2007-07-06  42   * intack.
85f455f7 drivers/kvm/irq.c  Eddie Dong  2007-07-06  43   */
85f455f7 drivers/kvm/irq.c  Eddie Dong  2007-07-06  44  int 
kvm_cpu_has_interrupt(struct kvm_vcpu *v)
85f455f7 drivers/kvm/irq.c  Eddie Dong  2007-07-06  45  {
97222cc8 drivers/kvm/irq.c  Eddie Dong  2007-09-12 @46  struct kvm_pic 
*s;
97222cc8 drivers/kvm/irq.c  Eddie Dong  2007-09-12  47  
8061823a arch/x86/kvm/irq.c Gleb Natapov2009-04-21  48  if 
(!irqchip_in_kernel(v-kvm))
923c61bb arch/x86/kvm/irq.c Gleb Natapov2009-05-11  49  return 
v-arch.interrupt.pending;
8061823a arch/x86/kvm/irq.c Gleb Natapov2009-04-21  50  
f3200d00 arch/x86/kvm/irq.c Gleb Natapov2012-12-10  51  if 
(kvm_apic_accept_pic_intr(v)  pic_irqchip(v-kvm)-output)
f3200d00 arch/x86/kvm/irq.c Gleb Natapov2012-12-10  52  return 
pic_irqchip(v-kvm)-output; /* PIC */
f3200d00 arch/x86/kvm/irq.c Gleb Natapov2012-12-10  53  
f3200d00 arch/x86/kvm/irq.c Gleb Natapov2012-12-10  54  return 
kvm_apic_has_interrupt(v) != -1; /* LAPIC */

---
0-DAY kernel build testing backend Open Source Technology Center
Fengguang Wu, Yuanhan Liu  Intel Corporation
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[kvm:queue 8/9] arch/x86/kernel/crash.c:49:32: sparse: incompatible types in comparison expression (different address spaces)

2012-12-06 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   8f536b7697a0d40ef6b5fd04cf2c04953d5ca06f
commit: f23d1f4a116038c68df224deae6718fde87d8f0d [8/9] x86/kexec: VMCLEAR VMCSs 
loaded on all cpus if necessary


sparse warnings:

+ arch/x86/kernel/crash.c:49:32: sparse: incompatible types in comparison 
expression (different address spaces)

vim +49 arch/x86/kernel/crash.c

5edd19af Cliff Wickman   2010-07-20  33  
f23d1f4a Zhang Yanfei2012-12-06  34  /*
f23d1f4a Zhang Yanfei2012-12-06  35   * This is used to VMCLEAR all VMCSs 
loaded on the
f23d1f4a Zhang Yanfei2012-12-06  36   * processor. And when loading 
kvm_intel module, the
f23d1f4a Zhang Yanfei2012-12-06  37   * callback function pointer will be 
assigned.
f23d1f4a Zhang Yanfei2012-12-06  38   *
f23d1f4a Zhang Yanfei2012-12-06  39   * protected by rcu.
f23d1f4a Zhang Yanfei2012-12-06  40   */
f23d1f4a Zhang Yanfei2012-12-06  41  void 
(*crash_vmclear_loaded_vmcss)(void) = NULL;
f23d1f4a Zhang Yanfei2012-12-06  42  
EXPORT_SYMBOL_GPL(crash_vmclear_loaded_vmcss);
f23d1f4a Zhang Yanfei2012-12-06  43  
f23d1f4a Zhang Yanfei2012-12-06  44  static inline void 
cpu_crash_vmclear_loaded_vmcss(void)
f23d1f4a Zhang Yanfei2012-12-06  45  {
f23d1f4a Zhang Yanfei2012-12-06  46 void 
(*do_vmclear_operation)(void) = NULL;
f23d1f4a Zhang Yanfei2012-12-06  47  
f23d1f4a Zhang Yanfei2012-12-06  48 rcu_read_lock();
f23d1f4a Zhang Yanfei2012-12-06 @49 do_vmclear_operation = 
rcu_dereference(crash_vmclear_loaded_vmcss);
f23d1f4a Zhang Yanfei2012-12-06  50 if (do_vmclear_operation)
f23d1f4a Zhang Yanfei2012-12-06  51 do_vmclear_operation();
f23d1f4a Zhang Yanfei2012-12-06  52 rcu_read_unlock();
f23d1f4a Zhang Yanfei2012-12-06  53  }
f23d1f4a Zhang Yanfei2012-12-06  54  
b2bbe71b Eduardo Habkost 2008-11-12  55  #if defined(CONFIG_SMP)  
defined(CONFIG_X86_LOCAL_APIC)
b2bbe71b Eduardo Habkost 2008-11-12  56  
9c48f1c6 Don Zickus  2011-09-30  57  static void kdump_nmi_callback(int 
cpu, struct pt_regs *regs)

---
0-DAY kernel build testing backend Open Source Technology Center
Fengguang Wu, Yuanhan Liu  Intel Corporation
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html