All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Jeremy Katz <katzj-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: KVM-58 -- existing VM just hangs with black screen
Date: Thu, 03 Jan 2008 12:22:57 +0200	[thread overview]
Message-ID: <477CB781.8090302@qumranet.com> (raw)
In-Reply-To: <1199298599.6402.18.camel-SFI/tHjZhb0EMMbVNdFDoACJwEvxM/w9@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 629 bytes --]

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


[-- Attachment #2: fix-old-kernels.patch --]
[-- Type: text/x-patch, Size: 1126 bytes --]

commit 6b8bb99a9cde386d72b4b7c22b92f4bdec333dab
Author: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
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 <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>

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
 
 

[-- Attachment #3: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
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/

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

  parent reply	other threads:[~2008-01-03 10:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-02 12:08 KVM-58 -- existing VM just hangs with black screen Richard W.M. Jones
     [not found] ` <477B7EAC.8060807-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2008-01-02 12:11   ` Avi Kivity
     [not found]     ` <477B7F82.6090705-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-02 12:20       ` Richard W.M. Jones
2008-01-02 12:42       ` Richard W.M. Jones
     [not found]         ` <477B86AC.6060404-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2008-01-02 12:49           ` Avi Kivity
     [not found]             ` <477B8867.10702-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-02 13:04               ` Richard W.M. Jones
     [not found]                 ` <477B8BCD.4020006-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2008-01-02 13:08                   ` Avi Kivity
2008-01-02 13:10               ` Richard W.M. Jones
     [not found]                 ` <477B8D51.30108-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2008-01-02 15:57                   ` Avi Kivity
     [not found]                     ` <477BB44D.9020301-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-02 16:00                       ` Richard W.M. Jones
     [not found]                         ` <477BB507.50008-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2008-01-02 17:13                           ` Avi Kivity
     [not found]                             ` <477BC62B.2080708-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-02 18:29                               ` Jeremy Katz
     [not found]                                 ` <1199298599.6402.18.camel-SFI/tHjZhb0EMMbVNdFDoACJwEvxM/w9@public.gmane.org>
2008-01-03 10:22                                   ` Avi Kivity [this message]
     [not found] ` <20080102122709.GA11855@karma.qumranet.com>
     [not found]   ` <20080102122709.GA11855-iWbx9bcAnq+Hk9JtIoIkgNBPR1lH4CV8@public.gmane.org>
2008-01-02 12:32     ` Richard W.M. Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=477CB781.8090302@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=katzj-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.