From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zw1RT-0008P6-9l for qemu-devel@nongnu.org; Tue, 10 Nov 2015 00:26:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zw1RP-0007ES-5u for qemu-devel@nongnu.org; Tue, 10 Nov 2015 00:26:03 -0500 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:58592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zw1RO-0007DX-Iv for qemu-devel@nongnu.org; Tue, 10 Nov 2015 00:25:59 -0500 Received: from localhost by e23smtp02.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 10 Nov 2015 15:25:55 +1000 From: Bharata B Rao Date: Tue, 10 Nov 2015 10:54:53 +0530 Message-Id: <1447133094-32676-2-git-send-email-bharata@linux.vnet.ibm.com> In-Reply-To: <1447133094-32676-1-git-send-email-bharata@linux.vnet.ibm.com> References: <1447133094-32676-1-git-send-email-bharata@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v1 1/2] ppc: Let kvmppc_reset_htab() return 0 for !CONFIG_KVM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Bharata B Rao , qemu-ppc@nongnu.org, mdroth@linux.vnet.ibm.com, david@gibson.dropbear.id.au The !CONFIG_KVM implementation of kvmppc_reset_htab() returns -1 by default. Change this to return 0 so that we fall back to user space HTAB allocation for emulated guests. This fixes the make check failures for ppc64 emulated target. Signed-off-by: Bharata B Rao --- target-ppc/kvm_ppc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-ppc/kvm_ppc.h b/target-ppc/kvm_ppc.h index 309cbe0..5e1333d 100644 --- a/target-ppc/kvm_ppc.h +++ b/target-ppc/kvm_ppc.h @@ -180,7 +180,7 @@ static inline int kvmppc_remove_spapr_tce(void *table, int pfd, static inline int kvmppc_reset_htab(int shift_hint) { - return -1; + return 0; } static inline uint64_t kvmppc_rma_size(uint64_t current_size, -- 2.1.0