From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNUM7-0006UQ-HR for qemu-devel@nongnu.org; Sun, 24 Jan 2016 18:46:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNUM2-0000sI-Gv for qemu-devel@nongnu.org; Sun, 24 Jan 2016 18:46:03 -0500 Date: Mon, 25 Jan 2016 10:25:59 +1100 From: David Gibson Message-ID: <20160124232559.GU27454@voom.redhat.com> References: <1453581610-23179-1-git-send-email-hpoussin@reactos.org> <1453581610-23179-9-git-send-email-hpoussin@reactos.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/asd063ZXkk5ILJU" Content-Disposition: inline In-Reply-To: <1453581610-23179-9-git-send-email-hpoussin@reactos.org> Subject: Re: [Qemu-devel] [PATCH 08/13] cuda: port FILE_SERVER_FLAG command to new framework List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Herv=E9?= Poussineau Cc: qemu-ppc@nongnu.org, Alyssa Milburn , Mark Cave-Ayland , qemu-devel@nongnu.org, Alexander Graf --/asd063ZXkk5ILJU Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 23, 2016 at 09:40:05PM +0100, Herv=E9 Poussineau wrote: > This command tells if computer should automatically wake-up after a power= loss. >=20 > Signed-off-by: Herv=E9 Poussineau Reviewed-by: David Gibson > --- > hw/misc/macio/cuda.c | 17 ++++++++++++++++- > 1 file changed, 16 insertions(+), 1 deletion(-) >=20 > diff --git a/hw/misc/macio/cuda.c b/hw/misc/macio/cuda.c > index 70a5d0c..294e8fb 100644 > --- a/hw/misc/macio/cuda.c > +++ b/hw/misc/macio/cuda.c > @@ -625,12 +625,28 @@ static bool cuda_cmd_reset_system(CUDAState *s, > return true; > } > =20 > +static bool cuda_cmd_set_file_server_flag(CUDAState *s, > + const uint8_t *in_data, int in= _len, > + uint8_t *out_data, int *out_le= n) > +{ > + if (in_len !=3D 1) { > + return false; > + } > + > + qemu_log_mask(LOG_UNIMP, > + "CUDA: unimplemented command FILE_SERVER_FLAG %d\n", > + in_data[0]); > + return true; > +} > + > static const CudaCommand handlers[] =3D { > { CUDA_AUTOPOLL, "AUTOPOLL", cuda_cmd_autopoll }, > { CUDA_SET_AUTO_RATE, "SET_AUTO_RATE", cuda_cmd_set_autorate }, > { CUDA_SET_DEVICE_LIST, "SET_DEVICE_LIST", cuda_cmd_set_device_list = }, > { CUDA_POWERDOWN, "POWERDOWN", cuda_cmd_powerdown }, > { CUDA_RESET_SYSTEM, "RESET_SYSTEM", cuda_cmd_reset_system }, > + { CUDA_FILE_SERVER_FLAG, "FILE_SERVER_FLAG", > + cuda_cmd_set_file_server_flag }, > }; > =20 > static void cuda_receive_packet(CUDAState *s, > @@ -678,7 +694,6 @@ static void cuda_receive_packet(CUDAState *s, > obuf[6] =3D ti; > cuda_send_packet_to_host(s, obuf, 7); > return; > - case CUDA_FILE_SERVER_FLAG: > case CUDA_SET_POWER_MESSAGES: > cuda_send_packet_to_host(s, obuf, 3); > return; --=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 --/asd063ZXkk5ILJU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJWpV2HAAoJEGw4ysog2bOSKZ8QALYhyXpPiSa6dBs+wNUSizWB gqXOfLvOLRnNPuRUNzOZCocamu+bxoZQYJqQkqBF5mM6WUuXlcd/4vEuuTXwb6/b KfbDmD9LjO5X6gwV5ADAFFOt7y4a4rwRn2zmJ66QLdTkwyAo0Z1vU0urURGYDJEn Zjty5OAvQ0A9sHY3RWKPF8zSwT/EnOMN/1otHn50vZgXtKzL5NEJY9ibPNvEyMYj dKlASvd+c9uh0vRuqmdIwq9QECXefrA1tv+Pt0FoPsiO3g4Kph+3sNWUjAsRPNJL iRyuo9nuMl0qxCDrLtopO8e1OdzW2GXUdYlmzvRCe8TWvB3W+CS6au8zI3RSO8MM 07wI5EGqUb+vouJQm7FE3D+eA6bAbCKePKk/3YiZonEZNzZiWgorsXiHXiw3pmWO S8nYPLC8d6xkEj7GZo9FMsWzrsoBoiRDF2mpUA5u6s9sNUnSg9lkZouvu/41e6dR 0YIPsujYul8mCpgRNKgxqRb7HZs+56vTk9S5ZkIU9Z2UVSSN03Kh8aRKtVJ8ATXY LMw3Y3NVnAD6rMj6V2lA6AHOvRdOamsf8CUlko2wDMhg0X8MEcGY5ui/uxZZ8jEg rDcZCUycQM3NsfCF7VjE+e4uWLpm98zibGzld14XU8yFsaSvJ0j45aKCf9mOgsqG X7toAIvZ55ZMGe6sk0Bn =kqIK -----END PGP SIGNATURE----- --/asd063ZXkk5ILJU--