]> Git Repo - qemu.git/commitdiff
s390x: remove s390_get_memslot_count
authorCornelia Huck <[email protected]>
Fri, 23 Feb 2018 10:13:45 +0000 (11:13 +0100)
committerCornelia Huck <[email protected]>
Mon, 26 Feb 2018 11:55:26 +0000 (12:55 +0100)
Not needed anymore after removal of the memory hotplug code.

Acked-by: Christian Borntraeger <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
include/hw/s390x/sclp.h
target/s390x/cpu.c
target/s390x/cpu.h
target/s390x/kvm-stub.c
target/s390x/kvm.c
target/s390x/kvm_s390x.h

index 476cbf78f28bb0848f88641c3814c74392fc7242..f9db243484866f65f8e6f129e06b8f7b6b473e75 100644 (file)
@@ -35,7 +35,6 @@
 #define SCLP_FC_ASSIGN_ATTACH_READ_STOR         0xE00000000000ULL
 #define SCLP_STARTING_SUBINCREMENT_ID           0x10001
 #define SCLP_INCREMENT_UNIT                     0x10000
-#define MAX_AVAIL_SLOTS                         32
 #define MAX_STORAGE_INCREMENTS                  1020
 
 /* CPU hotplug SCLP codes */
index f02ed19c70abd18be1cf5c76f6121abae6444100..627002b2256856ae9e9ec1bf441a01cbd2af62c9 100644 (file)
@@ -437,15 +437,6 @@ void s390_cmma_reset(void)
     }
 }
 
-int s390_get_memslot_count(void)
-{
-    if (kvm_enabled()) {
-        return kvm_s390_get_memslot_count();
-    } else {
-        return MAX_AVAIL_SLOTS;
-    }
-}
-
 int s390_assign_subch_ioeventfd(EventNotifier *notifier, uint32_t sch_id,
                                 int vq, bool assign)
 {
index 5bd6de7e8ed3896878d11aed1244bff13368a76e..c5ef93087637cdde3e2e8e055209ab78f9b1092b 100644 (file)
@@ -621,9 +621,6 @@ QEMU_BUILD_BUG_ON(sizeof(SysIB) != 4096);
 /* SIGP order code mask corresponding to bit positions 56-63 */
 #define SIGP_ORDER_MASK 0x000000ff
 
-/* from s390-virtio-ccw */
-#define MAX_AVAIL_SLOTS              32
-
 /* machine check interruption code */
 
 /* subclasses */
@@ -695,7 +692,6 @@ int s390_get_clock(uint8_t *tod_high, uint64_t *tod_low);
 int s390_set_clock(uint8_t *tod_high, uint64_t *tod_low);
 void s390_crypto_reset(void);
 bool s390_get_squash_mcss(void);
-int s390_get_memslot_count(void);
 int s390_set_memory_limit(uint64_t new_limit, uint64_t *hw_limit);
 void s390_cmma_reset(void);
 void s390_enable_css_support(S390CPU *cpu);
index 8cdcf83845643f3bb03a3b6b9935b3d025bb314c..29b10542cc986e891048b6dae784c1887e3a9dfd 100644 (file)
@@ -84,11 +84,6 @@ void kvm_s390_cmma_reset(void)
 {
 }
 
-int kvm_s390_get_memslot_count(void)
-{
-  return MAX_AVAIL_SLOTS;
-}
-
 void kvm_s390_reset_vcpu(S390CPU *cpu)
 {
 }
index 8ef509ece46a6df3b1e83455180926c65dfd4d3b..656aaea2cd03ea08b01efcc25ec35f690c4ccdc1 100644 (file)
@@ -1854,11 +1854,6 @@ int kvm_s390_assign_subch_ioeventfd(EventNotifier *notifier, uint32_t sch,
     return kvm_vm_ioctl(kvm_state, KVM_IOEVENTFD, &kick);
 }
 
-int kvm_s390_get_memslot_count(void)
-{
-    return kvm_check_extension(kvm_state, KVM_CAP_NR_MEMSLOTS);
-}
-
 int kvm_s390_get_ri(void)
 {
     return cap_ri;
index 7a3b862eea22b0fbead0cdcd4c4973c5707446d0..c383bf4ee9a0ccc06aa6896b146e04960a87ea45 100644 (file)
@@ -30,7 +30,6 @@ int kvm_s390_set_clock_ext(uint8_t *tod_high, uint64_t *tod_clock);
 void kvm_s390_enable_css_support(S390CPU *cpu);
 int kvm_s390_assign_subch_ioeventfd(EventNotifier *notifier, uint32_t sch,
                                     int vq, bool assign);
-int kvm_s390_get_memslot_count(void);
 int kvm_s390_cmma_active(void);
 void kvm_s390_cmma_reset(void);
 void kvm_s390_reset_vcpu(S390CPU *cpu);
This page took 0.03806 seconds and 4 git commands to generate.