From nobody Wed Dec 17 17:59:35 2025 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 392931974EA for ; Fri, 13 Dec 2024 19:57:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734119844; cv=none; b=CvMZ+d3Ym/bMCFg8lAnoYKn+EAOEmaQ6GlS9//J5RFSUPfg415qruDYOjOI2Nua8iqSMTeRkbeCaWPQap+9css4p7BpNaGlX6QhzBB+Dx1nhH27b5oiNLnMvGYmo2CAvGPqm4LP7gSCzZcfzMvukDu6yp3kCdnO4ZQ7NAp5surU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734119844; c=relaxed/simple; bh=sthHUtFKrqUaPxQfCF60mgyDHtH6m55/15Jq0vpOz5c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IgcZKZQkcWpwXePnLMkdgIU1PDauFR4y3GxUs0Fzz1FUz90SPiQkhiMHrIS0X6LgpVUvHdM3AOX8MnH3w1JIBXJNRAfjAO/9IcnI5oheYkhGKPZ5zkL7TWkndGYpEdbEUyPOP7Flz7ELjiD4gSS7BTs1QaQJl7K1dD8J0tw3Wdc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WUbHfwte; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WUbHfwte" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1734119842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qcwioA+8IUPWsl77mjGc+fBvaRQn2foraJmcVc4D09c=; b=WUbHfwteO3iiBiSoAXVy4F8sHcyrbFM7/cRagbZeaz4qtU8UlhbCUdunEWVy8ALLaEVKOK V7AnGUX6wWxUbNCwPSYXUtzI9NPhWqaq/WePbZqa7n/8OAP1A5Q/xUoLxCD+hNIMj3ZIrR o0RO85QMcmxKD8y2Jy30qSLklXgyWKk= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-401-as6MmIRqNQmgjgOoiinsUQ-1; Fri, 13 Dec 2024 14:57:18 -0500 X-MC-Unique: as6MmIRqNQmgjgOoiinsUQ-1 X-Mimecast-MFC-AGG-ID: as6MmIRqNQmgjgOoiinsUQ Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 86BB6195609E; Fri, 13 Dec 2024 19:57:17 +0000 (UTC) Received: from virtlab1023.lab.eng.rdu2.redhat.com (virtlab1023.lab.eng.rdu2.redhat.com [10.8.1.187]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 89D901955F3C; Fri, 13 Dec 2024 19:57:16 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: yan.y.zhao@intel.com, isaku.yamahata@intel.com, binbin.wu@linux.intel.com, rick.p.edgecombe@intel.com Subject: [PATCH 03/18] KVM: x86: Add a VM type define for TDX Date: Fri, 13 Dec 2024 14:56:56 -0500 Message-ID: <20241213195711.316050-4-pbonzini@redhat.com> In-Reply-To: <20241213195711.316050-1-pbonzini@redhat.com> References: <20241213195711.316050-1-pbonzini@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 Content-Type: text/plain; charset="utf-8" From: Rick Edgecombe Add a VM type define for TDX. Future changes will need to lay the ground work for TDX support by making some behavior conditional on the VM being a TDX guest. Signed-off-by: Rick Edgecombe Message-ID: <20240718211230.1492011-4-rick.p.edgecombe@intel.com> Signed-off-by: Paolo Bonzini --- arch/x86/include/uapi/asm/kvm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/uapi/asm/kvm.h b/arch/x86/include/uapi/asm/kv= m.h index 88585c1de416..9e75da97bce0 100644 --- a/arch/x86/include/uapi/asm/kvm.h +++ b/arch/x86/include/uapi/asm/kvm.h @@ -925,5 +925,6 @@ struct kvm_hyperv_eventfd { #define KVM_X86_SEV_VM 2 #define KVM_X86_SEV_ES_VM 3 #define KVM_X86_SNP_VM 4 +#define KVM_X86_TDX_VM 5 =20 #endif /* _ASM_X86_KVM_H */ --=20 2.43.5