i386/kvm: add support for Hyper-V TLB flush
authorVitaly Kuznetsov <vkuznets@redhat.com>
Sun, 10 Jun 2018 18:49:27 +0000 (20:49 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Jul 2018 12:45:23 +0000 (14:45 +0200)
commit475120099d446fe106ad970a225327990d747a61
tree1baae080e5cbdeb654bd2ea21b97f1792fe26c4c
parent646f34fa5482e495483de230b4cf0f2ae4fd2781
i386/kvm: add support for Hyper-V TLB flush

Add support for Hyper-V TLB flush which recently got added to KVM.

Just like regular Hyper-V we announce HV_EX_PROCESSOR_MASKS_RECOMMENDED
regardless of how many vCPUs we have. Windows is 'smart' and uses less
expensive non-EX Hypercall whenever possible (when it wants to flush TLB
for all vCPUs or the maximum vCPU index in the vCPU set requires flushing
is less than 64).

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20180610184927.19309-1-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/cpu.h
target/i386/hyperv-proto.h
target/i386/kvm.c