[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <91baab6a-3007-655a-5c59-6425473d2e33@redhat.com>
Date: Tue, 22 Sep 2020 15:43:35 +0200
From: Paolo Bonzini <pbonzini@...hat.com>
To: Krish Sadhukhan <krish.sadhukhan@...cle.com>,
Wanpeng Li <kernellwp@...il.com>, linux-kernel@...r.kernel.org,
kvm@...r.kernel.org
Cc: Sean Christopherson <sean.j.christopherson@...el.com>,
Vitaly Kuznetsov <vkuznets@...hat.com>,
Wanpeng Li <wanpengli@...cent.com>,
Jim Mattson <jmattson@...gle.com>,
Joerg Roedel <joro@...tes.org>
Subject: Re: [PATCH] KVM: SVM: Analyze is_guest_mode() in svm_vcpu_run()
On 14/09/20 22:43, Krish Sadhukhan wrote:
>>
>
> Not related to your changes, but should we get rid of the variable
> 'exit_fastpath' and just do,
>
> return svm_exit_handler_fastpath(vcpu);
>
> It seems the variable isn't used anywhere else and svm_vcpu_run()
> doesn't return from anywhere else either.
Yes (also because vmx will do the same once we can push
EXIT_FASTPATH_REENTER_GUEST handling up to vcpu_enter_guest)...
> Also, svm_exit_handlers_fastpath() doesn't have any other caller.
> Should we get rid of it as well ?
... and no, because svm_vcpu_run is a very large function and therefore
it's better to keep its flow streamlined.
Paolo
Powered by blists - more mailing lists