RE: [PATCH] KVM: vmx: fix a build warning in hv_enable_direct_tlbflush() on i386

2019-09-25 Thread Vitaly Kuznetsov
Tianyu Lan writes: > There is another warning in the report. > > arch/x86/kvm/vmx/vmx.c: In function 'hv_enable_direct_tlbflush': > arch/x86/kvm/vmx/vmx.c:507:20: warning: cast from pointer to integer of > different size [-Wpointer-to-int-cast] > evmcs->hv_vm_id = (u64)vcpu->kvm; >

RE: [PATCH] KVM: vmx: fix a build warning in hv_enable_direct_tlbflush() on i386

2019-09-25 Thread Tianyu Lan
There is another warning in the report. arch/x86/kvm/vmx/vmx.c: In function 'hv_enable_direct_tlbflush': arch/x86/kvm/vmx/vmx.c:507:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] evmcs->hv_vm_id = (u64)vcpu->kvm; ^ The following change