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 X-Spam-Level: X-Spam-Status: No, score=-8.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05B3DC433E9 for ; Mon, 8 Feb 2021 10:44:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9C7DA64E7D for ; Mon, 8 Feb 2021 10:44:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232693AbhBHKnK (ORCPT ); Mon, 8 Feb 2021 05:43:10 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:39237 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232476AbhBHKeA (ORCPT ); Mon, 8 Feb 2021 05:34:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612780345; 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=tIhiGi3tffrJB8M0CstOij6wS4dG9pmtFfNY7bosUBs=; b=IMDeNJ8ZxYxyrVWtcLKK3AF1xcsgDEmvIP/neKVWYvKhDEw+ML3YE69//ywc5PUHjuVF8Z HTGbQvlgV98rqd3VPz9laXOpDmOoaqiLtS8LGBDDdcI2nXtmKND/TK/IGgzNmaS7aVwCw1 +QHjYgct2x4WgXODWMbV+mXBnYPtCSo= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-50-P8LlJEakM46qpC7-eiQECg-1; Mon, 08 Feb 2021 05:32:23 -0500 X-MC-Unique: P8LlJEakM46qpC7-eiQECg-1 Received: by mail-wr1-f70.google.com with SMTP id x7so12584601wrp.9 for ; Mon, 08 Feb 2021 02:32:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=tIhiGi3tffrJB8M0CstOij6wS4dG9pmtFfNY7bosUBs=; b=Io/pKOWqfDpdCLYnONVsKIa2mr8abGn2V3c/toNyTz3FauJag6MiDojSCdcQAYCXtf RfE7dZiiqC+wHkdzSWN4h/CQbPkgcEk4y51vHtRPet8dWpf1NJKM9BJFNURPAsY/mFAi Veotovc1FxeIfIyRwiQTPv3EqNAawng8y1CPeGh/kgcfYpT/bExF0mQp80rUDcrEAj+l 3lQZ+fi1BvRf+HImhe9sfnXzFsn72YisV+GxJDWYuataLx02rXx0HEqeJQRG+cRVrhgH cZXA6D5hH8xQKe63JTO4VDEmkyHb8+UFxdLCJl1H60n2uij6slvr6HQtLhQ0FhJmfUo5 WGdg== X-Gm-Message-State: AOAM531HCe2OQD40G9ge5x472Qld4YrCI1EIrPW1ovS9lG0H7EMFca4D iUNIwfI8PnyqQ/tDCrP8YbHk5F5MacophmdK9tL0WCLevIM8v6AXq2XVag7/gOH/Cx3bi5cg163 J2p4KOvv/I0P0J4bYAlsXqWYY X-Received: by 2002:a1c:ac85:: with SMTP id v127mr14206962wme.133.1612780342167; Mon, 08 Feb 2021 02:32:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5NDtNh03Fedde5BKPhn5Y/gWXzTwngzIIFuFdsSyJ7K6lVw0SD/V6IRFc6mQzGG18jB+nUQ== X-Received: by 2002:a1c:ac85:: with SMTP id v127mr14206943wme.133.1612780342023; Mon, 08 Feb 2021 02:32:22 -0800 (PST) Received: from ?IPv6:2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e? ([2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e]) by smtp.gmail.com with ESMTPSA id q19sm21480201wmj.23.2021.02.08.02.32.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Feb 2021 02:32:19 -0800 (PST) Subject: Re: [PATCH v2 20/28] KVM: x86/mmu: Use atomic ops to set SPTEs in TDP MMU map To: Sean Christopherson Cc: Ben Gardon , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Peter Xu , Peter Shier , Peter Feiner , Junaid Shahid , Jim Mattson , Yulei Zhang , Wanpeng Li , Vitaly Kuznetsov , Xiao Guangrong References: <20210202185734.1680553-1-bgardon@google.com> <20210202185734.1680553-21-bgardon@google.com> <81f13e36-b2f9-a4bc-ab8e-75cedb88bbb1@redhat.com> From: Paolo Bonzini Message-ID: Date: Mon, 8 Feb 2021 11:32:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: 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 06/02/21 01:26, Sean Christopherson wrote: > We could fudge around it via #ifdef around the xchg(). Making all of tdp_mmu.c > x86-64 only would be nice to avoid future annoyance, though the number of stubs > required would be painful... It's really just a handful, so it's worth it. Paolo