From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] Match virtual machine processor vendor to that of the host Date: Thu, 21 Dec 2006 11:20:00 +0200 Message-ID: <458A51C0.6020506@qumranet.com> References: <1166675645.10717.99.camel@aglarond.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: To: Jeremy Katz In-Reply-To: <1166675645.10717.99.camel-T9xAYgMuJli44ywRPIzf9A@public.gmane.org> 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 Jeremy Katz wrote: > Currently, kvm ends up just using the standard qemu cpu initialization. > This means that all x86_64 virtual machines appear to have an > AuthenticAMD (AMD64) processor. This ends up causing a problem when > booting some x86_64 Linux kernels as they attempt to do AMD64 specific > initialization for things like performance counters. Since those MSRs > aren't supported on the Intel host, the virtual machine is halted. > > The attached patch makes it so that we check the actual cpu type of the > host and then provide the same cpu type for the virtual machine. > > Windows crashes immediately with this patch (STOP: 0x7E (0xc0000005 0xF724879C 0xF7A168DC 0xF7A165D8) for those who know how to decode BSODs), so either it's doing too much or not enough. Note that we support migration from Intel to AMD and vice versa, so it would be good to supply a command line parameter to set the cpuid (to a least common denominator CPU). -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV