From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751373AbaH1ORP (ORCPT ); Thu, 28 Aug 2014 10:17:15 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:41517 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751314AbaH1ORN (ORCPT ); Thu, 28 Aug 2014 10:17:13 -0400 Date: Thu, 28 Aug 2014 17:17:04 +0300 From: Gleb Natapov To: Andy Lutomirski Cc: Paolo Bonzini , "Theodore Ts'o" , "H. Peter Anvin" , kvm list , "linux-kernel@vger.kernel.org" , Kees Cook , X86 ML , Daniel Borkmann , Srivatsa Vaddagiri , Raghavendra K T , Bandan Das , Andrew Honig , KY Srinivasan , Haiyang Zhang , Konrad Rzeszutek Wilk , Alok Kataria , virtualization@lists.linux-foundation.org Subject: Re: GET_RNG_SEED hypercall ABI? (Re: [PATCH v5 0/5] random,x86,kvm: Rework arch RNG seeds and get some from kvm) Message-ID: <20140828141704.GI18167@minantech.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 26, 2014 at 04:58:34PM -0700, Andy Lutomirski wrote: > 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. > CPUID part allows feature to be disabled for machine compatibility purpose during migration. Of course interface can explicitly state that one successful use of the MSR does not mean that next use will not result in a #GP, but that doesn't sound very elegant and is different from any other MSR out there. -- Gleb.