44bce8debe
- add fixes for reserved_va mmap(NULL) case, fixes git build on arm OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=59
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
From f0fd80de8f15efc091751f2e9bf4c2276ba058b3 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 0410901..6c6278a 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 */
|