Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KVM: x86/xen: Use hva_t for holding hypercall page address
Use hva_t, a.k.a. unsigned long, for the local variable that holds the hypercall page address. On 32-bit KVM, gcc complains about using a u64 due to the implicit cast from a 64-bit value to a 32-bit pointer. arch/x86/kvm/xen.c: In function ‘kvm_xen_write_hypercall_page’: arch/x86/kvm/xen.c:300:22: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] 300 | page = memdup_user((u8 __user *)blob_addr, PAGE_SIZE); Cc: Joao Martins <[email protected]> Cc: David Woodhouse <[email protected]> Fixes: 23200b7 ("KVM: x86/xen: intercept xen hypercalls if enabled") Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Acked-by: David Woodhouse <[email protected]> Reviewed-by: Joao Martins <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
- Loading branch information