From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1956539AbdDZHss (ORCPT ); Wed, 26 Apr 2017 03:48:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43712 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1955445AbdDZHsj (ORCPT ); Wed, 26 Apr 2017 03:48:39 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com AA5DE3B70C Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=pbonzini@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com AA5DE3B70C Subject: Re: [BUG] x86: failed to boot a kernel on a Ryzen machine To: Borislav Petkov , Satoru Takeuchi References: <87pog21ede.wl-satoru.takeuchi@gmail.com> <20170424110753.y332daaxxkwiipog@pd.tnic> <87wpaa7zf3.wl-satoru.takeuchi@gmail.com> <20170424124846.6jkjjywt5gsoxuy3@pd.tnic> <87shky7y1b.wl-satoru.takeuchi@gmail.com> <20170425093607.n33gonz5kfzqgveg@pd.tnic> Cc: x86@kernel.org, linux-kernel@vger.kernel.org, kvm ML From: Paolo Bonzini Message-ID: Date: Wed, 26 Apr 2017 09:48:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170425093607.n33gonz5kfzqgveg@pd.tnic> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 26 Apr 2017 07:48:33 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/04/2017 11:36, Borislav Petkov wrote: > Looking at CR4: 00000000003006f0, it doesn't have OSXSAVE set. I.e., bit > 18. And when that bit is not set, VMOVDQA raises an #UD. > > And for some reason qemu doesn't like it even if you request that bit with > +osxsave: > > warning: host doesn't support requested feature: CPUID.01H:ECX.osxsave [bit 27] > > Even though the corresponding bit in CPUID on the host is set: > > 0x00000001: EAX=0x00800f00, EBX=0x40200800, ECX=0x7ed8320b, EDX=0x178bfbff > ^ > Paolo, any thoughts? The OSXSAVE CPUID bit is not set by QEMU, it is set by the OS itself (indirectly) when it sets CR4.OSXSAVE. QEMU says it's not available (probably) because the Opteron_G3 CPU model does not have the 0xD CPUID leaf. I think you're using libvirt's "host-model" CPU model. That model needs QEMU/libvirt support for each host CPU family, and in general it often gives rise to bugs such as the one you're reporting, Change it to host-passthrough, and please send us the output of /proc/cpuinfo so we can add support for Ryzen in "host-model". Thanks, Paolo