From: David Hildenbrand Subject: Re: [PATCH 1/3 v2] KVM: vmx: Enable VMFUNCs Date: Mon, 10 Jul 2017 10:54:00 +0200 Message-ID: <71bb73d6-c64c-3fee-ea7d-4fa0f2d4682e@redhat.com> References: <20170706230323.29952-1-bsd@redhat.com> <20170706230323.29952-2-bsd@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: pbonzini@redhat.com, linux-kernel@vger.kernel.org To: Bandan Das , kvm@vger.kernel.org Return-path: In-Reply-To: <20170706230323.29952-2-bsd@redhat.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org > /* > * The exit handlers return 1 if the exit was handled fully and guest execution > * may resume. Otherwise they set the kvm_run parameter to indicate what needs > @@ -7790,6 +7806,7 @@ static int (*const kvm_vmx_exit_handlers[])(struct kvm_vcpu *vcpu) = { > [EXIT_REASON_XSAVES] = handle_xsaves, > [EXIT_REASON_XRSTORS] = handle_xrstors, > [EXIT_REASON_PML_FULL] = handle_pml_full, > + [EXIT_REASON_VMFUNC] = handle_vmfunc, > [EXIT_REASON_PREEMPTION_TIMER] = handle_preemption_timer, > }; > > @@ -8111,6 +8128,9 @@ static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu) > case EXIT_REASON_PML_FULL: > /* We emulate PML support to L1. */ > return false; > + case EXIT_REASON_VMFUNC: > + /* VM functions are emulated through L2->L0 vmexits. */ > + return false; This would fit better into the second patch. > default: > return true; > } > Looks good to me. -- Thanks, David