[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 2/5] vPCI: introduce private header


  • To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
  • Date: Tue, 17 Feb 2026 17:04:25 -0500
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8VaKNqPDCt7toW4VRa5qYDeCjE1Jgqa6JeUNYNIlx9M=; b=UO6zZBNQDQ21JJ4sVCa4Mgifzc2t5l4PXgT4dhqwaH+acXrg+OVUqtxp/+5aAhOX1VbJ9zL+a0qT/6JomGCEehNC6gHc07tT/8vrPoJo1Lrp6oWrjZoOJWHdJYMbZRm5ju3dS+Fys4htKdLLkURBTOcxTccIUCuAnlY3U1qSfUTJ2y5NXRUy4qe+ONzP54IFhYGSXmwvG4U/DGED75QWT9UhgEMjpSryOZ0ngihkK7i/8uFFvMxXJB8cnG0ha+CX+QRyKLAtFmK2F7KJCoEx7FZEQZIHwEH9UwteDXlQf2pNkfyhM+1b5rbwhR8rBCPSX3earW2/oRhSFfRCTsvSvg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=foGmZlnF/DRw/H06qWoHjdHoZQL5FeJQP4OTbdE5fcDs4I5Rrziey+qmZm9zyrgA5olMT49giqmcYbOtTHkDIBaHN7bNEgBspeEDoYm2ptyxUCLl8Z/q2DhwynlQTx4O4gXIcwSJV49bvaQ2PvzdHN5Cwx0knEi5EQ6asIXk5zaJBLysOxauPPnis1aBJyDtwNYE8BMrt9+LwCyS42oC8Y8PKteKjutk81mFSupuBV39s9MEVVc7L3MlNozKUiHhvS7q1bDi9F/OMAPOTrOFU8igbEmeZ8ZsA7v7tkmhg0pVkolZ+cWvstNizsdFRJKsO4RlOV87zvKjR+cDY1VW5g==
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>
  • Delivery-date: Tue, 17 Feb 2026 22:04:59 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 2/10/26 05:53, Jan Beulich wrote:
> Before adding more private stuff to xen/vpci.h, split it up. In order to
> be able to include the private header first in a CU, the per-arch struct
> decls also need to move (to new asm/vpci.h files).
> 
> While adjusting the test harness'es Makefile, also switch the pre-existing
> header symlink-ing rule to a pattern one.
> 
> Apart from in the test harness code, things only move; no functional
> change intended.
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> ---
> Subsequently, at least on x86 more stuff may want moving into asm/vpci.h.
> ---
> v4: New.
> 
> --- a/tools/tests/vpci/Makefile
> +++ b/tools/tests/vpci/Makefile
> @@ -14,8 +14,8 @@ else
>       $(warning HOSTCC != CC, will not run test)
>  endif
>  
> -$(TARGET): vpci.c vpci.h list.h main.c emul.h
> -     $(CC) $(CFLAGS_xeninclude) -g -o $@ vpci.c main.c
> +$(TARGET): vpci.c vpci.h list.h private.h main.c emul.h
> +     $(CC) $(CFLAGS_xeninclude) -include emul.h -g -o $@ vpci.c main.c
>  
>  .PHONY: clean
>  clean:

Can you please add the generated private.h to be removed upon "make clean"?

Also, can you please add tools/tests/vpci/private.h to .gitignore?

> --- /dev/null
> +++ b/xen/arch/arm/include/asm/vpci.h
> @@ -0,0 +1,13 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
> +#ifndef ARM_VPCI_H
> +#define ARM_VPCI_H
> +
> +/* Arch-specific MSI data for vPCI. */
> +struct vpci_arch_msi {
> +};
> +
> +/* Arch-specific MSI-X entry data for vPCI. */
> +struct vpci_arch_msix_entry {
> +};
> +
> +#endif /* ARM_VPCI_H */

Out of curiosity (not asking for any changes), why did you include an emacs
footer on the x86 header but not here?

Otherwise, the rest of the patch looks good to me.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.