From patchwork Fri Apr 17 02:19:32 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "David S. Ahern" X-Patchwork-Id: 18599 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3H2JcYI023787 for ; Fri, 17 Apr 2009 02:19:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754364AbZDQCTg (ORCPT ); Thu, 16 Apr 2009 22:19:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754095AbZDQCTf (ORCPT ); Thu, 16 Apr 2009 22:19:35 -0400 Received: from sj-iport-6.cisco.com ([171.71.176.117]:47213 "EHLO sj-iport-6.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753122AbZDQCTf (ORCPT ); Thu, 16 Apr 2009 22:19:35 -0400 X-IronPort-AV: E=Sophos;i="4.40,202,1238976000"; d="scan'208";a="287769826" Received: from sj-dkim-1.cisco.com ([171.71.179.21]) by sj-iport-6.cisco.com with ESMTP; 17 Apr 2009 02:19:35 +0000 Received: from sj-core-1.cisco.com (sj-core-1.cisco.com [171.71.177.237]) by sj-dkim-1.cisco.com (8.12.11/8.12.11) with ESMTP id n3H2JZd6007869; Thu, 16 Apr 2009 19:19:35 -0700 Received: from xbh-sjc-231.amer.cisco.com (xbh-sjc-231.cisco.com [128.107.191.100]) by sj-core-1.cisco.com (8.13.8/8.13.8) with ESMTP id n3H2JZwi007780; Fri, 17 Apr 2009 02:19:35 GMT Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by xbh-sjc-231.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 16 Apr 2009 19:19:34 -0700 Received: from [10.89.17.59] ([10.89.17.59]) by xfe-sjc-212.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 16 Apr 2009 19:19:34 -0700 Message-ID: <49E7E734.5090503@cisco.com> Date: Thu, 16 Apr 2009 20:19:32 -0600 From: "David S. Ahern" User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Dongsheng Song CC: Brian Jackson , kvm@vger.kernel.org, misc Subject: Re: kvm with OpenBSD 4.5 References: <4b3406f0904152051h7cabcf12u484c40c7d4812ef7@mail.gmail.com> <200904160014.28052.iggy@theiggy.com> <4b3406f0904160143q1c9fbeb7s5a2b13d882d95a55@mail.gmail.com> <200904160850.57440.iggy@theiggy.com> <4b3406f0904161822vba82705i5af7364ea4b16e70@mail.gmail.com> In-Reply-To: <4b3406f0904161822vba82705i5af7364ea4b16e70@mail.gmail.com> X-OriginalArrivalTime: 17 Apr 2009 02:19:34.0417 (UTC) FILETIME=[F2FB6010:01C9BF02] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; l=1424; t=1239934775; x=1240798775; c=relaxed/simple; s=sjdkim1004; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=daahern@cisco.com; z=From:=20=22David=20S.=20Ahern=22=20 |Subject:=20Re=3A=20kvm=20with=20OpenBSD=204.5 |Sender:=20; bh=ovEgsOK6QcNW36MC+ny8/6XyRewLG4J0Np5pIHh5WcM=; b=Ll2bxkguwDG2TUzfMexm5mD/zSZzL8UVbmwqHniR1WE9pm9te+4ojjoK1Y QS8HNaXR7/WEOWZnZxCml1fSGNVhJocDY0Qjj6nf3aSlRi5J/4IURZjOrb7N x2YMPlhrn87VtWRaJ1YzMNH/dTsji7ayA9FZb99AX+NBOWNb4Vg1w=; Authentication-Results: sj-dkim-1; header.From=daahern@cisco.com; dkim=pass ( sig from cisco.com/sjdkim1004 verified; ); Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org I believe this is the patch that should fix the problem: 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 > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > --- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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))