aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2013-01-17 11:54:38 +0100
committerAlexander Graf <agraf@suse.de>2013-01-18 19:06:57 +0100
commit5b95b8b9c1b0cd30a31dbeffdaec35134248b6e9 (patch)
treece785d83af537cb161bb868f87bf124aa1234ed6 /hw/ppc.c
parente49798b1bd7657722080126bfd5e787efdb3bc23 (diff)
downloadqemu-5b95b8b9c1b0cd30a31dbeffdaec35134248b6e9.zip
qemu-5b95b8b9c1b0cd30a31dbeffdaec35134248b6e9.tar.gz
qemu-5b95b8b9c1b0cd30a31dbeffdaec35134248b6e9.tar.bz2
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>
Diffstat (limited to 'hw/ppc.c')
-rw-r--r--hw/ppc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/ppc.c b/hw/ppc.c
index 1fce604..c52e22f 100644
--- a/hw/ppc.c
+++ b/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);
+ }
}
}