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

From: Huang, Kai
Date: Mon Aug 19 2024 - 18:24:54 EST




On 19/08/2024 10:07 pm, Binbin Wu wrote:



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?


OK. I guess my brain wasn't very clear, feel free to ignore :-)