Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D91F7C10F13 for ; Thu, 11 Apr 2019 19:18:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A5C7C2173C for ; Thu, 11 Apr 2019 19:18:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726713AbfDKTSM (ORCPT ); Thu, 11 Apr 2019 15:18:12 -0400 Received: from mga07.intel.com ([134.134.136.100]:15347 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726656AbfDKTSL (ORCPT ); Thu, 11 Apr 2019 15:18:11 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Apr 2019 12:18:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,338,1549958400"; d="scan'208";a="222699505" Received: from sjchrist-coffee.jf.intel.com ([10.54.74.181]) by orsmga001.jf.intel.com with ESMTP; 11 Apr 2019 12:18:10 -0700 From: Sean Christopherson To: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Cc: kvm@vger.kernel.org, Krish Sadhukhan , Karl Heubaum , Sean Christopherson , Jim Mattson Subject: [PATCH v6 0/7] KVM: nVMX Add IA32_PAT consistency checks Date: Thu, 11 Apr 2019 12:18:02 -0700 Message-Id: <20190411191809.8131-1-sean.j.christopherson@intel.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This is a continuation of Krish's series, which has suffered a teeny tiny bit of scope creep (sorry Krish). This is essentially a new series, e.g. only the actual PAT-related patches, which haven't changed since v2, are retained from previous versions. But, to avoid unnecessary conflicts I'm resending everything in one happy series. The direction change relative to v5 is to self-document the top-level consistency check functions by a) renaming the functions and b) using a dedicated parameter to "return" the failure information, as suggested by Paolo. Previous versions had been taking the approach of using the return value itself to document that a failed "postreqs" leads to a VM-Exit, which was simply putting lipstick on a pig. Krish Sadhukhan (2): Check "load IA32_PAT" VM-exit control on vmentry Check "load IA32_PAT" VM-entry control on vmentry Sean Christopherson (5): KVM: nVMX: Move guest non-reg state checks to VM-Exit path KVM: nVMX: Rename and split top-level consistency checks to match SDM KVM: nVMX: Set VM-{Fail,Exit} failure info via params, not return val KVM: nVMX: Collapse nested_check_host_control_regs() into its caller KVM: nVMX: Return -EINVAL when signaling failure in VM-Entry helpers arch/x86/kvm/vmx/nested.c | 150 +++++++++++++++++++++----------------- 1 file changed, 82 insertions(+), 68 deletions(-) -- 2.21.0