]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
KVM/VMX: Avoid return error when flush tlb successfully in the hv_remote_flush_tlb_wi...
authorLan Tianyu <Tianyu.Lan@microsoft.com>
Fri, 4 Jan 2019 07:20:44 +0000 (15:20 +0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Fri, 11 Jan 2019 17:38:07 +0000 (18:38 +0100)
commitb7c1c226f9403c52bf58b0bceef24501429c7351
tree74031c2b9bde92b36b3ed6922c0226ece43837b8
parent3f14a89d1132dcae3c8ce6721c6ef51f6e6d9b5f
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: a5c214dad198 ("KVM/VMX: Change hv flush logic when ept tables are mismatched.")
Signed-off-by: Lan Tianyu <Tianyu.Lan@microsoft.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx/vmx.c