Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jun 2024 10:17:23 +0300
From:      Oleksandr Kryvulia <shuriku@shurik.kiev.ua>
To:        virtualization@freebsd.org
Subject:   Re: bhyve passthru problem
Message-ID:  <92b37bf8-7ef9-4abd-8617-af12fbb35e13@shurik.kiev.ua>
In-Reply-To: <c8c87fc3-2665-44c3-a8cf-6dcbd6525c38@freebsd.org>
References:  <a63589a8-2cb2-4952-83b1-7a97e2f8cd44@shurik.kiev.ua> <38c9656c26fc3cee7ba733168c0fa2cdd01209d9.camel@FreeBSD.org> <c8c87fc3-2665-44c3-a8cf-6dcbd6525c38@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
14.06.24 10:50, Peter Grehan:
>> I don't know why bhyve validates the BAR size. The commit adding this
>> check is old [1] and doesn't explain it. What bhyve could do is
>> rounding up the BAR size to a full page size when allocating memory for
>> the BAR.
>>
>> [1] https://github.com/freebsd/freebsd-
>> src/commit/7a902ec0eccc752c9c38533ed123121eaaea1225
>
>  At the time, BIOSs would often place device BARs of less than a page 
> size in the same physical page. Since EPT only gives page granularity, 
> this would result in all those devices being available to the guest 
> even if they hadn't been passed through.
>
Peter, can you explain how can I use this device in a guest without 
passing through?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?92b37bf8-7ef9-4abd-8617-af12fbb35e13>