Received: from eggs.gnu.org ([2001:4830:134:3::10]:45642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br8dk-00059m-2O for qemu-devel@nongnu.org; Mon, 03 Oct 2016 15:11:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1br8dg-0008MX-K2 for qemu-devel@nongnu.org; Mon, 03 Oct 2016 15:11:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54628) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br8dg-0008Lu-Cx for qemu-devel@nongnu.org; Mon, 03 Oct 2016 15:11:00 -0400 Date: Mon, 3 Oct 2016 16:10:55 -0300 From: Eduardo Habkost Message-ID: <20161003191055.GF3877@thinpad.lan.raisama.net> References: <1475007150-14665-1-git-send-email-ehabkost@redhat.com> <1475007150-14665-15-git-send-email-ehabkost@redhat.com> <20161003164236.GN13491@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161003164236.GN13491@redhat.com> Subject: Re: [Qemu-devel] [PULL 14/20] target-i386: Move xsave component mask to features array List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: Peter Maydell , Paolo Bonzini , qemu-devel@nongnu.org, Richard Henderson On Mon, Oct 03, 2016 at 05:42:36PM +0100, Daniel P. Berrange wrote: > On Tue, Sep 27, 2016 at 05:12:24PM -0300, Eduardo Habkost wrote: > > This will reuse the existing check/enforce logic in > > x86_cpu_filter_features() to check the xsave component bits > > against GET_SUPPORTED_CPUID. > > > > Reviewed-by: Richard Henderson > > Signed-off-by: Eduardo Habkost > > --- > > target-i386/cpu.c | 42 ++++++++++++++++++++++++++++-------------- > > target-i386/cpu.h | 3 ++- > > 2 files changed, 30 insertions(+), 15 deletions(-) > > git bisect tells me that this change is responsible for breaking booting > of a guest of mine which uses -cpu host > > GRUB works, but the guest kernel hangs immediately after printing > > "Probing EDD (edd=off to disable)... ok" > > Removing '-cpu host' lets it work again. [...] > In case its relevant, QEMU prints this to stderr: > > warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 0] > warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 1] > warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 2] This was reported by Wanpeng Li last week. The fix ("target-i386: Report known CPUID[EAX=0xD,ECX=0]:EAX bits as migratable") is in the pull request I sent today. You can also work around it by using "-cpu host,migratable=off". -- Eduardo