thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

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

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