Re: [PATCH] KVM/VMX: Avoid return error when flush tlb successfully in the hv_remote_flush_tlb_with_range()

From: Radim KrÄmÃÅ
Date: Fri Jan 11 2019 - 08:51:50 EST


2019-01-04 15:20+0800, lantianyu1986@xxxxxxxxx:
> From: Lan Tianyu <Tianyu.Lan@xxxxxxxxxxxxx>
>
> The "ret" is initialized to be ENOTSUPP. The return value of
> __hv_remote_flush_tlb_with_range() will be Or with "ret" when ept
> table potiners are mismatched. This will cause return ENOTSUPP even if
> flush tlb successfully. This patch is to fix the issue and set
> "ret" to 0.
>
> Fix: a5c214da("KVM/VMX: Change hv flush logic when ept tables are mismatched.")
> Signed-off-by: Lan Tianyu <Tianyu.Lan@xxxxxxxxxxxxx>
> ---

Applied, thanks.