From: Eduardo Habkost Subject: Re: [PATCH v2] kvm: x86: emulate monitor and mwait instructions as nop Date: Thu, 5 Jun 2014 11:40:23 -0300 Message-ID: <20140605144023.GL17594@otherpad.lan.raisama.net> References: <20140507205210.GA30030@ERROL.INI.CMU.EDU> <20140602192530.GC1653@ERROL.INI.CMU.EDU> <538D92BC.4060203@redhat.com> <20140604143941.GF1653@ERROL.INI.CMU.EDU> <538F30BD.5000501@suse.de> <538F4A7C.7070202@redhat.com> <20140604204448.GG4105@pd.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Paolo Bonzini , Alexander Graf , "Gabriel L. Somlo" , kvm@vger.kernel.org, mst@redhat.com To: Borislav Petkov Return-path: Received: from mx1.redhat.com ([209.132.183.28]:58986 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751973AbaFEOkv (ORCPT ); Thu, 5 Jun 2014 10:40:51 -0400 Content-Disposition: inline In-Reply-To: <20140604204448.GG4105@pd.tnic> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Jun 04, 2014 at 10:44:48PM +0200, Borislav Petkov wrote: > On Wed, Jun 04, 2014 at 06:34:04PM +0200, Paolo Bonzini wrote: > > That should be the purpose of KVM_GET_EMULATED_CPUID, so MWAIT could be > > added in __do_cpuid_ent_emulated. However, the corresponding QEMU patches > > were never included. Borislav, can you refresh them? > > /me goes and swaps in all the details from the discussion at that > time.... tries to decipher what the whole story was about... > > Well, AFAIR - the operative word being "remember" - Eduardo had a > problem with diffentiating between emulated features and real hw > features and what was being filtered out... here's where the thread > starts: > > http://lkml.kernel.org/r/20130923162856.GC7264@otherpad.lan.raisama.net > > I think we remained at that someone, maybe he, would have to clean all > that discrepancy before we do the emulated gunk. Let me CC him. I didn't work on it because of other tasks, and because the GET_SUPPORTED_CPUID code on QEMU needed some cleanup first. Now it should be easy to implement GET_EMULATED_CPUID support in the same way the "migratable" property was implemented[1]. I will send a patch today. [1] See tree at https://github.com/ehabkost/qemu-hacks/tree/work/qom-cpu-fixes -- Eduardo