Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp55953lfv; Tue, 12 Apr 2022 17:06:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHdwWsBKZeWrzw3qmPxkaDLFbp1uW1GxJrZbbqUmzC9P9PGt85anxClpkg3cPXkS/om6da X-Received: by 2002:a63:9d4b:0:b0:398:1efe:7122 with SMTP id i72-20020a639d4b000000b003981efe7122mr32872234pgd.241.1649808373063; Tue, 12 Apr 2022 17:06:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649808373; cv=none; d=google.com; s=arc-20160816; b=K8Ur2PuYZbqsk3J7i1WEgAGLyCre8hDF9l7jUiqON9JrZcBhWXWcDrRD0mncLXsWwS NxUEJ5jR0/V7iYWqFmxS3H0mhMVp4OPTLYmJzD4oSCMM/lpa/9zn6lO6fjD2nQdhi2it mehGIO6PU1lkSqp7ue/UwAlCnnTWvk7bkB0N8RjdDLPzvuFbzQeFH5Am8GGvYwk9JANY ZQTJB8rVIsNAaYPZXyV0WMmW4DANHxqE4R8/XiDDxlZKERLyexri0aSkbZJaDddADWtB Qi90xhvdZ041nynTRP5/MZJKUkH922L3qAPUlS86dA5F2GP676JCFX2mn0qH3Rh2JRCm JaJg== 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=IPjYtyu2cEuUenZKGSUqxautTy3KTT2i38ZhYL5cEu8=; b=nJToLE4zm1efF7ZNbJ32+aW5iswnmnShOg29oLWAnMA6DB9OjLNHZFAJw/uF5uTYkN EWUCwTA50RAr+XRT6Ts/BNsXjv5yWFWgU3IphOBMyv7QibelvqRj8y9bsjQG5GUdp7wC jVkuAyXofE1NyGNpGnI9F43FfpUk18A2Xx4M4g4nEZywvbQydItaaMFAIKMC8/nlmAqS N/6xt7wouiaVE2Kfyjnhb8Vy9XySpn0/xWbQL4QvxH3qBb4t2Ere51IZKsO5ATanrSDX zw/vCdKx5wWQyE29n1t7AjQzebJLfdHoBtNvCqqBF9/WW83+caQr/0DuAnAh6LUB3vfV Jj8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EdFe8w8C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v7-20020a622f07000000b00505b7215af5si7678051pfv.149.2022.04.12.17.06.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 17:06:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EdFe8w8C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E112E15B9B4; Tue, 12 Apr 2022 15:02:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232316AbiDLUFo (ORCPT + 99 others); Tue, 12 Apr 2022 16:05:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232916AbiDLUFZ (ORCPT ); Tue, 12 Apr 2022 16:05:25 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A373D4EDE1; Tue, 12 Apr 2022 12:55:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649793351; x=1681329351; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=qpmveqwO7SyvzvBsb9MExzJEADb5MiyVxp91O/5Gxf8=; b=EdFe8w8CoPxH9UAJRPDTU4Q91omFzZ4MNvklV485ddSVOIviahl03nJJ HBp0V8JVr9sXaxIb5BxAU+E0sQ9Rb2RuVclttLxboNLPkP9lQ6/qqFhH9 HhZKtT6feYGIBYSmbmGAZXV7ESoKLQsrjT8UPfsaf5r7iZBqIXEuSwySZ gp+R2c91h5rGz1nEO87hYIXfA8JTLEukR9Wnu6YtQ5mUXNyYRBbVKRad6 qzhdQrf565xLLamjZSVg9B/2cmVfODbw2jZbwpjYXrEEdFc9WuE911rdv sVowzl7ieF9LZggDloTpRsxF3LOinaG7/9ufYdNB59CA9xpJa41iPF3KF g==; X-IronPort-AV: E=McAfee;i="6400,9594,10315"; a="325397924" X-IronPort-AV: E=Sophos;i="5.90,254,1643702400"; d="scan'208";a="325397924" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2022 12:55:29 -0700 X-IronPort-AV: E=Sophos;i="5.90,254,1643702400"; d="scan'208";a="526640026" Received: from lpfafma-mobl.amr.corp.intel.com (HELO guptapa-desk) ([10.209.17.36]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2022 12:55:29 -0700 Date: Tue, 12 Apr 2022 12:55:27 -0700 From: Pawan Gupta To: Jon Kohler Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Andi Kleen , Tony Luck , linux-kernel@vger.kernel.org, dave.hansen@intel.com, Borislav Petkov , Neelima Krishnan , "kvm @ vger . kernel . org" Subject: Re: [PATCH v2] x86/tsx: fix KVM guest live migration for tsx=on Message-ID: <20220412195527.xwpgk4mzyqccpqmo@guptapa-desk> References: <20220411180131.5054-1-jon@nutanix.com> <20220411200703.48654-1-jon@nutanix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: <20220411200703.48654-1-jon@nutanix.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 11, 2022 at 04:07:01PM -0400, Jon Kohler wrote: >Move automatic disablement for TSX microcode deprecation from tsx_init() to >x86_get_tsx_auto_mode(), such that systems with tsx=on will continue to >see the TSX CPU features (HLE, RTM) even on updated microcode. This patch needs to be based on recent changes in TSX handling (due to Feb 2022 microcode update). These patches were recently merged in tip tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/urgent Specifically these patches: x86/tsx: Use MSR_TSX_CTRL to clear CPUID bits [1] x86/tsx: Disable TSX development mode at boot [2] Thanks, Pawan [1] https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=258f3b8c3210b03386e4ad92b4bd8652b5c1beb3 [2] https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=400331f8ffa3bec5c561417e5eec6848464e9160