Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp666209pxj; Fri, 11 Jun 2021 08:27:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyCeuNtOokj8XqqA+2Mnolim4hj6Ep0rLAPIbK9LAHV8l87UnFJoWDgOd5HItYGdIRJt8J X-Received: by 2002:a50:fc9a:: with SMTP id f26mr4267922edq.216.1623425231486; Fri, 11 Jun 2021 08:27:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623425231; cv=none; d=google.com; s=arc-20160816; b=vj+OG5tHD7kKS9M1PbJFaXtjCI/mkZodfEffxfOLull0vN/MInrG5fCNFDvdUNrN+t 9iBQjC1DAmXf6D0HnPa7IR3zJ/4prlWBCK07tFy6HiExu081HM6tbtd0XqAsId/2XwLI U+ACeI/vRY9MZr0J2KcLLbNtJdTNZT8B7anmhAdtZdH1EpihTGDYJjOhlyeJWY/cpqpK tPpGhIz2pmYBOMDb66IZpuhZkzsvR/PQhM4YGz7vK3VwhjlwB0BxfyV6m3vNjjzXKTl4 J5p6uZO1nOMocSPg/I4cadNxUzIRzXeOMzpIm4KsDOctK2WH5YLvciikj+cbmy/GZF6W A1Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zDELvCcEl/roHFnu9m1VHxPMUFNGvlvXPDIVOdM9ikI=; b=vE2ZAjlYADx1cSIEScsoLw8enVAmxiUF0tsRdGxL5lyOMnLPGsp1TSUBtDXnlrG9CE SV/4FZbZDAHjVouHIQPiUEG21ngrmlwEPAGAtifSFxDoM1S/q0Jf1vhzQIGAwG/cBT8d phTw/4ygGGoFVlB1mCnvSm/FarBmSeXIaLW5HegEm9QNObdGxYRk139gnR0+zSfBC5bd BLeE04sNjGS6q68EiIF5nnqYPkUuSZW7F4drIauyroT3etcdevs7l7dVwaLm4SjJ3EwF hO91CCyXq5DRCKUaGs3OF6DjQHt7QUReTqWVCfxaZ04Kgu8p2gkQgYbmvE7HKNS1R+CV n1fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XdxzAeVC; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kf11si5154392ejc.490.2021.06.11.08.26.48; Fri, 11 Jun 2021 08:27:11 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=XdxzAeVC; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230460AbhFKPZj (ORCPT + 99 others); Fri, 11 Jun 2021 11:25:39 -0400 Received: from mail-pj1-f52.google.com ([209.85.216.52]:51077 "EHLO mail-pj1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbhFKPZi (ORCPT ); Fri, 11 Jun 2021 11:25:38 -0400 Received: by mail-pj1-f52.google.com with SMTP id g4so5905556pjk.0 for ; Fri, 11 Jun 2021 08:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=zDELvCcEl/roHFnu9m1VHxPMUFNGvlvXPDIVOdM9ikI=; b=XdxzAeVCHwLfBHz8cwbbMnqGUVYc1UhOgikbpV/QktNU4q2i1dFv67gEJlMo9w9vqk 6DmFYF01OeGiGvCjs66NOqLz1lA2x/t0gDvPQea3oBfwg8118Oqzcm2z/WWrn6BYo8o1 f1Ud2F18s4JEDyeimOlfyCEjTy7xPV3cWAEPHezp7t4OPoEzT4CAZTzr+4bYZKMELOkL gF6s/tyAoCfzLFMi5Z5KY0ESOyToo7l5owGWE4mSM9Abc42rNL12HVlHneqXsfQO8XOT 9EB7GFITgOryG+zIJJ+YeVMdsA8FM2E+z6yNqIELqrzPUHz03D3xJ0Ln96v8RhXI2FLS xeRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=zDELvCcEl/roHFnu9m1VHxPMUFNGvlvXPDIVOdM9ikI=; b=CjueBHc/ExHzoD11Xsq3MnLs7o+wEnsLE4KhfYt5ausoiRfY51tlEZ/Sue5GDq6xyD FdBuZ4+AGAQO5d3a0RfN8fF3Yr6trE5YIfXj9typI3OUrZyn6gOmR3gWp/w4MC49EVq3 J/JB4/MZvEXCHyw0nPArN+9b9XPGR2zveRdWP9ycCSpj2YjZZx1Tiex+jyrG4sB87zYi +/T41DIA5MJWHZcvqqEjk7QJbAqwqraHUwUxCy/ZYMM3STx/lJaISykepxXkfxknrKRu Tf6FVKvJ67a/+VSfvN9agR9Brx9dadP8T0sEi7GKlamLsyvGes4UCQ3U/AX2yEXmiXjz Ek4g== X-Gm-Message-State: AOAM531f5BMicJKtAT50DLCGdUl9U/oiqxMrNJuhWyLVS3aCh4eHCdmi tkm89C6mhcgNHfNZwgq2lOY+Gw== X-Received: by 2002:a17:90a:4a12:: with SMTP id e18mr5070251pjh.213.1623424960138; Fri, 11 Jun 2021 08:22:40 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id r6sm10590322pjm.12.2021.06.11.08.22.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 08:22:39 -0700 (PDT) Date: Fri, 11 Jun 2021 15:22:35 +0000 From: Sean Christopherson To: Erdem Aktas Cc: "Yamahata, Isaku" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , x86 , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, isaku.yamahata@gmail.com, Sean Christopherson , Xiaoyao Li , Kai Huang , Isaku Yamahata Subject: Re: [RFC PATCH 64/67] KVM: TDX: Add "basic" support for building and running Trust Domains Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021, Erdem Aktas wrote: > Hi Isaku, > > I know you are going to submit a set of new patch series so here are > few feedbacks thatI have encounter: > > > KVM_TDX_INIT_VM has a parameter that user space VMM can provide the > CPUID entries but it is not clear if any of those entries are > mandatory. If userspace VMM does not provide guest_supported_xcr0 and > guest_supported_xss, TDX init will fail as their default values are > set to 0. > > It is expected but would be nice to document (or return an error > message with more information) that KVM_CAP_X2APIC_API and > KVM_IRQCHIP_SPLIT CAPS need to be enabled. > > When CPUID entries are queried from KVM (using > KVM_GET_SUPPORTED_CPUID) and provided back to the KVM_TDX_INIT_VM, > the default GPAW size requires 5 level SEPT but KVM still tries to > create 4 level SEPT and fails to add private pages. Error messages are > also not very helpful to figure out what was happening. Please trim your replies and try to avoid top-posting. Thanks for the input! https://people.kernel.org/tglx/notes-about-netiquette