From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz4Qz-0003iR-8v for qemu-devel@nongnu.org; Tue, 16 Jul 2013 08:32:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uz4Qv-00063i-Bn for qemu-devel@nongnu.org; Tue, 16 Jul 2013 08:32:49 -0400 Received: from e8.ny.us.ibm.com ([32.97.182.138]:48494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz4Qv-00063Y-4p for qemu-devel@nongnu.org; Tue, 16 Jul 2013 08:32:45 -0400 Received: from /spool/local by e8.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 16 Jul 2013 13:32:44 +0100 From: Anthony Liguori In-Reply-To: <1373968806-14032-1-git-send-email-aik@ozlabs.ru> References: <1373901083-18730-6-git-send-email-aliguori@us.ibm.com> <1373968806-14032-1-git-send-email-aik@ozlabs.ru> Date: Tue, 16 Jul 2013 07:32:32 -0500 Message-ID: <8761waelcv.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH] ppc kvm: fix to compile List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy , qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Alexander Graf Alexey Kardashevskiy writes: > 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", Thanks, I'm running on x86 so this code didn't get built for me. Regards, Anthony Liguori > -- > 1.8.3.2