mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
PPC: KVM: Add support for EPR with KVM
This patch links KVM EPR support to the existing TCG support we have now. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
e49798b1bd
commit
5b95b8b9c1
3 changed files with 32 additions and 0 deletions
6
hw/ppc.c
6
hw/ppc.c
|
@ -435,7 +435,13 @@ void ppce500_set_mpic_proxy(bool enabled)
|
|||
CPUPPCState *env;
|
||||
|
||||
for (env = first_cpu; env != NULL; env = env->next_cpu) {
|
||||
PowerPCCPU *cpu = ppc_env_get_cpu(env);
|
||||
CPUState *cs = CPU(cpu);
|
||||
|
||||
env->mpic_proxy = enabled;
|
||||
if (kvm_enabled()) {
|
||||
kvmppc_set_mpic_proxy(POWERPC_CPU(cs), enabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue