From mboxrd@z Thu Jan 1 00:00:00 1970 From: Radim =?utf-8?B?S3LEjW3DocWZ?= Subject: Re: [PATCH 1/3] KVM: Don't enable MWAIT in guest by default Date: Wed, 29 Nov 2017 17:58:08 +0100 Message-ID: <20171129165808.GB10661@flask> References: <1511615373-32615-1-git-send-email-jschoenh@amazon.de> <1511615373-32615-2-git-send-email-jschoenh@amazon.de> <18389aed-14f9-5103-45c5-c89d14ab8c4d@amazon.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Jim Mattson , Paolo Bonzini , Joerg Roedel , "Michael S. Tsirkin" , KarimAllah Ahmed , kvm list To: Jan =?utf-8?Q?H=2E_Sch=C3=B6nherr?= Return-path: Received: from mx1.redhat.com ([209.132.183.28]:52550 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932365AbdK2Q6P (ORCPT ); Wed, 29 Nov 2017 11:58:15 -0500 Content-Disposition: inline In-Reply-To: <18389aed-14f9-5103-45c5-c89d14ab8c4d@amazon.de> Sender: kvm-owner@vger.kernel.org List-ID: 2017-11-29 00:58+0100, Jan H. Schönherr: > On 11/27/2017 07:13 PM, Jim Mattson wrote: > > I don't understand the concern regarding CPUID5_ECX_INTERRUPT_BREAK. > > Even if the CPU has this feature, can't the guest bypass it by > > disabling interrupts and invoking MWAIT with bit 0 of ECX clear? > > Note, that there was this series at some point: > > [PATCH 0/4] KVM: x86: kvm_mwait_in_guest() cleanup and fixes > https://www.spinics.net/lists/kvm/msg149238.html > > That throws away most of the function. > No sure, what happened to that. Radim? I forgot about that while waiting whether its discussion would continue. Going to send v2, thanks.