linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* GET_RNG_SEED hypercall ABI? (Re: [PATCH v5 0/5] random,x86,kvm: Rework arch RNG seeds and get some from kvm)
@ 2014-08-26 23:58 Andy Lutomirski
  2014-08-27  7:00 ` Paolo Bonzini
  2014-08-28 14:17 ` Gleb Natapov
  0 siblings, 2 replies; 8+ messages in thread
From: Andy Lutomirski @ 2014-08-26 23:58 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: Theodore Ts'o, H. Peter Anvin, kvm list,
	linux-kernel@vger.kernel.org, Kees Cook, X86 ML, Daniel Borkmann,
	Srivatsa Vaddagiri, Raghavendra K T, Gleb Natapov, Bandan Das,
	Andrew Honig, KY Srinivasan, Haiyang Zhang, Konrad Rzeszutek Wilk,
	Alok Kataria, virtualization

hpa pointed out that the ABI that I chose (an MSR from the KVM range
and a KVM cpuid bit) is unnecessarily KVM-specific.  It would be nice
to allocate an MSR that everyone involved can agree on and, rather
than relying on a cpuid bit, just have the guest probe for the MSR.

This leads to a few questions:

1. How do we allocate an MSR?  (For background, this would be an MSR
that either returns 64 bits of best-effort cryptographically secure
random data or fails with #GP.)

2. For KVM, what's the right way to allow QEMU to turn the feature on
and off?  Is this even necessary?  KVM currently doesn't seem to allow
QEMU to turn any of its MSRs off; it just allows QEMU to ask it to
stop advertising support.

3. QEMU people, can you please fix your RDMSR emulation to send #GP on
failure?  I can work around it for this MSR in the Linux code, but for
Pete's sake... :(

Thanks,
Andy

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-08-29  6:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-26 23:58 GET_RNG_SEED hypercall ABI? (Re: [PATCH v5 0/5] random,x86,kvm: Rework arch RNG seeds and get some from kvm) Andy Lutomirski
2014-08-27  7:00 ` Paolo Bonzini
2014-08-27  7:07   ` H. Peter Anvin
2014-08-28 14:17 ` Gleb Natapov
2014-08-28 16:22   ` Andy Lutomirski
2014-08-28 19:46     ` Paolo Bonzini
2014-08-29  0:13       ` Andy Lutomirski
2014-08-29  6:36         ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).