From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: [PATCH 1/2] kvm-unit-tests: Add a func to run instruction in emulator Date: Thu, 20 Jun 2013 12:47:44 +0200 Message-ID: <51C2DDD0.6050903@web.de> References: <1371725122-6111-1-git-send-email-yzt356@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2DHQTAJFVCOCUVWDAJLGC" Cc: kvm@vger.kernel.org, gleb@redhat.com, pbonzini@redhat.com To: Arthur Chunqi Li Return-path: Received: from mout.web.de ([212.227.15.4]:54667 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754713Ab3FTKsE (ORCPT ); Thu, 20 Jun 2013 06:48:04 -0400 In-Reply-To: <1371725122-6111-1-git-send-email-yzt356@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2DHQTAJFVCOCUVWDAJLGC Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable On 2013-06-20 12:45, Arthur Chunqi Li wrote: > Add a function trap_emulator to run an instruction in emulator. > Set inregs first (%rax is invalid because it is used as return > address), put instruction codec in alt_insn and call func with > alt_insn_length. Get results in outregs. Small hint: You should version your patches to help differentiating the postings (e.g. [PATCH v3 ...]) Jan ------enig2DHQTAJFVCOCUVWDAJLGC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlHC3dMACgkQitSsb3rl5xScHgCfebHyfiYyEuiWOufIVJv1dBAM lT4An0+dJdx0l+cn96vYNmaNmaGtym5F =NXmY -----END PGP SIGNATURE----- ------enig2DHQTAJFVCOCUVWDAJLGC--