[PATCH v10 02/18] virt: coco: tsm: Require PCI operations when registering a TSM
Xu Yilun
yilun.xu at linux.intel.com
Sun Nov 29 18:39:03 PST 2026
On Wed, Nov 25, 2026 at 01:41:05PM +0530, Aneesh Kumar K.V (Arm) wrote:
> Reject a NULL pci_ops argument in tsm_register(). Every registered TSM
> now has PCI operations, so registration no longer needs separate paths
> for TSMs without them.
>
> Registration guarantees pci_ops is set, so call pci_tsm_unregister()
> without testing that pointer again.
>
> Cc: Alexey Kardashevskiy <aik at amd.com>
> Cc: Jason Gunthorpe <jgg at ziepe.ca>
> Cc: Lukas Wunner <lukas at wunner.de>
> Cc: linux-coco at lists.linux.dev
> Reviewed-by: Lu Baolu <baolu.lu at linux.intel.com>
> Signed-off-by: Aneesh Kumar K.V (Arm) <aneesh.kumar at kernel.org>
Reviewed-by: Xu Yilun <yilun.xu at intel.com>
More information about the linux-arm-kernel
mailing list