From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: Standardizing an MSR or other hypercall to get an RNG seed? Date: Thu, 18 Sep 2014 19:17:44 +0200 Message-ID: <541B13B8.1020006@redhat.com> References: <2aa00301e9af4826b5781e01709f81e7@BY2PR0301MB0711.namprd03.prod.outlook.com> <541AEF7D.2010007@zytor.com> <5b9c7dcde3824e49a25f3ee00844b868@BY2PR0301MB0711.namprd03.prod.outlook.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: Mathew John , Theodore Ts'o , John Starks , kvm list , Gleb Natapov , Niels Ferguson , Andy Lutomirski , David Hepkin , "H. Peter Anvin" , Jake Oshins , Linux Virtualization To: "Nakajima, Jun" , KY Srinivasan Return-path: Received: from mail-wi0-f179.google.com ([209.85.212.179]:48544 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932081AbaIRRRu (ORCPT ); Thu, 18 Sep 2014 13:17:50 -0400 Received: by mail-wi0-f179.google.com with SMTP id cc10so1464855wib.0 for ; Thu, 18 Sep 2014 10:17:49 -0700 (PDT) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Il 18/09/2014 19:13, Nakajima, Jun ha scritto: > In terms of the address for the MSR, I suggest that you choose one > from the range between 40000000H - 400000FFH. The SDM (35.1 > ARCHITECTURAL MSRS) says "All existing and > future processors will not implement any features using any MSR in > this range." Hyper-V already defines many synthetic MSRs in this > range, and I think it would be reasonable for you to pick one for this > to avoid a conflict? KVM is not using any MSR in that range. However, I think it would be better to have the MSR (and perhaps CPUID) outside the hypervisor-reserved ranges, so that it becomes architecturally defined. In some sense it is similar to the HYPERVISOR CPUID feature. Paolo