From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: Re: monitor flag on native kvm tool guest Date: Thu, 01 Dec 2011 15:50:33 +0200 Message-ID: <1322747433.6040.0.camel@lappy> References: <4ED785A4.50308@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Daniele Carollo , kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mail-ey0-f174.google.com ([209.85.215.174]:35992 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754010Ab1LANuq (ORCPT ); Thu, 1 Dec 2011 08:50:46 -0500 Received: by eaak14 with SMTP id k14so2151927eaa.19 for ; Thu, 01 Dec 2011 05:50:45 -0800 (PST) In-Reply-To: <4ED785A4.50308@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, 2011-12-01 at 15:48 +0200, Avi Kivity wrote: > On 12/01/2011 03:37 PM, Daniele Carollo wrote: > > Hi, > > my name's Daniele and I'm using the native linux kvm tool. > > If I try to execute it in this way ./kvm run -d ~/linux-0.2.img I get > > a kernel panic like this: http://paste.org/41673 > > Only using the addictional option -p "idle=halt" I can run a virtual machine. > > Printing cat /proc/cpuinfo on the host i get http://paste.org/41663 > > and on the guest http://paste.org/41664 > > Sashal from the native linux kvm tool team noticed that there is the > > monitor cpu flag even on the guest. > > > > from cpuid.c: > > /* cpuid 1.ecx */ > const u32 kvm_supported_word4_x86_features = > F(XMM3) | F(PCLMULQDQ) | 0 /* DTES64, MONITOR */ | > > so either the masking later on is subtly wrong, or kvm tool doesn't pass > it on correctly, or Linux ignores it. > > Please run the attached program on the host and post its output. > Avi, We tested it with qemu where Daniele has reported that monitor is also visible in the cpuid there. -- Sasha.