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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2294DC25B7A for ; Fri, 17 May 2024 08:20:22 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.723913.1129063 (Exim 4.92) (envelope-from ) id 1s7soz-0001F3-CP; Fri, 17 May 2024 08:20:09 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 723913.1129063; Fri, 17 May 2024 08:20:09 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s7soz-0001EM-8d; Fri, 17 May 2024 08:20:09 +0000 Received: by outflank-mailman (input) for mailman id 723913; Fri, 17 May 2024 08:20:08 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s7soy-0001DB-8k for xen-devel@lists.xenproject.org; Fri, 17 May 2024 08:20:08 +0000 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [2a00:1450:4864:20::629]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 4460541a-1426-11ef-b4bb-af5377834399; Fri, 17 May 2024 10:20:06 +0200 (CEST) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a5a88339780so439743066b.0 for ; Fri, 17 May 2024 01:20:06 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1787c63bsm1086219266b.51.2024.05.17.01.20.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 May 2024 01:20:05 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 4460541a-1426-11ef-b4bb-af5377834399 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1715934006; x=1716538806; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=JwLRH2paqlhiXyenCAKfx1MFSjd2W6ThzY8ap3PFnW0=; b=OVsr72DqBmrftxffBfKAHsWEuZ/HirIhHu6Vjs/ssCLfchW1k0WNhEd7AP5FcNUe/a PmjtrRYuDzIia7DTpQeY6wLB+H/7rwZTw372v0OLMMD1O4p8ol4Hl404IlkrTtUOp2Qj njOausqCQyVHxgCzZWvThnxcRRqrgnQ3txGlNC/rDvfjV5fgy4FSiJRb3JceYoKoSXFa bvPfTYg6wkG3OUsZ005vCtxxi6N8BkWYT6Tsc/nXnMGpnrYYyKMTSry3viLEXXJsZ++j EWoZab8tIFzJVY6/X9mBrdUgwHM6ZNUeQi2KOpApQ3xTXI4UMPY8JINNHtA2KiO5XGgc xOtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715934006; x=1716538806; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JwLRH2paqlhiXyenCAKfx1MFSjd2W6ThzY8ap3PFnW0=; b=cVRuLmEmxykW24LtoTO+cpRBaE+XBrO0WuFVsOVErcO6CeEna6RMWRJfPmalWNDvSQ HleejNoNHwyPshpjno+SBm6N0KhYvaHtiODgT0twiuRyT8lIC4sCmDnaONAnypWdYPba 8a37+JBSU/aeFMIsFP8ubXfCIEknnNoI4V6VuYnGoe3uOcoYW0gx29ZHaPPBwyOMUBIC 1g5g092lX0z23aTKcuTKOx1WYOE4mgLg2MJVw/X8GS2XZVaIBnOQ2HZI7obfhoNGsNj4 hGU3100je/mL7m5PkarH5WXPjzUXjGTiLFfLJaoiuXouYUC8FfCxyHd+uTdyu03lkE4V +q2A== X-Forwarded-Encrypted: i=1; AJvYcCVJv4x+wddp+mUHACoipkmlojbIBlYQEA1NHf96a0PN16Ez9WiXuuWs4US669WRkJvAk/Eq6CA0DreP/7kH93J8EdM7vh6P0V1OKr3hgQs= X-Gm-Message-State: AOJu0Yy1Nbf9zrSudgJoJ4lHNDvh3RvzSPoH3SfnFCiAlm5ISqxh48Es jrj4G7o9i8VPHhrZvJ6lOqAw+EO+Ds7VWBraef4wKK47GUZsd11hKOBXquu+mQ== X-Google-Smtp-Source: AGHT+IEgcGeMLCHyj23o/brDq84GaXE2h0UHjH4ipgB3FWNuH0Gz5G9nOELe3WNhfITNBbb2ClMAZQ== X-Received: by 2002:a17:906:57cf:b0:a59:c963:82b with SMTP id a640c23a62f3a-a5a2d5cffe2mr1276259266b.33.1715934005707; Fri, 17 May 2024 01:20:05 -0700 (PDT) Message-ID: Date: Fri, 17 May 2024 10:20:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [XEN PATCH v8 1/5] xen/vpci: Clear all vpci status of device Content-Language: en-US To: "Chen, Jiqian" Cc: Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Wei Liu , George Dunlap , Julien Grall , Stefano Stabellini , Anthony PERARD , Juergen Gross , "Hildebrand, Stewart" , "Huang, Ray" , "xen-devel@lists.xenproject.org" , "Daniel P . Smith" References: <20240516095235.64128-1-Jiqian.Chen@amd.com> <20240516095235.64128-2-Jiqian.Chen@amd.com> From: Jan Beulich Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXb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Jvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 17.05.2024 10:08, Chen, Jiqian wrote: > On 2024/5/16 21:08, Jan Beulich wrote: >> On 16.05.2024 11:52, Jiqian Chen wrote: >>> struct physdev_pci_device { >>> /* IN */ >>> uint16_t seg; >> >> Is re-using this struct for this new sub-op sufficient? IOW are all >> possible resets equal, and hence it doesn't need specifying what kind of >> reset was done? For example, other than FLR most reset variants reset all >> functions in one go aiui. Imo that would better require only a single >> hypercall, just to avoid possible confusion. It also reads as if FLR would >> not reset as many registers as other reset variants would. > If I understood correctly that you mean in this hypercall it needs to support resetting both one function and all functions of a slot(dev)? > But it can be done for caller to use a cycle to call this reset hypercall for each slot function. It could, yes, but since (aiui) there needs to be an indication of the kind of reset anyway, we can as well avoid relying on the caller doing so (and at the same time simplify what the caller needs to do). Jan