yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-s390x-pv-Fix-KVM_PV_PREP_RESET-command-wrapper-name.patch

902636
From f3594f3d84a7442c194b1b9fd288e7414540ec0f Mon Sep 17 00:00:00 2001
902636
From: Thomas Huth <thuth@redhat.com>
902636
Date: Fri, 29 May 2020 05:54:20 -0400
902636
Subject: [PATCH 38/42] s390x: pv: Fix KVM_PV_PREP_RESET command wrapper name
902636
MIME-Version: 1.0
902636
Content-Type: text/plain; charset=UTF-8
902636
Content-Transfer-Encoding: 8bit
902636
902636
RH-Author: Thomas Huth <thuth@redhat.com>
902636
Message-id: <20200529055420.16855-39-thuth@redhat.com>
902636
Patchwork-id: 97051
902636
O-Subject: [RHEL-8.3.0 qemu-kvm PATCH v2 38/38] s390x: pv: Fix KVM_PV_PREP_RESET command wrapper name
902636
Bugzilla: 1828317
902636
RH-Acked-by: Claudio Imbrenda <cimbrend@redhat.com>
902636
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
902636
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
902636
RH-Acked-by: David Hildenbrand <david@redhat.com>
902636
902636
From: Janosch Frank <frankja@linux.ibm.com>
902636
902636
Upstream: Merged in https://github.com/cohuck/qemu/tree/s390-next
902636
902636
s390_pv_perf_clear_reset() is not a very helpful name since that
902636
function needs to be called for a normal and a clear reset via
902636
diag308.
902636
902636
Let's instead name it s390_pv_prep_reset() which reflects the purpose
902636
of the function a bit better.
902636
902636
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
902636
Reviewed-by: David Hildenbrand <david@redhat.com>
902636
Message-Id: <20200505124159.24099-1-frankja@linux.ibm.com>
902636
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
902636
(cherry picked from commit f9628f3f6db341751002dac3be18610fa77c01ad)
902636
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
902636
---
902636
 hw/s390x/pv.c              | 2 +-
902636
 hw/s390x/s390-virtio-ccw.c | 2 +-
902636
 include/hw/s390x/pv.h      | 4 ++--
902636
 3 files changed, 4 insertions(+), 4 deletions(-)
902636
902636
diff --git a/hw/s390x/pv.c b/hw/s390x/pv.c
902636
index f11868e865..ab3a2482aa 100644
902636
--- a/hw/s390x/pv.c
902636
+++ b/hw/s390x/pv.c
902636
@@ -88,7 +88,7 @@ int s390_pv_unpack(uint64_t addr, uint64_t size, uint64_t tweak)
902636
     return s390_pv_cmd(KVM_PV_UNPACK, &args);
902636
 }
902636
 
902636
-void s390_pv_perf_clear_reset(void)
902636
+void s390_pv_prep_reset(void)
902636
 {
902636
     s390_pv_cmd_exit(KVM_PV_PREP_RESET, NULL);
902636
 }
902636
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
902636
index 07773a12b2..e6ed13b649 100644
902636
--- a/hw/s390x/s390-virtio-ccw.c
902636
+++ b/hw/s390x/s390-virtio-ccw.c
902636
@@ -402,7 +402,7 @@ static void s390_pv_prepare_reset(S390CcwMachineState *ms)
902636
         s390_cpu_set_state(S390_CPU_STATE_STOPPED, S390_CPU(cs));
902636
     }
902636
     s390_pv_unshare();
902636
-    s390_pv_perf_clear_reset();
902636
+    s390_pv_prep_reset();
902636
 }
902636
 
902636
 static void s390_machine_reset(MachineState *machine)
902636
diff --git a/include/hw/s390x/pv.h b/include/hw/s390x/pv.h
902636
index 522ca6a04e..aee758bc2d 100644
902636
--- a/include/hw/s390x/pv.h
902636
+++ b/include/hw/s390x/pv.h
902636
@@ -39,7 +39,7 @@ int s390_pv_vm_enable(void);
902636
 void s390_pv_vm_disable(void);
902636
 int s390_pv_set_sec_parms(uint64_t origin, uint64_t length);
902636
 int s390_pv_unpack(uint64_t addr, uint64_t size, uint64_t tweak);
902636
-void s390_pv_perf_clear_reset(void);
902636
+void s390_pv_prep_reset(void);
902636
 int s390_pv_verify(void);
902636
 void s390_pv_unshare(void);
902636
 void s390_pv_inject_reset_error(CPUState *cs);
902636
@@ -49,7 +49,7 @@ static inline int s390_pv_vm_enable(void) { return 0; }
902636
 static inline void s390_pv_vm_disable(void) {}
902636
 static inline int s390_pv_set_sec_parms(uint64_t origin, uint64_t length) { return 0; }
902636
 static inline int s390_pv_unpack(uint64_t addr, uint64_t size, uint64_t tweak) { return 0; }
902636
-static inline void s390_pv_perf_clear_reset(void) {}
902636
+static inline void s390_pv_prep_reset(void) {}
902636
 static inline int s390_pv_verify(void) { return 0; }
902636
 static inline void s390_pv_unshare(void) {}
902636
 static inline void s390_pv_inject_reset_error(CPUState *cs) {};
902636
-- 
902636
2.27.0
902636