b96ce9a1d4
http://wiki.qemu.org/ChangeLog/1.0 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=53
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From 0d04677df6aabf7404c7bbe454d7be973a773bb0 Mon Sep 17 00:00:00 2001
|
|
From: Alexander Graf <agraf@suse.de>
|
|
Date: Tue, 10 Jan 2012 16:25:27 +0100
|
|
Subject: [PATCH] PPC: KVM: Ignore SET_ONE_REG failures
|
|
|
|
The SET_ONE_REG interface didn't make it upstream in the form that is used
|
|
in qemu-1.0, so the code won't work. Make the error a warning, so we can
|
|
at least use the HV target.
|
|
|
|
Signed-off-by: Alexander Graf <agraf@suse.de>
|
|
---
|
|
target-ppc/kvm.c | 5 ++++-
|
|
1 files changed, 4 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c
|
|
index 429349f..a03e99c 100644
|
|
--- a/target-ppc/kvm.c
|
|
+++ b/target-ppc/kvm.c
|
|
@@ -759,7 +759,10 @@ void kvmppc_set_papr(CPUState *env)
|
|
reg.u.reg64 = env->spr[SPR_HIOR];
|
|
ret = kvm_vcpu_ioctl(env, KVM_SET_ONE_REG, ®);
|
|
if (ret) {
|
|
- goto fail;
|
|
+ fprintf(stderr, "Couldn't set HIOR. Maybe you're running an old \n"
|
|
+ "kernel with support for HV KVM but no PAPR PR \n"
|
|
+ "KVM in which case things will work. If they don't \n"
|
|
+ "please update your host kernel!\n");
|
|
}
|
|
|
|
/* Set SDR1 so kernel space finds the HTAB */
|
|
--
|
|
1.6.0.2
|
|
|