KVM: vmx: fix build warnings in hv_enable_direct_tlbflush() on i386
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 25 Sep 2019 13:30:35 +0000 (15:30 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Sep 2019 13:31:23 +0000 (15:31 +0200)
commitcab01850277a827c57270bba48be1d8fe312643d
tree3390f74c7c4638e377ab955a103db42cba1a1550
parentf209a26dd5a5038c53097b5c38e313b8cd042adb
KVM: vmx: fix build warnings in hv_enable_direct_tlbflush() on i386

The following was reported on i386:

  arch/x86/kvm/vmx/vmx.c: In function 'hv_enable_direct_tlbflush':
  arch/x86/kvm/vmx/vmx.c:503:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

pr_debugs() in this function are  more or less useless, let's just
remove them. evmcs->hv_vm_id can use 'unsigned long' instead of 'u64'.

Also, simplify the code a little bit.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c