Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp575909ybt; Fri, 26 Jun 2020 06:36:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4FxVUrgIvFOwSmrx+BL8V9SjXJogXJq0BT+CTO7Q0yO9bd5Xd6m0Db28fTqYZgLaelmv8 X-Received: by 2002:aa7:c54e:: with SMTP id s14mr3460375edr.81.1593178597415; Fri, 26 Jun 2020 06:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593178597; cv=none; d=google.com; s=arc-20160816; b=p41ofJfjcxbGYmKOtwGCJUteRP651TFVsh+iyglXLzjVhEQh8hwC/O5R5nfrNmW0ve QLiTf5r53PeOzMXpLF7louQhLFIGe6D1ny28FOszdtRighwhGAqkbY3QrwQTN4cU//JN 6QBhThpE2O5Ejhws7tFXuxwxjJ4eZRKIzREWwGMIaliESdbwPIAXzoh4gA0HRruK208p wLppeFA4DAzB/uLQ8LaR2NJAle609ZQdeXpXjHykRO0MnsdOUDrUiLfYEibpkx7xcT3Q i6dIl9f46cWoHqfkNqaJFMFHevbSKNq7KDuRjQwwPK+UoygGv/CvM9ctSRkE3rNqzfiK J59w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Rp6YQJvOct5YMdcILlfA4VbzbkAlegh4uyhw+0iU3XE=; b=QUfKdA+l9rQQLO840lBrn5Fo2lYBCoZysvd8DLbB6kcKLZFZdQ5FmZ92DO5QW2MTuk yn2e+7Zcn0ffeOdT5uIqKaPgYAMiwcn3bXXm83tXTB6EbjP5CRmcTVGo9ywKkKUWqnyT 76NZrHdVEK1Np/gwhOyqs44jHix55O9lTwRNgrIonZCuvXQGNGysR+aWQIr1m3B1cxCn M8fhPpC/rgyX/+M9k9cY4rGY3qrTOK4cAwKINP57iVx3HDJI4hhz5NlxoHkqK1E3aeK5 ESRdwuP/IPqrsbzJxk/uQ4ERXnJtvXFwCeqDDHbqZKSpUX0YLP1VY6BWw7InFKzfLLBr oeIg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw21si512411edb.600.2020.06.26.06.36.14; Fri, 26 Jun 2020 06:36: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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728533AbgFZNfP (ORCPT + 99 others); Fri, 26 Jun 2020 09:35:15 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39281 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbgFZNfP (ORCPT ); Fri, 26 Jun 2020 09:35:15 -0400 Received: by mail-wm1-f68.google.com with SMTP id t194so9400507wmt.4; Fri, 26 Jun 2020 06:35:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Rp6YQJvOct5YMdcILlfA4VbzbkAlegh4uyhw+0iU3XE=; b=a6OcOXWqZZ/2EzHlaX0jBt9K4pdNl6qRnpCGQNhhJeHT/8Du6fAc4hl75ROWYMCQM+ fXWNos573s6pIJMrb0AmnFfKF+aPlQzDskpSI/cJ/FB1uwVI+BiO421RD8Xm6EhlV2yN 4NQwQsGNPgyqGArKb3IOoyBDUIONcby+UfLEjq6XE7v5twPDLKthJLmLzLUXw4a7cJyj 7IpZmG4UkLaYbqLtv8Y+eM7V+OsL5WhRrsObOBHGiuHxdij2yBdEkUbDeqLbxVpDQcK1 RoPfwyg/XQDK4W+wBAC2gjLr4qTq/vY53HNqqgX4WJs0TkReoS91xQzLemdOorIm0+Fi 3ELA== X-Gm-Message-State: AOAM530YTw6eNE/TyKPuIGAC7WxPdNYlw/To0qBXIoGzSTaDiPGSv54f ei6lltLn2Z8N4E7Q/i2TCW4= X-Received: by 2002:a1c:ba0b:: with SMTP id k11mr3428647wmf.140.1593178512694; Fri, 26 Jun 2020 06:35:12 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id v20sm37886021wrb.51.2020.06.26.06.35.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 06:35:12 -0700 (PDT) Date: Fri, 26 Jun 2020 13:35:10 +0000 From: Wei Liu To: Andres Beltran Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, mikelley@microsoft.com, parri.andrea@gmail.com, "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org Subject: Re: [PATCH 2/3] scsi: storvsc: Use vmbus_requestor to generate transaction IDs for VMBus hardening Message-ID: <20200626133510.5ognamqpz3klnfhk@liuwe-devbox-debian-v2> References: <20200625153723.8428-1-lkmlabelt@gmail.com> <20200625153723.8428-3-lkmlabelt@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200625153723.8428-3-lkmlabelt@gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 25, 2020 at 11:37:22AM -0400, Andres Beltran wrote: > * If the number of CPUs is artificially restricted, such as > @@ -760,14 +768,22 @@ static void handle_multichannel_storage(struct hv_device *device, int max_chns) > vstor_packet->flags = REQUEST_COMPLETION_FLAG; > vstor_packet->sub_channel_count = num_sc; > > + rqst_id = vmbus_next_request_id(&device->channel->requestor, (u64)request); You can cast request to unsigned long to fix the warnings on 32bit. Wei.