From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: GET_RNG_SEED hypercall ABI? (Re: [PATCH v5 0/5] random,x86,kvm: Rework arch RNG seeds and get some from kvm) Date: Thu, 28 Aug 2014 21:46:42 +0200 Message-ID: <53FF8722.6080302@redhat.com> References: <20140828141704.GI18167@minantech.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Andy Lutomirski , Gleb Natapov Cc: X86 ML , Theodore Ts'o , Kees Cook , kvm list , Konrad Rzeszutek Wilk , Andrew Honig , Haiyang Zhang , Raghavendra K T , "linux-kernel@vger.kernel.org" , Linux Virtualization , Daniel Borkmann , Bandan Das , Srivatsa Vaddagiri , Alok Kataria , "H. Peter Anvin" List-Id: virtualization@lists.linuxfoundation.org Il 28/08/2014 18:22, Andy Lutomirski ha scritto: > Is there a non-cpuid interface between QEMU and KVM for this? No. > AFAICT, even turning off cpuid bits for things like async pf doesn't > actually disable the MSRs (which is arguably an attack surface issue). No, it doesn't. You cannot disable instructions even if you hide CPUID bits, so KVM just extends this to MSRs (both native and paravirtual). It sometimes helps too, for example with a particular guest OS that does not necessary check CPUID for bits that are always present on Apple hardware... Paolo