From: David Hildenbrand Subject: Re: [PATCH] KVM: nVMX: do not leak PML full vmexit to L1 Date: Mon, 3 Apr 2017 13:55:35 +0200 Message-ID: <7257d826-ba04-91b5-7582-4aceeeb31620@redhat.com> References: <20170331081926.28463-1-lprosek@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: kai.huang@linux.intel.com, wanpeng.li@hotmail.com To: Paolo Bonzini , Ladi Prosek , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:35902 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751646AbdDCL4C (ORCPT ); Mon, 3 Apr 2017 07:56:02 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 03.04.2017 13:43, Paolo Bonzini wrote: > > > On 03/04/2017 13:27, David Hildenbrand wrote: >>> The PML feature is not exposed to guests so we should not be forwarding >>> the vmexit either. >> >> I wonder if a whitelist of vmexits would make more sense, compared to >> defaulting to passing them through. But I don't know the history of this > > I checked the other day and it's really 50-50 between "return true" and > "return false" vmexits. Adding a WARNing would probably make even more > sense. :) > Well, a whitelist will make sure that L1 really only sees what you want it to see. As an alternative, specify all of them explicitly (white+black list - should that currently already be done? haven't checked it), default to "false" and print a WARNing (unhandled exit code). But don't expose it to L1. (just what I have in mind). > Thanks, > > Paolo > -- Thanks, David