[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 02/10] s390x: pv: Fix KVM_PV_PREP_RESET command wrapper name
From: |
Cornelia Huck |
Subject: |
[PULL 02/10] s390x: pv: Fix KVM_PV_PREP_RESET command wrapper name |
Date: |
Fri, 5 Jun 2020 17:37:48 +0200 |
From: Janosch Frank <frankja@linux.ibm.com>
s390_pv_perf_clear_reset() is not a very helpful name since that
function needs to be called for a normal and a clear reset via
diag308.
Let's instead name it s390_pv_prep_reset() which reflects the purpose
of the function a bit better.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20200505124159.24099-1-frankja@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
---
hw/s390x/pv.c | 2 +-
hw/s390x/s390-virtio-ccw.c | 2 +-
include/hw/s390x/pv.h | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/s390x/pv.c b/hw/s390x/pv.c
index f11868e865fa..ab3a2482aad7 100644
--- a/hw/s390x/pv.c
+++ b/hw/s390x/pv.c
@@ -88,7 +88,7 @@ int s390_pv_unpack(uint64_t addr, uint64_t size, uint64_t
tweak)
return s390_pv_cmd(KVM_PV_UNPACK, &args);
}
-void s390_pv_perf_clear_reset(void)
+void s390_pv_prep_reset(void)
{
s390_pv_cmd_exit(KVM_PV_PREP_RESET, NULL);
}
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
index 67ae2e02ffd8..60b16fef77f7 100644
--- a/hw/s390x/s390-virtio-ccw.c
+++ b/hw/s390x/s390-virtio-ccw.c
@@ -401,7 +401,7 @@ static void s390_pv_prepare_reset(S390CcwMachineState *ms)
s390_cpu_set_state(S390_CPU_STATE_STOPPED, S390_CPU(cs));
}
s390_pv_unshare();
- s390_pv_perf_clear_reset();
+ s390_pv_prep_reset();
}
static void s390_machine_reset(MachineState *machine)
diff --git a/include/hw/s390x/pv.h b/include/hw/s390x/pv.h
index 522ca6a04ee8..aee758bc2d34 100644
--- a/include/hw/s390x/pv.h
+++ b/include/hw/s390x/pv.h
@@ -39,7 +39,7 @@ int s390_pv_vm_enable(void);
void s390_pv_vm_disable(void);
int s390_pv_set_sec_parms(uint64_t origin, uint64_t length);
int s390_pv_unpack(uint64_t addr, uint64_t size, uint64_t tweak);
-void s390_pv_perf_clear_reset(void);
+void s390_pv_prep_reset(void);
int s390_pv_verify(void);
void s390_pv_unshare(void);
void s390_pv_inject_reset_error(CPUState *cs);
@@ -49,7 +49,7 @@ static inline int s390_pv_vm_enable(void) { return 0; }
static inline void s390_pv_vm_disable(void) {}
static inline int s390_pv_set_sec_parms(uint64_t origin, uint64_t length) {
return 0; }
static inline int s390_pv_unpack(uint64_t addr, uint64_t size, uint64_t tweak)
{ return 0; }
-static inline void s390_pv_perf_clear_reset(void) {}
+static inline void s390_pv_prep_reset(void) {}
static inline int s390_pv_verify(void) { return 0; }
static inline void s390_pv_unshare(void) {}
static inline void s390_pv_inject_reset_error(CPUState *cs) {};
--
2.25.4
- [PULL 00/10] s390x update, Cornelia Huck, 2020/06/05
- [PULL 01/10] s390x/kvm: help valgrind in several places, Cornelia Huck, 2020/06/05
- [PULL 02/10] s390x: pv: Fix KVM_PV_PREP_RESET command wrapper name,
Cornelia Huck <=
- [PULL 03/10] docs/s390x: document the virtual css, Cornelia Huck, 2020/06/05
- [PULL 05/10] vfio-ccw: allow non-prefetch ORBs, Cornelia Huck, 2020/06/05
- [PULL 06/10] docs/s390x: document vfio-ccw, Cornelia Huck, 2020/06/05
- [PULL 04/10] docs/s390x: document 3270, Cornelia Huck, 2020/06/05
- [PULL 08/10] target/s390x: Only compile decode_basedisp() on system-mode, Cornelia Huck, 2020/06/05
- [PULL 07/10] MAINTAINERS: add Thomas as additional s390x maintainer, Cornelia Huck, 2020/06/05
- [PULL 09/10] target/s390x/helper: Clean ifdef'ry, Cornelia Huck, 2020/06/05
- [PULL 10/10] target/s390x: Restrict system-mode declarations, Cornelia Huck, 2020/06/05
- Re: [PULL 00/10] s390x update, Peter Maydell, 2020/06/05