Blame qemu-fix-no-kvm-segfault.patch
|
Mark McLoughlin |
b77f8b |
From aa1620047bb49079f4c114326d43fb9aa7a26065 Mon Sep 17 00:00:00 2001
|
|
Mark McLoughlin |
b77f8b |
From: Richard Jones <rjones@redhat.com>
|
|
Richard W.M. Jones |
9d0bd0 |
Date: Thu, 20 Aug 2009 13:52:20 +0100
|
|
Richard W.M. Jones |
9d0bd0 |
Subject: [PATCH] Workaround segfault when qemu-kvm runs inside a VM (RHBZ#516543).
|
|
Richard W.M. Jones |
9d0bd0 |
|
|
Richard W.M. Jones |
9d0bd0 |
Regression was introduced by this commit:
|
|
Richard W.M. Jones |
9d0bd0 |
http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commitdiff;h=b8083e930efc1ee85a7ad7e700dbd0f52ebb32dd
|
|
Richard W.M. Jones |
9d0bd0 |
|
|
Richard W.M. Jones |
9d0bd0 |
Upstream discussion:
|
|
Richard W.M. Jones |
9d0bd0 |
http://www.mail-archive.com/kvm@vger.kernel.org/msg19890.html
|
|
Richard W.M. Jones |
9d0bd0 |
|
|
Richard W.M. Jones |
9d0bd0 |
Note: NOT UPSTREAM and this is something of a hack. Upstream are
|
|
Richard W.M. Jones |
9d0bd0 |
still debating how they really want to fix this.
|
|
Mark McLoughlin |
b77f8b |
|
|
Mark McLoughlin |
b77f8b |
Signed-off-by: Richard Jones <rjones@redhat.com>
|
|
Mark McLoughlin |
b77f8b |
Fedora-patch: qemu-fix-no-kvm-segfault.patch
|
|
Richard W.M. Jones |
9d0bd0 |
---
|
|
Richard W.M. Jones |
9d0bd0 |
exec.c | 3 ---
|
|
Richard W.M. Jones |
9d0bd0 |
1 files changed, 0 insertions(+), 3 deletions(-)
|
|
Richard W.M. Jones |
9d0bd0 |
|
|
Richard W.M. Jones |
9d0bd0 |
diff --git a/exec.c b/exec.c
|
|
Mark McLoughlin |
b77f8b |
index 88bcff5..721fcff 100644
|
|
Richard W.M. Jones |
9d0bd0 |
--- a/exec.c
|
|
Richard W.M. Jones |
9d0bd0 |
+++ b/exec.c
|
|
Mark McLoughlin |
b77f8b |
@@ -421,9 +421,6 @@ static uint8_t static_code_gen_buffer[DEFAULT_CODE_GEN_BUFFER_SIZE];
|
|
Richard W.M. Jones |
9d0bd0 |
|
|
Richard W.M. Jones |
9d0bd0 |
static void code_gen_alloc(unsigned long tb_size)
|
|
Richard W.M. Jones |
9d0bd0 |
{
|
|
Richard W.M. Jones |
9d0bd0 |
- if (kvm_enabled())
|
|
Richard W.M. Jones |
9d0bd0 |
- return;
|
|
Richard W.M. Jones |
9d0bd0 |
-
|
|
Richard W.M. Jones |
9d0bd0 |
#ifdef USE_STATIC_CODE_GEN_BUFFER
|
|
Richard W.M. Jones |
9d0bd0 |
code_gen_buffer = static_code_gen_buffer;
|
|
Richard W.M. Jones |
9d0bd0 |
code_gen_buffer_size = DEFAULT_CODE_GEN_BUFFER_SIZE;
|
|
Richard W.M. Jones |
9d0bd0 |
--
|
|
Mark McLoughlin |
b77f8b |
1.6.2.5
|
|
Richard W.M. Jones |
9d0bd0 |
|