From: Paolo Bonzini Subject: Re: [PATCH] kvm: nVMX: Don't allow L2 to access the hardware CR8 Date: Wed, 13 Sep 2017 23:24:07 +0200 Message-ID: References: <20170912200254.111560-1-jmattson@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: kvm list , P J P To: Jim Mattson , David Hildenbrand Return-path: Received: from mail-wr0-f194.google.com ([209.85.128.194]:33365 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751117AbdIMVYO (ORCPT ); Wed, 13 Sep 2017 17:24:14 -0400 Received: by mail-wr0-f194.google.com with SMTP id b9so695800wra.0 for ; Wed, 13 Sep 2017 14:24:13 -0700 (PDT) In-Reply-To: Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: On 13/09/2017 22:39, Jim Mattson wrote: > I take it back. Your proposed V-x configuration isn't supported by kvm > at all. CPU_BASED_CR8_LOAD_EXITING and CPU_BASED_CR8_STORE_EXITING are > in the minimum required primary processor-based VM-execution controls > enforced by setup_vmcs_config(). So...someone else has already made > sure that setting these bits to 1 is supported. :-) Right, that's because VMs with userspace LAPIC cannot use TPR shadowing and must use CR8-load/store exiting instead. (OTOH even with kernel LAPIC a hypothetical configuration _without_ TPR shadowing could still fall back to CR8-load/store exits). Thanks, Paolo