From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Np3B8-0006PU-Ir for qemu-devel@nongnu.org; Tue, 09 Mar 2010 12:25:10 -0500 Received: from [199.232.76.173] (port=58336 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Np3B7-0006Ol-FV for qemu-devel@nongnu.org; Tue, 09 Mar 2010 12:25:09 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Np3B6-0006Mb-Sl for qemu-devel@nongnu.org; Tue, 09 Mar 2010 12:25:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:10367) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Np3B6-0006LF-DG for qemu-devel@nongnu.org; Tue, 09 Mar 2010 12:25:08 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o29HP1mU026791 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 9 Mar 2010 12:25:01 -0500 Message-ID: <4B96846A.4080003@redhat.com> Date: Tue, 09 Mar 2010 18:24:58 +0100 From: Jes Sorensen MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000702030101090707000703" Subject: [Qemu-devel] [PATCH] QEMU-KVM missing bits for E820 handling. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Cc: Marcelo Tosatti , Avi Kivity This is a multi-part message in MIME format. --------------000702030101090707000703 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, This is the last piece needed for QEMU-KVM to match the changes that went into upstream QEMU. Cheers, Jes --------------000702030101090707000703 Content-Type: text/plain; name="0011-qemu-kvm-e820-missing-bits.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0011-qemu-kvm-e820-missing-bits.patch" Use qemu-cfg to provide the BIOS with an optional table of e820 entries. The missing bits for qemu-kvm.git to match what qemu does. Signed-off-by: Jes Sorensen --- qemu-kvm-x86.c | 7 +++++++ 1 file changed, 7 insertions(+) Index: qemu-kvm/qemu-kvm-x86.c =================================================================== --- qemu-kvm.orig/qemu-kvm-x86.c +++ qemu-kvm/qemu-kvm-x86.c @@ -37,6 +37,13 @@ int kvm_set_tss_addr(kvm_context_t kvm, { #ifdef KVM_CAP_SET_TSS_ADDR int r; + /* + * Tell fw_cfg to notify the BIOS to reserve the range. + */ + if (e820_add_entry(addr, 0x4000, E820_RESERVED) < 0) { + perror("e820_add_entry() table is full"); + exit(1); + } r = kvm_ioctl(kvm_state, KVM_CHECK_EXTENSION, KVM_CAP_SET_TSS_ADDR); if (r > 0) { --------------000702030101090707000703--