[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/9] ppc/pegasos2: Report an error when run with KVM
From: |
Cédric Le Goater |
Subject: |
[PATCH 5/9] ppc/pegasos2: Report an error when run with KVM |
Date: |
Tue, 20 Jun 2023 07:59:07 +0200 |
The 'pegasos2' machine never supported KVM. This piece of code was
inherited from another model.
Cc: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
hw/ppc/pegasos2.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/hw/ppc/pegasos2.c b/hw/ppc/pegasos2.c
index af5489de26ed..830323cc7849 100644
--- a/hw/ppc/pegasos2.c
+++ b/hw/ppc/pegasos2.c
@@ -29,7 +29,6 @@
#include "qemu/log.h"
#include "qemu/error-report.h"
#include "sysemu/kvm.h"
-#include "kvm_ppc.h"
#include "exec/address-spaces.h"
#include "qom/qom-qobject.h"
#include "qapi/qmp/qdict.h"
@@ -120,6 +119,12 @@ static void pegasos2_init(MachineState *machine)
int i, sz;
uint8_t *spd_data;
+ if (kvm_enabled()) {
+ error_report("machine %s does not support the KVM accelerator",
+ MACHINE_GET_CLASS(machine)->name);
+ exit(EXIT_FAILURE);
+ }
+
/* init CPU */
pm->cpu = POWERPC_CPU(cpu_create(machine->cpu_type));
env = &pm->cpu->env;
--
2.41.0
- Re: [PATCH 1/9] MAINTAINERS: Add reviewers for PowerNV baremetal emulation, (continued)
- [PATCH 3/9] MAINTAINERS: Add reviewer for XIVE, Cédric Le Goater, 2023/06/20
- [PATCH 2/9] MAINTAINERS: Add reviewer for PowerPC TCG CPUs, Cédric Le Goater, 2023/06/20
- [PATCH 5/9] ppc/pegasos2: Report an error when run with KVM,
Cédric Le Goater <=
- [PATCH 7/9] ppc/bamboo: Report an error when run with KVM, Cédric Le Goater, 2023/06/20
- [PATCH 9/9] target/ppc: Fix timer register accessors when !KVM, Cédric Le Goater, 2023/06/20
- [PATCH 4/9] ppc/prep: Report an error when run with KVM, Cédric Le Goater, 2023/06/20
- [PATCH 8/9] ppc/pnv: Rephrase error when run with KVM, Cédric Le Goater, 2023/06/20