Skip to content
Commit b7c1c226 authored by Lan Tianyu's avatar Lan Tianyu Committed by Radim Krčmář
Browse files

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

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.

Fixes: a5c214da

 ("KVM/VMX: Change hv flush logic when ept tables are mismatched.")
Signed-off-by: default avatarLan Tianyu <Tianyu.Lan@microsoft.com>
Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
parent 3f14a89d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment