From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA16CC433F5 for ; Tue, 24 May 2022 08:04:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229711AbiEXIEp (ORCPT ); Tue, 24 May 2022 04:04:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbiEXIEm (ORCPT ); Tue, 24 May 2022 04:04:42 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 52CC49346A for ; Tue, 24 May 2022 01:04:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653379480; 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: in-reply-to:in-reply-to:references:references; bh=X/kCF8qTH/Zc08rb8rGJAZZn9gK2OE+ET5XIM0zcddc=; b=HjaoGfs1naLmeIMf+YXGN65yrGvZEGkILa02NKuJIigiYYZI59PGVA349VNhiOxyE0nAzF QubZPu+7Q161+vbpNn26AMGDvrQdjtzLHDMOWO4E7Oi22ecAUk7OS6gQ+Q9Ae5SDdU0q8b 6nIwsOvwdvZ5NQxid1W8RFZueGGZTO8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-597-G_-g1tgdMi6dmNLQHHGGvw-1; Tue, 24 May 2022 04:04:37 -0400 X-MC-Unique: G_-g1tgdMi6dmNLQHHGGvw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7F6A1811E81; Tue, 24 May 2022 08:04:36 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.41]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 31AE140CFD00; Tue, 24 May 2022 08:04:36 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id B937A1800393; Tue, 24 May 2022 10:04:34 +0200 (CEST) Date: Tue, 24 May 2022 10:04:34 +0200 From: Gerd Hoffmann To: Xiaoyao Li Cc: Paolo Bonzini , Isaku Yamahata , isaku.yamahata@intel.com, Daniel P =?utf-8?B?LiBCZXJyYW5nw6k=?= , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Richard Henderson , "Michael S . Tsirkin" , Marcel Apfelbaum , Cornelia Huck , Marcelo Tosatti , Laszlo Ersek , Eric Blake , Connor Kuehl , erdemaktas@google.com, kvm@vger.kernel.org, qemu-devel@nongnu.org, seanjc@google.com Subject: Re: [RFC PATCH v4 32/36] i386/tdx: Don't synchronize guest tsc for TDs Message-ID: <20220524080434.m5igay7riawde7sx@sirius.home.kraxel.org> References: <20220512031803.3315890-1-xiaoyao.li@intel.com> <20220512031803.3315890-33-xiaoyao.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220512031803.3315890-33-xiaoyao.li@intel.com> X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Thu, May 12, 2022 at 11:17:59AM +0800, Xiaoyao Li wrote: > From: Isaku Yamahata > > TSC of TDs is not accessible and KVM doesn't allow access of > MSR_IA32_TSC for TDs. To avoid the assert() in kvm_get_tsc, make > kvm_synchronize_all_tsc() noop for TDs, > > Signed-off-by: Isaku Yamahata > Reviewed-by: Connor Kuehl > Signed-off-by: Xiaoyao Li Acked-by: Gerd Hoffmann