Signed-off-by: Glauber Costa <[EMAIL PROTECTED]> --- libkvm/libkvm.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/libkvm/libkvm.c b/libkvm/libkvm.c index a5e20bb..222c858 100644 --- a/libkvm/libkvm.c +++ b/libkvm/libkvm.c @@ -52,6 +52,8 @@ #include "kvm-s390.h" #endif +//#define DEBUG_MEMREG + int kvm_abi = EXPECTED_KVM_API_VERSION; int kvm_page_size; @@ -458,6 +460,11 @@ int kvm_register_phys_mem(kvm_context_t kvm, int r; memory.slot = get_free_slot(kvm); +#ifdef DEBUG_MEMREG + fprintf(stderr, "%s, memory: gpa: %llx, size: %llx, uaddr: %llx, slot: %x, flags: %lx\n", + __func__, memory.guest_phys_addr, memory.memory_size, + memory.userspace_addr, memory.slot, memory.flags); +#endif r = ioctl(kvm->vm_fd, KVM_SET_USER_MEMORY_REGION, &memory); if (r == -1) { fprintf(stderr, "create_userspace_phys_mem: %s\n", strerror(errno)); @@ -996,6 +1003,9 @@ int kvm_unregister_coalesced_mmio(kvm_context_t kvm, uint64_t addr, uint32_t siz perror("kvm_unregister_coalesced_mmio_zone"); return -errno; } +#ifdef DEBUG_MEMREG + fprintf(stderr, "Unregistered coalesced mmio region for %llx (%lx)\n", addr, size); +#endif return 0; } #endif -- 1.5.5.1 -- 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