Re: [PATCH v12 1/1] vfio/nvgpu: Add vfio pci variant module for grace hopper

From: Ankit Agrawal
Date: Wed Nov 08 2023 - 23:27:14 EST


> In light of that, I don't think we should be independently calculating
> the BAR2 region size using roundup_pow_of_two(nvdev->memlength).
> Instead we should be using pci_resource_len() of the physical BAR2 to
> make it evident that this relationship exists.

Just wanted to update on the discussions.. Since the underlying physical
BAR is not being used at all, we will emulate the PCI config BAR registers
for the fake BAR. Thus, the read/write requests to those registers will not
go to the underlying BAR on the device. I'll make the change in the next
posting.