From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zw1RR-0008Oz-VX for qemu-devel@nongnu.org; Tue, 10 Nov 2015 00:26:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zw1RO-0007Dm-0O for qemu-devel@nongnu.org; Tue, 10 Nov 2015 00:26:01 -0500 Received: from e23smtp07.au.ibm.com ([202.81.31.140]:33160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zw1RN-0007DN-CC for qemu-devel@nongnu.org; Tue, 10 Nov 2015 00:25:57 -0500 Received: from /spool/local by e23smtp07.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 10 Nov 2015 15:25:52 +1000 From: Bharata B Rao Date: Tue, 10 Nov 2015 10:54:52 +0530 Message-Id: <1447133094-32676-1-git-send-email-bharata@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v1 0/2] Handle KVM_PPC_ALLOCATE_HTAB ioctl failure 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 KVM_PPC_ALLOCATE_HTAB ioctl can now return errors and handle that correctly in QEMU. Also fix !CONFIG_KVM implementation of kvmppc_reset_htab() to return 0 instead of -1. Changes in v1 ------------ - Add a patch to fix !CONFIG_KVM implementation of kvmppc_reset_htab() so that make check passes for ppc64 target on x86 host. - Explicitly check for shift < 0 error condition in spapr_alloc/reset_htab. v0: https://lists.gnu.org/archive/html/qemu-ppc/2015-11/msg00012.html Bharata B Rao (2): ppc: Let kvmppc_reset_htab() return 0 for !CONFIG_KVM spapr: Handle failure of KVM_PPC_ALLOCATE_HTAB ioctl hw/ppc/spapr.c | 20 ++++++++++++++++---- target-ppc/kvm_ppc.h | 2 +- 2 files changed, 17 insertions(+), 5 deletions(-) -- 2.1.0