From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwhM1-0004RS-Ku for qemu-devel@nongnu.org; Sun, 24 May 2015 21:38:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwhM0-0001bH-Fy for qemu-devel@nongnu.org; Sun, 24 May 2015 21:38:57 -0400 Received: from ozlabs.org ([2401:3900:2:1::2]:43774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwhM0-0001aT-6B for qemu-devel@nongnu.org; Sun, 24 May 2015 21:38:56 -0400 Date: Mon, 25 May 2015 11:03:31 +1000 From: David Gibson Message-ID: <20150525010331.GD6255@voom.redhat.com> References: <1432184528-31252-1-git-send-email-bharata@linux.vnet.ibm.com> <1432184528-31252-2-git-send-email-bharata@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="osDK9TLjxFScVI/L" Content-Disposition: inline In-Reply-To: <1432184528-31252-2-git-send-email-bharata@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH v3 1/3] cpus: Add Error argument to cpu_exec_init() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bharata B Rao Cc: zhugh.fnst@cn.fujitsu.com, ehabkost@redhat.com, agraf@suse.de, qemu-devel@nongnu.org, imammedo@redhat.com, afaerber@suse.de --osDK9TLjxFScVI/L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 21, 2015 at 10:32:06AM +0530, Bharata B Rao wrote: > Add an Error argument to cpu_exec_init() to let users collect the > error. This is in preparation to change the CPU enumeration logic > in cpu_exec_init(). With the new enumeration logic, cpu_exec_init() > can fail if cpu_index values corresponding to max_cpus have already > been handed out. >=20 > Since all current callers of cpu_exec_init() are from instance_init, > use error_abort Error arugment to abort in case of an error. >=20 > Signed-off-by: Bharata B Rao > Reviewed-by: Eduardo Habkost Reviewed-by: David Gibson --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --osDK9TLjxFScVI/L Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVYnTjAAoJEGw4ysog2bOS5RoQANVqbd9nAjIH7hwoUV1T08YI 1nnW8keUWur+u3PZrixamm+nxI38A+C5VrvCMJktiY1RYqzxK5DHU+k3IPAPy87X fl8zoQLyqOqkNfZf06cVZ+HnaG/otU5fJN9z9b28E4zZY5vp21Y3Qab4Fe/+Zc92 8gj0x6YfxVd+mBS16srzgsdbW7UK1H9Ui7I1j+D6GH2Vze8BI8d/NrNX/MWzvZyo ySRtxx8njt7y3z//IfJoh54RP1tXrP6u/V7xc5ieQKcXi6ei+cuefm2DT/OYw/eH 2a5IEhOZb1rndu2Ut1kt0RflCWyEqDVek27aknxglfXwQQlNkvRG9LQ/6CA3DH5d C9iDbFbtnVl3vPOyyI4gjgeGHtr5Fxb06ukRqX9pY2XYG53ALyVQ5CRUTjEDHaGw g38iEs5cHosRWSQ+K6oh5nJAqN9oCAlZZtXcYjcyCEe284gzJKGpsWHgNMQXo4dE /sOq21rEAJJ7lmDkOZm3JaICaainU/6RR4mC5GhBuQeO8Dt4RLZSb/Qb1z9LYeVW VGVjXqtda+CZ88/vvu97PXINc3DUeEO2T98AroTEXu49uWS9h4Qwqtq7/aRdXTfE WKXHkMAW8tU68iyB//3stEd0uXjOkHWXfvHG+/VxzJCcrpsgw9gUr6XO1e+Ci7vN Gf8lGgOBGnATIhvUBnf/ =JqQR -----END PGP SIGNATURE----- --osDK9TLjxFScVI/L--