Blame SOURCES/kvm-spapr-add-missing-break-in-h_get_cpu_characteristics.patch

4a2fec
From 72c1a30661e94a58a347dd6341dd8cabdc23d2dc Mon Sep 17 00:00:00 2001
4a2fec
From: Suraj Jitindar Singh <sursingh@redhat.com>
4a2fec
Date: Tue, 13 Feb 2018 04:12:30 +0100
4a2fec
Subject: [PATCH 13/15] spapr: add missing break in h_get_cpu_characteristics()
4a2fec
4a2fec
RH-Author: Suraj Jitindar Singh <sursingh@redhat.com>
4a2fec
Message-id: <1518495150-24134-10-git-send-email-sursingh@redhat.com>
4a2fec
Patchwork-id: 78985
4a2fec
O-Subject: [RHEL7.5 qemu-kvm-rhev PATCH 9/9] spapr: add missing break in h_get_cpu_characteristics()
4a2fec
Bugzilla: 1532050
4a2fec
RH-Acked-by: David Gibson <dgibson@redhat.com>
4a2fec
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
4a2fec
RH-Acked-by: Thomas Huth <thuth@redhat.com>
4a2fec
4a2fec
From: Greg Kurz <groug@kaod.org>
4a2fec
4a2fec
Detected by Coverity (CID 1385702). This fixes the recently added hypercall
4a2fec
to let guests properly apply Spectre and Meltdown workarounds.
4a2fec
4a2fec
Fixes: c59704b25473 "target/ppc/spapr: Add H-Call H_GET_CPU_CHARACTERISTICS"
4a2fec
Reported-by: Paolo Bonzini <pbonzini@redhat.com>
4a2fec
Signed-off-by: Greg Kurz <groug@kaod.org>
4a2fec
Reviewed-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
4a2fec
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
4a2fec
(cherry picked from commit fa86f59234919b479b7e8da6b0dc2dad894a5eac)
4a2fec
4a2fec
Conflicts: none
4a2fec
4a2fec
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1532050
4a2fec
4a2fec
Signed-off-by: Suraj Jitindar Singh <sursingh@redhat.com>
4a2fec
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
4a2fec
---
4a2fec
 hw/ppc/spapr_hcall.c | 1 +
4a2fec
 1 file changed, 1 insertion(+)
4a2fec
4a2fec
diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c
4a2fec
index 21247cd..d3f811a 100644
4a2fec
--- a/hw/ppc/spapr_hcall.c
4a2fec
+++ b/hw/ppc/spapr_hcall.c
4a2fec
@@ -1672,6 +1672,7 @@ static target_ulong h_get_cpu_characteristics(PowerPCCPU *cpu,
4a2fec
     switch (safe_indirect_branch) {
4a2fec
     case SPAPR_CAP_FIXED:
4a2fec
         characteristics |= H_CPU_CHAR_BCCTRL_SERIALISED;
4a2fec
+        break;
4a2fec
     default: /* broken */
4a2fec
         assert(safe_indirect_branch == SPAPR_CAP_BROKEN);
4a2fec
         break;
4a2fec
-- 
4a2fec
1.8.3.1
4a2fec