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=-10.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 9791DC433E9 for ; Tue, 12 Jan 2021 22:00:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 688C8221F5 for ; Tue, 12 Jan 2021 22:00:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437303AbhALVeT (ORCPT ); Tue, 12 Jan 2021 16:34:19 -0500 Received: from ppsw-41.csi.cam.ac.uk ([131.111.8.141]:56962 "EHLO ppsw-41.csi.cam.ac.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436680AbhALUKK (ORCPT ); Tue, 12 Jan 2021 15:10:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cam.ac.uk; s=20180806.ppsw; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tcuG3sRN/KsXd0a/Sta84Ju0lCNgArq53KW18jRGl+E=; b=E/5tUqsz8yVezyP2sX8AeybxeG BMrZpRfrFllIXT5nuN7WYeQxQkfBYGEvSrTsLeQQxEWUHFDq0OhSJUxmB4ZvWOOXrCgE74Aq2R3yz JbhBZQTjRzCAtORrBaxtu7kakcO0jVgW/HUR7cZGBiPrxs6oW/dTZj1lHuNPgEefwd7s=; X-Cam-AntiVirus: no malware found X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus Received: from 88-111-124-141.dynamic.dsl.as9105.com ([88.111.124.141]:57674 helo=[192.168.1.219]) by ppsw-41.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:465) with esmtpsa (PLAIN:amc96) (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1kzPyX-000gqi-Sf (Exim 4.92.3) (return-path ); Tue, 12 Jan 2021 20:09:09 +0000 Subject: Re: [PATCH v2] xen/privcmd: allow fetching resource sizes To: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= , Roger Pau Monne , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Boris Ostrovsky , Stefano Stabellini , Paul Durrant , andrew.cooper3@citrix.com, xen-devel@lists.xenproject.org References: <20210112115358.23346-1-roger.pau@citrix.com> <2d853ee1-b671-78ad-f634-0fd1c4f7d2ce@suse.com> From: Andrew Cooper Message-ID: Date: Tue, 12 Jan 2021 20:09:09 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <2d853ee1-b671-78ad-f634-0fd1c4f7d2ce@suse.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-GB Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/01/2021 12:17, Jürgen Groß wrote: > On 12.01.21 12:53, Roger Pau Monne wrote: >> Allow issuing an IOCTL_PRIVCMD_MMAP_RESOURCE ioctl with num = 0 and >> addr = 0 in order to fetch the size of a specific resource. >> >> Add a shortcut to the default map resource path, since fetching the >> size requires no address to be passed in, and thus no VMA to setup. >> >> This is missing from the initial implementation, and causes issues >> when mapping resources that don't have fixed or known sizes. >> >> Signed-off-by: Roger Pau Monné >> Cc: stable@vger.kernel.org # >= 4.18 > > Reviewed-by: Juergen Gross Tested-by: Andrew Cooper