From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Solaris 10 doesn't work under KVM Date: Tue, 13 Feb 2007 16:37:19 +0200 Message-ID: <45D1CD1F.907@qumranet.com> References: <20070128144052.GA5069@waba> <45BDDF32.3010607@qumranet.com> <20070201214924.GB7489@waba> <20070202191942.GB8804@amd.com> <20070204183141.GB13914@waba> <45C99EE9.3010306@qumranet.com> <20070207230427.GA7946@waba> <45CAECEB.4000701@qumranet.com> <20070210133443.GA13495@waba> <45D03801.4040006@qumranet.com> <20070213140619.GA15022@waba> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040009080903050600070806" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Waba Return-path: In-Reply-To: <20070213140619.GA15022@waba> 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. --------------040009080903050600070806 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Waba wrote: > On Mon, Feb 12, 2007 at 11:48:49AM +0200, Avi Kivity wrote: > >> Let's look at the control registers at the time of the SIGILL. Can you >> reproduce the error with the attached patch and send dmesg? >> > > #ud: cr0 8005002b (8005003b) cr4 b8 (b8) > > Qemu also aborted with "unhandled vm exit: 08" or similar, but I guess > that the important part is the printk. > > Right. bit 9 of cr4 (osfxsr) is clear, which according to the docs generates #ud on any sse instruction. can you try the attached test patch (can be on top of the last patch)? -- error compiling committee.c: too many arguments to function --------------040009080903050600070806 Content-Type: text/x-patch; name="force-osfxsr.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="force-osfxsr.patch" Index: svm.c =================================================================== --- svm.c (revision 4418) +++ svm.c (working copy) @@ -555,7 +555,7 @@ * cache by default. the orderly way is to enable cache in bios. */ save->cr0 = 0x00000010 | CR0_PG_MASK | CR0_WP_MASK; - save->cr4 = CR4_PAE_MASK; + save->cr4 = CR4_PAE_MASK | 0x200; /* rdx = ?? */ } @@ -741,7 +741,7 @@ static void svm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) { vcpu->cr4 = cr4; - vcpu->svm->vmcb->save.cr4 = cr4 | CR4_PAE_MASK; + vcpu->svm->vmcb->save.cr4 = cr4 | CR4_PAE_MASK | 0x200; } static void svm_set_segment(struct kvm_vcpu *vcpu, --------------040009080903050600070806 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 --------------040009080903050600070806 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 --------------040009080903050600070806--