Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1909921ybt; Sun, 28 Jun 2020 01:52:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdkAL1juUNh5I4BknCHMwNmttvOZHBKsKU3z2qoycvu0CuiGRrQVijeYX/RFjQE0K/E4vS X-Received: by 2002:a17:906:3945:: with SMTP id g5mr10011417eje.549.1593334358500; Sun, 28 Jun 2020 01:52:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593334358; cv=none; d=google.com; s=arc-20160816; b=HHuqkgTJDph8gEEv3bSZDrV/uMJ4jPZLjSubRNFvf6fgFD70G2yAQHtPHb8v+lGr+r iSDMe1MDLFX3YSGyGhTHYb1BsqYkIFFKbclbFJHZN3MuZfWBtqAZHTvGAJwQTUz0je3+ ydtI4y3jISG4kFyBFuc2sIhCFhGTaXpqmiXYPrwzRYKWGUnWYrR+ZU5hyzGmKrpH4b1l GQzk+1OxE2tRakmlVUtv68YPKe1Bxy4eV24gNj3LqdzKA7CUt/i8a2lRkVOa7OQMOkIO nGI79AhWJsBZ+QwILju908+fPeUvyMUcbdx9hV3P+nrj+mZ5smiakbEg2vl/6FgmtVwa rBeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=hNuzsEHuRS0RExb9Sq8nSpz41dt4rmHy9bljb0USHO4=; b=EhRUwCRL+w5DtVE9DUq1aHhPFUYqu0CHQSuf/v9A86/OApk9Mmka1UhRv+4FGAsNdr IA8DAH9ThQW7EWlh9aiZuK6fxDO8ucfpwmBHm1Ulaf7HB3NTKOdRpJCh6ZC22Ta/scOq utfD++shMn99UkhWync77dArYmA/7w/YfPcR2sWWwzoZciAdICweMY6BVLiyrTJQqodJ MqUGMStMmCyfkiieCv1idveulG/TroVJYoBVpZGZvcULATgwqaO8/+A4pbWuX3k+kPf3 tweFj1dWVHVEQQA7JOLWapNPOg/e+9z6LIKQwc0oXOvtHSI3S1XH86oi9izPDQlIcZuY DS1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si10425138edw.105.2020.06.28.01.52.15; Sun, 28 Jun 2020 01:52:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726167AbgF1Iv7 (ORCPT + 99 others); Sun, 28 Jun 2020 04:51:59 -0400 Received: from mga05.intel.com ([192.55.52.43]:43712 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726069AbgF1Iv7 (ORCPT ); Sun, 28 Jun 2020 04:51:59 -0400 IronPort-SDR: 9nvc4uHs/HSIoyq7vyfj1wpEhWEcU/RTG16/n2KIsFnEdSD0bIUOU0eqlFmiLL2eg9ZrgZNxFi sD3LCgDsZmLA== X-IronPort-AV: E=McAfee;i="6000,8403,9665"; a="230601060" X-IronPort-AV: E=Sophos;i="5.75,291,1589266800"; d="scan'208";a="230601060" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2020 01:51:59 -0700 IronPort-SDR: nQCCV7I8aGn72OajMvPuSjKq+toOWQBvs1aHn94Y4JekY0wc6B3vQDItKtKMDkeK5I6L5R01Uu EA8RaPFsdquw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,291,1589266800"; d="scan'208";a="480457278" Received: from chenyi-pc.sh.intel.com ([10.239.159.72]) by fmsmga005.fm.intel.com with ESMTP; 28 Jun 2020 01:51:57 -0700 From: Chenyi Qiang To: Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Xiaoyao Li Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC 0/2] Add support for bus lock VM exit Date: Sun, 28 Jun 2020 16:53:39 +0800 Message-Id: <20200628085341.5107-1-chenyi.qiang@intel.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This serial adds the support for bus lock VM exit, which is a sub-feature of bus lock detection in KVM. The left part concerning bus lock debug exception support will be sent out once the kernel part is ready. The first patch applies Sean's refactor to vcpu_vmx.exit_reason at https://patchwork.kernel.org/patch/11500659 It is necessary as bus lock VM exit adds a new modifier bit(bit 26) in exit_reason field in VMCS. The second patch is the enabling work for bus lock VM exit. Document for Bus Lock VM exit is now available at the latest "Intel Architecture Instruction Set Extensions Programming Reference". Document Link: https://software.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html Chenyi Qiang (1): KVM: VMX: Enable bus lock VM exit Sean Christopherson (1): KVM: VMX: Convert vcpu_vmx.exit_reason to a union arch/x86/include/asm/kvm_host.h | 1 + arch/x86/include/asm/vmx.h | 1 + arch/x86/include/asm/vmxfeatures.h | 1 + arch/x86/include/uapi/asm/vmx.h | 4 +- arch/x86/kvm/vmx/nested.c | 42 ++++++++++------ arch/x86/kvm/vmx/vmx.c | 81 ++++++++++++++++++------------ arch/x86/kvm/vmx/vmx.h | 25 ++++++++- arch/x86/kvm/x86.c | 1 + 8 files changed, 107 insertions(+), 49 deletions(-) -- 2.17.1