From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David S. Ahern" Subject: Re: kvm with OpenBSD 4.5 Date: Thu, 16 Apr 2009 21:39:45 -0600 Message-ID: <49E7FA01.9000301@cisco.com> References: <4b3406f0904152051h7cabcf12u484c40c7d4812ef7@mail.gmail.com> <200904160014.28052.iggy@theiggy.com> <4b3406f0904160143q1c9fbeb7s5a2b13d882d95a55@mail.gmail.com> <200904160850.57440.iggy@theiggy.com> <4b3406f0904161822vba82705i5af7364ea4b16e70@mail.gmail.com> <49E7E734.5090503@cisco.com> <4b3406f0904162025q273e98c4m6d45dab9475e465e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Brian Jackson , kvm@vger.kernel.org, misc To: Dongsheng Song Return-path: Received: from sj-iport-6.cisco.com ([171.71.176.117]:62804 "EHLO sj-iport-6.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753050AbZDQDjt (ORCPT ); Thu, 16 Apr 2009 23:39:49 -0400 In-Reply-To: <4b3406f0904162025q273e98c4m6d45dab9475e465e@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: Have you seen this thread: http://article.gmane.org/gmane.comp.emulators.kvm.devel/28649 It's the one that resulted in these patches by Marcelo: http://article.gmane.org/gmane.comp.emulators.kvm.devel/30452 http://article.gmane.org/gmane.comp.emulators.kvm.devel/30453 david Dongsheng Song wrote: > No good news, same as kvm-84 vanilla. > > 2009/4/17 David S. Ahern : >> I believe this is the patch that should fix the problem: >> >> Index: kvm/arch/x86/kvm/mmu.c >> =================================================================== >> --- kvm.orig/arch/x86/kvm/mmu.c >> +++ kvm/arch/x86/kvm/mmu.c >> @@ -1254,7 +1254,7 @@ static struct kvm_mmu_page *kvm_mmu_get_ >> pgprintk("%s: adding gfn %lx role %x\n", __func__, gfn, role.word); >> sp->gfn = gfn; >> sp->role = role; >> - sp->global = role.cr4_pge; >> + sp->global = 0; >> hlist_add_head(&sp->hash_link, bucket); >> if (!direct) { >> if (rmap_write_protect(vcpu->kvm, gfn)) >> >> david >> >> >> Dongsheng Song wrote: >>> 2009/4/16 Brian Jackson : >>>> it's a module option to the kvm option. >>>> >>>> parm: oos_shadow:bool >>>> >>> When I set 'oos_shadow=Y' for kvm-84 module, OpenBSD 4.5 stopped >>> after display 'clock: unknown CMOS layout'. >>> >>> When I set 'oos_shadow=N' for kvm-84 module, OpenBSD 4.5 go farther, >>> stopped after display 'setting ttty flags'. >>> >>> Both dmesg display like this: >>> >>> Apr 17 09:16:58 dl kernel: [47761.218611] __ratelimit: 1216720 >>> messages suppressed >>> Apr 17 09:16:58 dl kernel: [47761.218611] emulation failed (pagetable) >>> rip d0491096 c9 c3 8a 04 >>> >>> -- >>> Dongsheng Song