From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [RFT] Fix for unhandled msr c0000081 problems under Intel cpus Date: Thu, 28 Dec 2006 16:09:21 +0200 Message-ID: <4593D011.9020808@qumranet.com> References: <457FCBB9.5070800@qumranet.com> <45805400.3060308@mr511.de> <458117E4.4010807@qumranet.com> <45812407.7010803@qumranet.com> <20061228131445.GA1438@elte.hu> <4593C4CE.4040203@qumranet.com> <20061228132602.GA3392@elte.hu> <20061228134845.GA7446@elte.hu> <4593CD12.7010603@qumranet.com> <20061228140223.GA9418@elte.hu> 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: Ingo Molnar In-Reply-To: <20061228140223.GA9418-X9Un+BFzKDI@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 Ingo Molnar wrote: > * Avi Kivity wrote: > > >>> that did the trick. The only messages remaining are: >>> >>> kvm: unhandled wrmsr: 0xc1 >>> inject_general_protection: rip 0xc011b8ae >>> >>> >>> >> That's a performance counter. What guest triggers it? >> > > a 32-bit Linux bzImage: > > c011b8ae: 0f 30 wrmsr > > (gdb) list *0xc011b8ae > 0xc011b8ae is in setup_apic_nmi_watchdog (include/asm/msr.h:36). > 31 static inline void wrmsrl (unsigned long msr, unsigned long long val) > 32 { > 33 unsigned long lo, hi; > 34 lo = (unsigned long) val; > 35 hi = val >> 32; > 36 wrmsr (msr, lo, hi); > 37 } > 38 > 39 /* wrmsr with exception handling */ > 40 #define wrmsr_safe(msr,a,b) ({ int ret__; > > the guest also obviously crashes due to this #GPF. > The wary ones use wrmsr_safe(). > [ 2.6.20-rc2-rt2 kernel of course ;-) ] > > Who's the caller? I boot 2.6.18 variants regularly and they don't touch that msr. -- 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