qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Introduce kvm logging interface.


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] Introduce kvm logging interface.
Date: Mon, 10 Nov 2008 11:24:33 -0600
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

Glauber Costa wrote:
Introduce functions to stop and start logging of memory regions.
We select region based on its start address.

Signed-off-by: Glauber Costa <address@hidden>
---

+/* find the slot correspondence using userspace_addr as a key */
+static KVMSlot *kvm_lookup_slot_uaddr(KVMState *s, ram_addr_t addr)
+{
+    int i;
+ + uint64_t uaddr = (uint64_t)kvm_uaddr(addr);

warning: cast from pointer to integer of different size

(64-bit host, pointer is unsigned long, uint64_t is unsigned long long).

+        nr = (uint32_t)((uint64_t)kvm_uaddr(addr) - mem->userspace_addr) >> 
TARGET_PAGE_BITS;

warning: cast from pointer to integer of different size

Regards,

Anthony Liguori





reply via email to

[Prev in Thread] Current Thread [Next in Thread]