All of lore.kernel.org
 help / color / mirror / Atom feed
From: Torbjorn Granlund <tg@gmplib.org>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] 3 new x86 instructions
Date: Sat, 12 Jan 2013 16:09:51 +0100	[thread overview]
Message-ID: <86hammmo8w.fsf@shell.gmplib.org> (raw)
In-Reply-To: <CAAu8pHtnUF7pjY1sdsbv=4_YvGoqO5oH6RfH2PKM7Ms6bgrK_w@mail.gmail.com> (Blue Swirl's message of "Sat\, 12 Jan 2013 11\:40\:02 +0000")

Blue Swirl <blauwirbel@gmail.com> writes:

  MULX implies a bunch of other instructions due to CPUID flag grouping.
  ADCX and ADOX can be implemented separately. None of these and the
  other instructions in the MULX group look very complex.
  
I had not realised that qemu disabled instructions when emulating a CPU
not supposed to support them.

  The other extensions like 256 bit float and extending existing SSE
  instructions to use them would need much more work. FMA looks simple
  except for the YMM variants. Random number instructions increase
  demand of cryptographically secure random number supply from the host.
  
I strongly doubt that cryptographically secure random numbers can in
general be supplied by qemu.  I would strongly suggest that these
instructions are not enabled by default, not to cause unintensional
abuse of them.  Some scary flag could enable them, perhaps
"--enable-supposedly-cryptographically-secure-random-number-instructions-in-an-unsafe-manner".
:-)

Of course, if the host claims to have such random instructions,
executing these and passing on the result makes some sense.

I don't think cryptographers trust these instructions anyway.  They
might very well be generated with a PRNG, and nobody could tell.

http://dilbert.com/strips/comic/2001-10-25/

There is no public silicon yet.  Haswell release is supposedly going to
happen on June 2.  Broadwell (with ADCX and ADOX) will not happen until
perhaps 2015.

-- 
Torbjörn

  reply	other threads:[~2013-01-12 15:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-10 13:46 [Qemu-devel] 3 new x86 instructions Torbjorn Granlund
2013-01-12 11:40 ` Blue Swirl
2013-01-12 15:09   ` Torbjorn Granlund [this message]
2013-01-12 19:02   ` Richard Henderson
2013-01-14 18:14     ` Torbjorn Granlund
2013-01-14 18:46       ` Richard Henderson
2013-01-15 17:14         ` Torbjorn Granlund
2013-01-15 17:17           ` Richard Henderson
2013-01-16 20:38             ` Torbjorn Granlund

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86hammmo8w.fsf@shell.gmplib.org \
    --to=tg@gmplib.org \
    --cc=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.