From: Paolo Bonzini Subject: Re: [PATCH] KVM: x86: svm: report MSR_IA32_MCG_EXT_CTL as unsupported Date: Fri, 21 Dec 2018 12:18:10 +0100 Message-ID: <92c7795c-8d0c-bfb6-e272-27e8441783dd@redhat.com> References: <20181219110613.24459-1-vkuznets@redhat.com> <20181220200630.GC25497@flask> <8736qrw5vn.fsf@vitty.brq.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Lendacky , Joerg Roedel , x86@kernel.org To: Vitaly Kuznetsov , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Return-path: In-Reply-To: <8736qrw5vn.fsf@vitty.brq.redhat.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 21/12/18 11:06, Vitaly Kuznetsov wrote: >> Btw, I would prefer this without the >> >> default: break; >> >> as I don't think we'll ever add something there. > > "640K ought to be enough for anybody" :-) > > But in case you commit it as > > return index != MSR_IA32_MCG_EXT_CTL; > > I won't object. Thanks, Radim committed it as it, but I think he did want the switch statement (hey, vmx_has_emulated_msr has *two* cases!). It's just the "default: break;" that is unnecessary or could be "default: return true;". Paolo