[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/1] ppc/pef.c: initialize cgs->ready in kvmppc_svm_init()
From: |
Ram Pai |
Subject: |
Re: [PATCH 1/1] ppc/pef.c: initialize cgs->ready in kvmppc_svm_init() |
Date: |
Fri, 28 May 2021 14:22:36 -0700 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, May 28, 2021 at 05:16:19PM -0300, Daniel Henrique Barboza wrote:
> QEMU is failing to launch a CGS pSeries guest in a host that has PEF
> support:
>
> qemu-system-ppc64: ../softmmu/vl.c:2585: qemu_machine_creation_done:
> Assertion `machine->cgs->ready' failed.
> Aborted
>
> This is happening because we're not setting the cgs->ready flag that is
> asserted in qemu_machine_creation_done() during machine start.
>
> cgs->ready is set in s390_pv_kvm_init() and sev_kvm_init(). Let's set it
> in kvmppc_svm_init() as well.
>
> Reported-by: Ram Pai <linuxram@us.ibm.com>
> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Acked-by: Ram Pai <linuxram@us.ibm.com>
> ---
> hw/ppc/pef.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/hw/ppc/pef.c b/hw/ppc/pef.c
> index 573be3ed79..cc44d5e339 100644
..snip..