Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1886469pxv; Fri, 2 Jul 2021 15:10:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6uWrTPxPs7F/9Op/tAUlAHtzdaCcNk5NV5x1aMTzKUa8gooH4y9rQhZK0Wmg0twdiOkIg X-Received: by 2002:aa7:c6cf:: with SMTP id b15mr2047819eds.212.1625263827352; Fri, 02 Jul 2021 15:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625263827; cv=none; d=google.com; s=arc-20160816; b=tYucyrvMS/N9oFE4Y1vqmyTB/eDXvxvZGvTrO15Ah86Kez23w0UYXSeFw07wpgAc1K kP0cKHkHDGlun8JYMi+iXqiJkxK/xB08XzGAhZySwkkD/KbBOebZUrX20yUr8yq+QbyV WPPkn6fKMcl0EAfPqDO/vi3wBuTeClu63vlXu6YwbW2r3AV3qRrsFB3pRXM5ymsCpVPH ORzV5fIGE1f8AHgja6WiUe16X5gNIPWLvp1v8amx6VPMX0oDxofb/StmBdJJ95ElgEUE Ncm8X31Z30fyk3K9+Gq2uMlow9Lj/7G4kXIIbWCluNOpbeJ4MFKYNc4uK+ok3ATOW6a3 39lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=GTpYxxUNEuwhU8qwVX+3kUWLU4DqNi/OAZR8YPTNRQc=; b=IU+Cn9uX9EnVd32FThqQbtS6nT2MqzRHmWhk/7FgERoTGNxSstAu3d04ZyCoc/zzOU Htfq4nPdR2SGsQqxBxtldD5Qs0eHJ1jRlQiCv18WxAkb6kIcNspUxWm2aqIqtAWUo0lq gfqFfLtmETbqL9/oC794sxDCegteReB/gPh6dYkMsIH7GYRyo/tkapuPIuYd/weQzINN xWGfGo3qqSDoWsjwiQvFfr+5lyqdOCLqza54i3LkMaAbr/gb2UMj4JDtcdK3D+nS70S3 GQa5XknPSTP+NUgeBml93+2Ddn7/qk5xtMDzhG8WrFqfE3sSJzQzIt6L5vO+n/f1MXC+ Q+qw== 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 hh4si4545004ejb.79.2021.07.02.15.10.04; Fri, 02 Jul 2021 15:10:27 -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 S234309AbhGBWJo (ORCPT + 99 others); Fri, 2 Jul 2021 18:09:44 -0400 Received: from mga17.intel.com ([192.55.52.151]:15277 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233570AbhGBWIT (ORCPT ); Fri, 2 Jul 2021 18:08:19 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10033"; a="189168397" X-IronPort-AV: E=Sophos;i="5.83,320,1616482800"; d="scan'208";a="189168397" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2021 15:05:31 -0700 X-IronPort-AV: E=Sophos;i="5.83,320,1616482800"; d="scan'208";a="642814874" Received: from ls.sc.intel.com (HELO localhost) ([143.183.96.54]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2021 15:05:30 -0700 From: isaku.yamahata@intel.com To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , erdemaktas@google.com, Connor Kuehl , Sean Christopherson , x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: isaku.yamahata@intel.com, isaku.yamahata@gmail.com, Sean Christopherson , Xiaoyao Li Subject: [RFC PATCH v2 58/69] KVM: TDX: Define TDCALL exit reason Date: Fri, 2 Jul 2021 15:05:04 -0700 Message-Id: <9f4a14187bb30b7103e229868f0093c4d505407e.1625186503.git.isaku.yamahata@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Christopherson Define the TDCALL exit reason, which is carved out from the VMX exit reason namespace as the TDCALL exit from TDX guest to TDX-SEAM is really just a VM-Exit. Co-developed-by: Xiaoyao Li Signed-off-by: Xiaoyao Li Signed-off-by: Sean Christopherson Signed-off-by: Isaku Yamahata --- arch/x86/include/uapi/asm/vmx.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/uapi/asm/vmx.h b/arch/x86/include/uapi/asm/vmx.h index 946d761adbd3..ba5908dfc7c0 100644 --- a/arch/x86/include/uapi/asm/vmx.h +++ b/arch/x86/include/uapi/asm/vmx.h @@ -91,6 +91,7 @@ #define EXIT_REASON_UMWAIT 67 #define EXIT_REASON_TPAUSE 68 #define EXIT_REASON_BUS_LOCK 74 +#define EXIT_REASON_TDCALL 77 #define VMX_EXIT_REASONS \ { EXIT_REASON_EXCEPTION_NMI, "EXCEPTION_NMI" }, \ @@ -153,7 +154,8 @@ { EXIT_REASON_XRSTORS, "XRSTORS" }, \ { EXIT_REASON_UMWAIT, "UMWAIT" }, \ { EXIT_REASON_TPAUSE, "TPAUSE" }, \ - { EXIT_REASON_BUS_LOCK, "BUS_LOCK" } + { EXIT_REASON_BUS_LOCK, "BUS_LOCK" }, \ + { EXIT_REASON_TDCALL, "TDCALL" } #define VMX_EXIT_REASON_FLAGS \ { VMX_EXIT_REASONS_FAILED_VMENTRY, "FAILED_VMENTRY" } -- 2.25.1