Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424506AbcKAO1N (ORCPT ); Tue, 1 Nov 2016 10:27:13 -0400 Received: from mx6-phx2.redhat.com ([209.132.183.39]:59988 "EHLO mx6-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424461AbcKAO1K (ORCPT ); Tue, 1 Nov 2016 10:27:10 -0400 Date: Tue, 1 Nov 2016 10:26:06 -0400 (EDT) From: Paolo Bonzini To: Kyle Huey Cc: "Robert O'Callahan" , Thomas Gleixner , Andy Lutomirski , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Radim =?utf-8?B?S3LEjW3DocWZ?= , Jeff Dike , Richard Weinberger , Alexander Viro , Shuah Khan , Dave Hansen , Borislav Petkov , Peter Zijlstra , Boris Ostrovsky , Len Brown , "Rafael J. Wysocki" , Dmitry Safonov , linux-kernel@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net, user-mode-linux-user@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org, kvm@vger.kernel.org Message-ID: <273805880.9973234.1478010366977.JavaMail.zimbra@redhat.com> In-Reply-To: <20161101013749.4003-8-khuey@kylehuey.com> References: <20161101013749.4003-1-khuey@kylehuey.com> <20161101013749.4003-8-khuey@kylehuey.com> Subject: Re: [PATCH v8 7/7] KVM: x86: virtualize cpuid faulting MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.4.164.1, 10.5.101.130] X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF49 (Linux)/8.0.6_GA_5922) Thread-Topic: x86: virtualize cpuid faulting Thread-Index: Xcw3c8BOmSD/8VAAbff/B0tr2E6ixw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 501 Lines: 25 > + vcpu->arch.cpuid_fault = false; This should be conditional on "if (!init_event)". Most MSRs are untouched on an INIT IPI. Otherwise looks good. The patch is independent of the rest, so I would prefer to take it through the KVM tree. Thanks, Paolo > kvm_make_request(KVM_REQ_EVENT, vcpu); > vcpu->arch.apf.msr_val = 0; > vcpu->arch.st.msr_val = 0; > > kvmclock_reset(vcpu); > > kvm_clear_async_pf_completion_queue(vcpu); > kvm_async_pf_hash_reset(vcpu); > -- > 2.10.2 > >