SHA256
1
0
forked from pool/qemu
qemu/0037-PPC-KVM-Ignore-ENABLE_PAPR-to-support-very-old-HV-KV.patch
Andreas Färber 5d2b4ab495 Accepting request 108212 from home:a_faerber:branches:Virtualization
Fix non-SUSE code path in update_git.sh: It couldn't find the v1.0.1 tag, so add and update the upstream git repository as remote. Also remove any previous temporary git checkout first.

OBS-URL: https://build.opensuse.org/request/show/108212
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=61
2012-03-06 19:33:45 +00:00

28 lines
874 B
Diff

From 351142c287c874f959828c6360cda977306dfa47 Mon Sep 17 00:00:00 2001
From: Alexander Graf <agraf@suse.de>
Date: Tue, 10 Jan 2012 17:03:02 +0100
Subject: [PATCH] PPC: KVM: Ignore ENABLE_PAPR to support very old HV KVM
kernels
Very old kernels (3.1) didn't expose the PAPR capability yet, but still
did work with HV KVM. Make the error a warning so we can work on them.
Signed-off-by: Alexander Graf <agraf@suse.de>
---
target-ppc/kvm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c
index 6c6278a..2f39e77 100644
--- a/target-ppc/kvm.c
+++ b/target-ppc/kvm.c
@@ -745,7 +745,7 @@ void kvmppc_set_papr(CPUState *env)
ret = kvm_vcpu_ioctl(env, KVM_ENABLE_CAP, &cap);
if (ret) {
- goto fail;
+ fprintf(stderr, "You're running a very old kernel. Expect breakage!\n");
}
/*