]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
ppc: Let kvmppc_reset_htab() return 0 for !CONFIG_KVM
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Tue, 10 Nov 2015 05:24:53 +0000 (10:54 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 11 Nov 2015 02:29:04 +0000 (13:29 +1100)
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 <bharata@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/kvm_ppc.h

index 309cbe0df126d64e4141436f00a0b05d65f47609..5e1333d9954b375c4e34a150f1131c5dca11add6 100644 (file)
@@ -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,