Re: Max BAR size for passthru?
- In reply to: John Baldwin : "Re: Max BAR size for passthru?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 Sep 2025 19:25:46 UTC
On Tue, Sep 16, 2025 at 4:12 AM John Baldwin <jhb@freebsd.org> wrote: > > On 9/15/25 14:58, Chuck Tuffli wrote: > > I'm trying to get PCI passthru of an AMD GPU working, and am seeing > > what I think is a problem mapping the device's BAR into the guest. The > > host shows: ... > Hmmm, I think it would be useful if you could dump the effective memory > mappings for the guest PAs (the vm_map passed to vm_map_find) to see why > it is failing. Note that the request that is failing is for 2M, not > 256M, so I'm curious if the address is wrong somehow (why isn't it > 0x810000000?) Might be good to confirm which BAR it is trying to > allocate GPA space for. This was a good suggestion as it showed I was running into the guest seeing a "resizable BAR" and trying to resize them. The original host address to guest mapping was fine. Things went poorly after the guest tried to resize the bar. Thanks again for your help! --chuck