Blame qemu-fix-no-kvm-segfault.patch
|
Richard W.M. Jones |
9d0bd0 |
From add286b6e753f14e4ae0ab6b831441aea0d35497 Mon Sep 17 00:00:00 2001
|
|
Richard W.M. Jones |
9d0bd0 |
From: Richard Jones <rjones@f12rawhidex64.home.annexia.org>
|
|
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.
|
|
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
|
|
Richard W.M. Jones |
9d0bd0 |
index 705bcf2..2091516 100644
|
|
Richard W.M. Jones |
9d0bd0 |
--- a/exec.c
|
|
Richard W.M. Jones |
9d0bd0 |
+++ b/exec.c
|
|
Richard W.M. Jones |
9d0bd0 |
@@ -422,9 +422,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 |
--
|
|
Richard W.M. Jones |
9d0bd0 |
1.6.4
|
|
Richard W.M. Jones |
9d0bd0 |
|