Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2308058pxy; Tue, 3 Aug 2021 03:12:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytnq2KA1k/ycUBCoxVgjw6s2lXaP8F8+mIVmaB8Zz9YKnKWBSQ4gCIsBm4RNQAy5F/7HZi X-Received: by 2002:a05:6402:54f:: with SMTP id i15mr25044714edx.24.1627985557298; Tue, 03 Aug 2021 03:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627985557; cv=none; d=google.com; s=arc-20160816; b=t51Z3Ug/+TobGldUXuwCFj5SjxCSUsv1XR/lLxGykz4ExFtEJ5GsqfSaAgpmZPFecs /2E6OpqsdOiqpDQf+OoBf9dxxRUOc69R4XtLjOITR4NBycziV+AyWh8gG1bhiJAZXVe6 4ubhlZBdkDqUmtNB6wEmC7PLx31O4pDTwC/CZH75YeicC8v6+lDaOh9ctU9ec6JUQYnG BcEomnhXkPFJCimOH7423KIM36/yXUb6EFz6o0WbHMwjqNPDNNjTAu7mqZvut43uOCNs ros3W1bpwAlHVKiFF8KLutW0PAhAnZSsGQlbxu3ketyAxXn5KF0WW74ivuUw1lugDBgp 2pPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=OfOI5BQLkvmy3gTPFxCm3AerU5X6fkkIIhM9umQ8DpQ=; b=TaDoc1LfnWKjbttzenB52J/WtuNZ7fo4gWGA/hrlTWDzsoem+QUGmpSwe5bTIx/47F GAjaHnviUihz9UesM8aam3T9ZHZnisX70WEsEy4ruTQENcYuh+ymg+WR+QZhj114DHBG zFd/xy9a0/60fhIkKHkanzUSwAmnjLAfSQIs0EoNRlJvJt1wL2R5uIzYROX/5Wa6CVx5 snDd+jBXuedbG3BsgDC4kopv/DwuaJf7RAtynukAkDzQSPb7L24xrp85zMpquYHSG8+J No2zwrUAGw0IK6GCOiLnObiUZXgTg07eNjCTJD5VbCZhZXJ49I3Cx5rnogcJo8GbPSoS VCYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Q9r/s5WE"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si12488652ejx.666.2021.08.03.03.12.14; Tue, 03 Aug 2021 03:12:37 -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=@redhat.com header.s=mimecast20190719 header.b="Q9r/s5WE"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235275AbhHCKK5 (ORCPT + 99 others); Tue, 3 Aug 2021 06:10:57 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:33940 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235290AbhHCKKg (ORCPT ); Tue, 3 Aug 2021 06:10:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627985425; 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=OfOI5BQLkvmy3gTPFxCm3AerU5X6fkkIIhM9umQ8DpQ=; b=Q9r/s5WE5cXZ9ZYGU9GHNcTlxEiCDmQEZDQiqKKcc9Nz7jwaIw2UNeSHCcWpurrtvA8g5X 3tY4ap1s2QrXohHR7P3dTFNi1RbXOuYPuE7XzTibPVZYBQlggBRuUdasVOhuxia9pZAu4F tHJhTS9kWgJZM7+rof5s/wBTFrP05Kg= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-85-mFdNTK13NWCTCC-4wofLNg-1; Tue, 03 Aug 2021 06:10:24 -0400 X-MC-Unique: mFdNTK13NWCTCC-4wofLNg-1 Received: by mail-ed1-f71.google.com with SMTP id u25-20020aa7d8990000b02903bb6a903d90so10231211edq.17 for ; Tue, 03 Aug 2021 03:10:23 -0700 (PDT) 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=OfOI5BQLkvmy3gTPFxCm3AerU5X6fkkIIhM9umQ8DpQ=; b=FzDKRwRCtEXQDlz/hJzuAdpIcertidL/yCPOPEfXIQPH69LN3kOof5nVq7S+KsOgyW 5pwWe5az8VRcIT5w6rRFwvvSvfOoOolN+rB1yyQvuEN83YV2mwJW0H0Uim4Xx1ilMnPa nmHP9OYSBQGUb1tyf2a5MgdYDMxZdHjmXc6LUOqQK3RWXCdUsWDhsxlzmE5T+rOUhlwW bI4hJNyNLLK7qVVmKSg5FVST3bDPYmp5PScmmlkUW4mWl4phd78eEiFQWWsxxiZH3iJR efiILvBBcSDmJIZKWfotUTWtSr7nsoRxIJLlP9N2eoDqFdE9Xy17/oHbKHxStdyTyq8K +IRQ== X-Gm-Message-State: AOAM531tLbZqMb3cIyZ28tDRXDgbFysU1iZzjusPJCdhmucyra7+Pke1 1r3+9De34pFWAZHA8eWlOgkxRp64V38G09tJioOyD7NGXlkIl23pTj6yJP5VAhCZDmIH98HxNlL f881FxtNxUJlD4TQQYxpc1wJA2cyxAp+hVBc0ICNIvi6KXFr8QW78ydfYtcVnpjOQibSnPX5EMj nZ X-Received: by 2002:aa7:c792:: with SMTP id n18mr25043047eds.269.1627985422302; Tue, 03 Aug 2021 03:10:22 -0700 (PDT) X-Received: by 2002:aa7:c792:: with SMTP id n18mr25043014eds.269.1627985422004; Tue, 03 Aug 2021 03:10:22 -0700 (PDT) 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 cf16sm7767366edb.92.2021.08.03.03.10.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Aug 2021 03:10:21 -0700 (PDT) Subject: Re: [PATCH 4/4] KVM: selftests: Test access to XMM fast hypercalls To: Vitaly Kuznetsov , Siddharth Chandrasekaran Cc: kvm@vger.kernel.org, Sean Christopherson , Wanpeng Li , Jim Mattson , linux-kernel@vger.kernel.org References: <20210730122625.112848-1-vkuznets@redhat.com> <20210730122625.112848-5-vkuznets@redhat.com> <20210730143530.GD20232@u366d62d47e3651.ant.amazon.com> <878s1namap.fsf@vitty.brq.redhat.com> From: Paolo Bonzini Message-ID: <1939b03b-cec3-2c2e-2f67-b0dfc2c83735@redhat.com> Date: Tue, 3 Aug 2021 12:10:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <878s1namap.fsf@vitty.brq.redhat.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 30/07/21 16:50, Vitaly Kuznetsov wrote: >> Should we also do WRITE_ONCE(nr_ur, 0) here? > It could probably make sense to replace 'nr_ud = 0' above with this so > compiler doesn't screw us up one day.. > It should be okay with the "memory" clobber. Paolo