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 E9260C433EF for ; Fri, 29 Apr 2022 17:33:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379698AbiD2RgW (ORCPT ); Fri, 29 Apr 2022 13:36:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379607AbiD2RgL (ORCPT ); Fri, 29 Apr 2022 13:36:11 -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 C345322514 for ; Fri, 29 Apr 2022 10:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651253571; 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=aMQc2ckMqObOQomYmSJ0yLf2/h0LaCMh1bcFVp08uNo=; b=gTZfTPJwz4r4lQXH3SDKNH6yO7rdCwjQlS1dLJjFG66aJfOPrRInryd3gdILaUpgUI094Q i2HcOgpu3kRSoxpQRAlR68YQsPwwN8s1VedC/cVURBEm1fyVnFB+MCZeFeKWDfYy3dLxbT X2hLH3drXT/Fd1/CKJDWRjVYaAjsHGI= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-327-mxxwTRZAN3eUcESUnKYzxA-1; Fri, 29 Apr 2022 13:32:48 -0400 X-MC-Unique: mxxwTRZAN3eUcESUnKYzxA-1 Received: by mail-ed1-f69.google.com with SMTP id k13-20020a50ce4d000000b00425e4447e64so4864015edj.22 for ; Fri, 29 Apr 2022 10:32:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=aMQc2ckMqObOQomYmSJ0yLf2/h0LaCMh1bcFVp08uNo=; b=Q/A6fZ/lJerz914iXAEr7YpA8p0fIE96plllLgYnuCSDC67QULhb4zK/XK7xUuwGXq LPMPq3PzHJn2EOFX2uQywdP2nLHU7EHV9OwmFOnKyjzOfQc05T+XrCEhnhAe202OYG7w YNwhlE/hQwYJW16X9L2WrymeN+rZqvsH83qrjrTLY1u49Ywti2ams5cFN84Kj8k3UE0e lobYzd67Huz6Ze3IviiRVetVrrb+/E5V0AXCBhr8OvdqqQMWsnU8HI4wh8uEqE7B83k4 L5G8ZQidkUAt0y+yXokHrZtnmsvtfhWh7PY3PQYuLn9mx56L4fmM3Vtu8yC96+2ne3IL /mBQ== X-Gm-Message-State: AOAM531xFA8Ss4j741p6Elnj657wa5UoV28MGbPeNvLHZO97FMBKlNOM FOydlxmBBA2oxNR2NUiuwBHHlmvygOC7khNUlYObGBGTQQ7cFT62VXABDHCdIWbf8rZpuOJjwx/ cG9Swy3nYCeCa4ATNKTChalyu X-Received: by 2002:a17:906:7311:b0:6f4:ba4:99ce with SMTP id di17-20020a170906731100b006f40ba499cemr362293ejc.177.1651253567249; Fri, 29 Apr 2022 10:32:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznANsbZuXDh3Y/MGOqkrWD0SD6cBUFfCrg1rtlU9lgYdrrGlRmEywSV+u85kusA68QY7rMxQ== X-Received: by 2002:a17:906:7311:b0:6f4:ba4:99ce with SMTP id di17-20020a170906731100b006f40ba499cemr362275ejc.177.1651253567017; Fri, 29 Apr 2022 10:32:47 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:1c09:f536:3de6:228c? ([2001:b07:6468:f312:1c09:f536:3de6:228c]) by smtp.googlemail.com with ESMTPSA id em20-20020a170907289400b006f3ef214e05sm828179ejc.107.2022.04.29.10.32.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Apr 2022 10:32:46 -0700 (PDT) Message-ID: Date: Fri, 29 Apr 2022 19:32:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH v3] KVM: SEV: Mark nested locking of vcpu->lock Content-Language: en-US To: Peter Gonda Cc: John Sperbeck , kvm list , David Rientjes , Sean Christopherson , LKML References: <20220407195908.633003-1-pgonda@google.com> <62e9ece1-5d71-f803-3f65-2755160cf1d1@redhat.com> <4c0edc90-36a1-4f4c-1923-4b20e7bdbb4c@redhat.com> <0d282be4-d612-374d-84ba-067994321bab@redhat.com> <8a2c5f8c-503c-b4f0-75e7-039533c9852d@redhat.com> <4afce434-ab25-66d6-76f4-3a987f64e88e@redhat.com> From: Paolo Bonzini In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/29/22 19:27, Peter Gonda wrote: > Ah yes I missed that. I would suggest `role = SEV_NR_MIGRATION_ROLES` > or something else instead of role++ to avoid leaking this > implementation detail outside of the function signature / enum. Sure. Paolo