]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: remove duplicated segment cache clear
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 21 Jan 2020 15:15:18 +0000 (10:15 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Jan 2020 18:59:57 +0000 (19:59 +0100)
commit226299930594d62ee1c70067fb08db576ac934b4
treea2032e2848368502a551af8ebbc98a2cb7a0c5de
parent84f3dd41beaf52ce14722a88f60db0b4dec69516
KVM: VMX: remove duplicated segment cache clear

vmx_set_segment() clears segment cache unconditionally, so we should not
clear it again by calling vmx_segment_cache_clear().

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c