Re: [PATCH v2 2/2] KVM: x86: Use is_kvm_hc_exit_enabled() instead of opencode

From: Binbin Wu
Date: Mon Aug 19 2024 - 06:07:57 EST





On 8/14/2024 7:18 AM, Huang, Kai wrote:


On 13/08/2024 5:12 pm, Binbin Wu wrote:
Use is_kvm_hc_exit_enabled() instead of opencode.

No functional change intended.

It would be helpful to mention currently hypercall_exit_enabled can only have KVM_HC_MAP_GPA_RANGE bit set (so that there will be no functional change).
I think it's not needed, because is_kvm_hc_exit_enabled() takes the input.
It just replaces the opencode with a helper API.

Maybe your comment was for the patch 1?



Signed-off-by: Binbin Wu <binbin.wu@xxxxxxxxxxxxxxx>

Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>

Thanks for your review.