Skip to content

Commit 4215d34

Browse files
committed
Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-5.1-20200727' into staging
ppc patch queue 2020-07-27 Only one patch in this batch, but it fixes a fairly important regression, so we want it in qemu-5.1 # gpg: Signature made Mon 27 Jul 2020 06:51:57 BST # gpg: using RSA key 75F46586AE61A66CC44E87DC6C38CACA20D9B392 # gpg: Good signature from "David Gibson <[email protected]>" [full] # gpg: aka "David Gibson (Red Hat) <[email protected]>" [full] # gpg: aka "David Gibson (ozlabs.org) <[email protected]>" [full] # gpg: aka "David Gibson (kernel.org) <[email protected]>" [unknown] # Primary key fingerprint: 75F4 6586 AE61 A66C C44E 87DC 6C38 CACA 20D9 B392 * remotes/dgibson/tags/ppc-for-5.1-20200727: pseries: fix kvmppc_set_fwnmi() Signed-off-by: Peter Maydell <[email protected]>
2 parents 194f8ca + aef92d8 commit 4215d34

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

hw/ppc/spapr_rtas.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ static void rtas_ibm_nmi_register(PowerPCCPU *cpu,
438438
}
439439

440440
if (kvm_enabled()) {
441-
if (kvmppc_set_fwnmi() < 0) {
441+
if (kvmppc_set_fwnmi(cpu) < 0) {
442442
rtas_st(rets, 0, RTAS_OUT_NOT_SUPPORTED);
443443
return;
444444
}

target/ppc/kvm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,9 +2071,8 @@ bool kvmppc_get_fwnmi(void)
20712071
return cap_fwnmi;
20722072
}
20732073

2074-
int kvmppc_set_fwnmi(void)
2074+
int kvmppc_set_fwnmi(PowerPCCPU *cpu)
20752075
{
2076-
PowerPCCPU *cpu = POWERPC_CPU(first_cpu);
20772076
CPUState *cs = CPU(cpu);
20782077

20792078
return kvm_vcpu_enable_cap(cs, KVM_CAP_PPC_FWNMI, 0);

target/ppc/kvm_ppc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void kvmppc_set_papr(PowerPCCPU *cpu);
2828
int kvmppc_set_compat(PowerPCCPU *cpu, uint32_t compat_pvr);
2929
void kvmppc_set_mpic_proxy(PowerPCCPU *cpu, int mpic_proxy);
3030
bool kvmppc_get_fwnmi(void);
31-
int kvmppc_set_fwnmi(void);
31+
int kvmppc_set_fwnmi(PowerPCCPU *cpu);
3232
int kvmppc_smt_threads(void);
3333
void kvmppc_error_append_smt_possible_hint(Error *const *errp);
3434
int kvmppc_set_smt_threads(int smt);
@@ -169,7 +169,7 @@ static inline bool kvmppc_get_fwnmi(void)
169169
return false;
170170
}
171171

172-
static inline int kvmppc_set_fwnmi(void)
172+
static inline int kvmppc_set_fwnmi(PowerPCCPU *cpu)
173173
{
174174
return -1;
175175
}

0 commit comments

Comments
 (0)