From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz23O-00055x-1f for qemu-devel@nongnu.org; Tue, 16 Jul 2013 06:00:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uz23M-0002EX-Hp for qemu-devel@nongnu.org; Tue, 16 Jul 2013 06:00:17 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:46024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz23M-000281-D5 for qemu-devel@nongnu.org; Tue, 16 Jul 2013 06:00:16 -0400 Received: by mail-ie0-f169.google.com with SMTP id 10so1191906ied.0 for ; Tue, 16 Jul 2013 03:00:14 -0700 (PDT) From: Alexey Kardashevskiy Date: Tue, 16 Jul 2013 20:00:06 +1000 Message-Id: <1373968806-14032-1-git-send-email-aik@ozlabs.ru> In-Reply-To: <1373901083-18730-6-git-send-email-aliguori@us.ibm.com> References: <1373901083-18730-6-git-send-email-aliguori@us.ibm.com> Subject: [Qemu-devel] [PATCH] ppc kvm: fix to compile List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Anthony Liguori , qemu-ppc@nongnu.org, Alexander Graf Signed-off-by: Alexey Kardashevskiy --- target-ppc/kvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 61f2737..606bdb9 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c @@ -1628,7 +1628,7 @@ void *kvmppc_create_spapr_tce(uint32_t liobn, uint32_t window_size, int *pfd) return NULL; } - len = (window_size / SPAPR_TCE_PAGE_SIZE) * sizeof(sPAPRTCE); + len = (window_size / SPAPR_TCE_PAGE_SIZE) * sizeof(uint64_t); /* FIXME: round this up to page size */ table = mmap(NULL, len, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); @@ -1651,7 +1651,7 @@ int kvmppc_remove_spapr_tce(void *table, int fd, uint32_t window_size) return -1; } - len = (window_size / SPAPR_TCE_PAGE_SIZE)*sizeof(sPAPRTCE); + len = (window_size / SPAPR_TCE_PAGE_SIZE)*sizeof(uint64_t); if ((munmap(table, len) < 0) || (close(fd) < 0)) { fprintf(stderr, "KVM: Unexpected error removing TCE table: %s", -- 1.8.3.2