Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp211792iob; Mon, 2 May 2022 17:21:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZ+6UoPoApBw0d1XoGTOX16pef+OD3Yh2+1Y4FijUcpgNRNmkFSQ0T3oWkKpabY8l2580c X-Received: by 2002:a62:3848:0:b0:50d:376e:57ed with SMTP id f69-20020a623848000000b0050d376e57edmr13494047pfa.71.1651537270365; Mon, 02 May 2022 17:21:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651537270; cv=none; d=google.com; s=arc-20160816; b=jCQJPysIzAOH+dR3LqYFZCooRp4WBO5XLJB12mqpWllnU/mK+EyI0p8EXBA+xyBuFm 9a8krW+Pwu/06G+tE7QDTRZQW3/qS+HQuQbMdNUistn8RmrE3wUUVHzSCw17GAC2EElU 9ZEb/wLvuDNpyRVA8VavEhDqdKwVOdaQ4YtrGQZef0/f3KpAbG5hCg8J/2MiexyOkEDc 3w/vv1fzh6fpZxnK/pHgOsIv3hF2IB/eVzB2jTW+S6o9jAc+K4w3gdtwqALXZDnbRlq4 uxeeA+EwXdHyFSR8Oc1/5urfvFVKN0kPf8tXeriuC8fQ05vWaFhJm5L74RwD68xL6sMr cQaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=aMQc2ckMqObOQomYmSJ0yLf2/h0LaCMh1bcFVp08uNo=; b=nYSKcGF9ErpQDuFGTJh7U2Wl8L2cLcWwLjqJ8Rr9mqoXVTvem1ORLTjQ9kcb4XGadt s8OThX4XCsFCWXbluZVD5XNA2HIjTrqajDIJi27hwiyERnzRP6FSY34LnHvPNKRt7SaY 0cumc7g/AwM16H/RHYWJ7EIU8Mtb6Er4nCOZyJFKLN2r0CsnopmtEweNA7rVdl/xTImp kuYbZOXCU/nnqMLRcAoTDjqYZxINOrFtmyHPcx2Ew6+U8zAA3eMVL7h+5hHWTaiI+A/M 0QClE8eDC5ik2I14EB8GLFeiC8j+wugu7KhGZ1R6gIRFZTc6lD9BSbIlGqpFbcoHo1QH wlNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gTZfTPJw; 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=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s36-20020a632164000000b003a1d18a5388si14310291pgm.762.2022.05.02.17.21.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:21:10 -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=@redhat.com header.s=mimecast20190719 header.b=gTZfTPJw; 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=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 828F71E3DD; Mon, 2 May 2022 17:17:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379681AbiD2RgT (ORCPT + 99 others); Fri, 29 Apr 2022 13:36:19 -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-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 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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