@@ -1332,8 +1332,7 @@ static int kvm_s390_set_processor_feat(struct kvm *kvm,
1332
1332
mutex_unlock (& kvm -> lock );
1333
1333
return - EBUSY ;
1334
1334
}
1335
- bitmap_copy (kvm -> arch .cpu_feat , (unsigned long * ) data .feat ,
1336
- KVM_S390_VM_CPU_FEAT_NR_BITS );
1335
+ bitmap_from_arr64 (kvm -> arch .cpu_feat , data .feat , KVM_S390_VM_CPU_FEAT_NR_BITS );
1337
1336
mutex_unlock (& kvm -> lock );
1338
1337
VM_EVENT (kvm , 3 , "SET: guest feat: 0x%16.16llx.0x%16.16llx.0x%16.16llx" ,
1339
1338
data .feat [0 ],
@@ -1504,8 +1503,7 @@ static int kvm_s390_get_processor_feat(struct kvm *kvm,
1504
1503
{
1505
1504
struct kvm_s390_vm_cpu_feat data ;
1506
1505
1507
- bitmap_copy ((unsigned long * ) data .feat , kvm -> arch .cpu_feat ,
1508
- KVM_S390_VM_CPU_FEAT_NR_BITS );
1506
+ bitmap_to_arr64 (data .feat , kvm -> arch .cpu_feat , KVM_S390_VM_CPU_FEAT_NR_BITS );
1509
1507
if (copy_to_user ((void __user * )attr -> addr , & data , sizeof (data )))
1510
1508
return - EFAULT ;
1511
1509
VM_EVENT (kvm , 3 , "GET: guest feat: 0x%16.16llx.0x%16.16llx.0x%16.16llx" ,
@@ -1520,9 +1518,7 @@ static int kvm_s390_get_machine_feat(struct kvm *kvm,
1520
1518
{
1521
1519
struct kvm_s390_vm_cpu_feat data ;
1522
1520
1523
- bitmap_copy ((unsigned long * ) data .feat ,
1524
- kvm_s390_available_cpu_feat ,
1525
- KVM_S390_VM_CPU_FEAT_NR_BITS );
1521
+ bitmap_to_arr64 (data .feat , kvm_s390_available_cpu_feat , KVM_S390_VM_CPU_FEAT_NR_BITS );
1526
1522
if (copy_to_user ((void __user * )attr -> addr , & data , sizeof (data )))
1527
1523
return - EFAULT ;
1528
1524
VM_EVENT (kvm , 3 , "GET: host feat: 0x%16.16llx.0x%16.16llx.0x%16.16llx" ,
0 commit comments