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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC67CC433EF for ; Fri, 24 Sep 2021 20:00:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8BE4761250 for ; Fri, 24 Sep 2021 20:00:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348302AbhIXUBn (ORCPT ); Fri, 24 Sep 2021 16:01:43 -0400 Received: from mga04.intel.com ([192.55.52.120]:47424 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345980AbhIXUBm (ORCPT ); Fri, 24 Sep 2021 16:01:42 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10117"; a="222267531" X-IronPort-AV: E=Sophos;i="5.85,320,1624345200"; d="scan'208";a="222267531" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2021 13:00:05 -0700 X-IronPort-AV: E=Sophos;i="5.85,320,1624345200"; d="scan'208";a="654135527" Received: from tlane-mobl.amr.corp.intel.com (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.209.166.194]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2021 13:00:04 -0700 Subject: Re: [PATCH v7 08/12] x86/tdx: Add HLT support for TDX guest From: "Kuppuswamy, Sathyanarayanan" To: Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , x86@kernel.org, Paolo Bonzini , Juergen Gross , Deep Shah , VMware Inc , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Peter H Anvin , Dave Hansen , Tony Luck , Dan Williams , Andi Kleen , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , linux-kernel@vger.kernel.org References: <20210916183550.15349-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210916183550.15349-9-sathyanarayanan.kuppuswamy@linux.intel.com> <5b728681-39e3-1399-2b01-53c950f9c6a5@linux.intel.com> Message-ID: <479fb072-5d98-53e8-5c12-e085f5e2bb18@linux.intel.com> Date: Fri, 24 Sep 2021 13:00:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <5b728681-39e3-1399-2b01-53c950f9c6a5@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/23/21 12:33 PM, Kuppuswamy, Sathyanarayanan wrote: >> Is that explained in the comment in _tdx_halt() where irqs_disabled >> tells the VMM what to do with the guest - to wake it up or to keep it in >> virtual halt? > > I think it is left in halt state. Sean, any comment? I inquired about it and found that the guest will be left in halt state after non-safe halt call. It is mainly used in CPU off-lining process. -- Sathyanarayanan Kuppuswamy Linux Kernel Developer