From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: KVM-58 -- existing VM just hangs with black screen Date: Thu, 03 Jan 2008 12:22:57 +0200 Message-ID: <477CB781.8090302@qumranet.com> References: <477B7EAC.8060807@redhat.com> <477B7F82.6090705@qumranet.com> <477B86AC.6060404@redhat.com> <477B8867.10702@qumranet.com> <477B8D51.30108@redhat.com> <477BB44D.9020301@qumranet.com> <477BB507.50008@redhat.com> <477BC62B.2080708@qumranet.com> <1199298599.6402.18.camel@erebor.boston.redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030004080605070208030204" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Jeremy Katz Return-path: In-Reply-To: <1199298599.6402.18.camel-SFI/tHjZhb0EMMbVNdFDoACJwEvxM/w9@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------030004080605070208030204 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Jeremy Katz wrote: > On Wed, 2008-01-02 at 19:13 +0200, Avi Kivity wrote: > >> Can you try the option '-no-kvm' both with kvm-57 and kvm-58? >> > > -no-kvm works. I can hit this just booting a live CD both on a 32bit > and a 64bit host. It looks like compatibility with old kernels is > broken (the kvm package only contains the userspace bits, the kernel > bits come from the kernel which is currently 2.6.24-rc6). Building an > updated kernel module makes things start to work on my laptop > Right. I fixed this for kvm-60, see attached patch. -- error compiling committee.c: too many arguments to function --------------030004080605070208030204 Content-Type: text/x-patch; name="fix-old-kernels.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fix-old-kernels.patch" commit 6b8bb99a9cde386d72b4b7c22b92f4bdec333dab Author: Avi Kivity Date: Thu Jan 3 12:20:21 2008 +0200 kvm: qemu: restore IO_MEM_ROM mark to bios when registering the memory with kvm We removed the IO_MEM_ROM mark for qemu, since the tpr optimization needs to update the bios. However, kvm_cpu_register_physical_memory() uses the mark for other purposes, so keep it. The removal broke bootstrap on older kernels. Signed-off-by: Avi Kivity diff --git a/qemu/hw/pc.c b/qemu/hw/pc.c index 5a1b7d4..179585f 100644 --- a/qemu/hw/pc.c +++ b/qemu/hw/pc.c @@ -865,8 +865,7 @@ static void pc_init1(ram_addr_t ram_size, int vga_ram_size, if (kvm_allowed) kvm_cpu_register_physical_memory(0x100000 - isa_bios_size, isa_bios_size, - (bios_offset + bios_size - isa_bios_size) - /* | IO_MEM_ROM */); + (bios_offset + bios_size - isa_bios_size) | IO_MEM_ROM); #endif --------------030004080605070208030204 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --------------030004080605070208030204 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------030004080605070208030204--