The argument to kernel space should be u64 rather than unsigned long.

Signed-off-by: Sheng Yang <[email protected]>
---
 qemu-kvm-x86.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c
index 492dbc5..5fa89e8 100644
--- a/qemu-kvm-x86.c
+++ b/qemu-kvm-x86.c
@@ -73,7 +73,7 @@ static int kvm_init_tss(kvm_context_t kvm)
        return 0;
 }
 
-static int kvm_set_identity_map_addr(kvm_context_t kvm, unsigned long addr)
+static int kvm_set_identity_map_addr(kvm_context_t kvm, uint64_t addr)
 {
 #ifdef KVM_CAP_SET_IDENTITY_MAP_ADDR
        int r;
-- 
1.5.4.5

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to