Re: [PATCH] hvmloader/PCI: skip huge BARs in certain calculations

2024-03-05 Thread Jan Beulich
On 05.03.2024 10:31, Roger Pau Monné wrote: > On Mon, Mar 04, 2024 at 08:32:22AM +0100, Jan Beulich wrote: >> BARs of size 2Gb and up can't possibly fit below 4Gb: Both the bottom of >> the lower 2Gb range and the top of the higher 2Gb range have special >> purpose. Don't even have them influence w

Re: [PATCH] hvmloader/PCI: skip huge BARs in certain calculations

2024-03-05 Thread Jan Beulich
On 05.03.2024 10:25, Roger Pau Monné wrote: > On Mon, Mar 04, 2024 at 02:25:45PM +0100, Jan Beulich wrote: >> On 04.03.2024 11:02, Roger Pau Monné wrote: --- a/tools/firmware/hvmloader/pci.c +++ b/tools/firmware/hvmloader/pci.c @@ -33,6 +33,13 @@ uint32_t pci_mem_start = HVM_BELOW_4G

Re: [PATCH] hvmloader/PCI: skip huge BARs in certain calculations

2024-03-05 Thread Roger Pau Monné
On Mon, Mar 04, 2024 at 08:32:22AM +0100, Jan Beulich wrote: > BARs of size 2Gb and up can't possibly fit below 4Gb: Both the bottom of > the lower 2Gb range and the top of the higher 2Gb range have special > purpose. Don't even have them influence whether to (perhaps) relocate > low RAM. > > Repo

Re: [PATCH] hvmloader/PCI: skip huge BARs in certain calculations

2024-03-05 Thread Roger Pau Monné
On Mon, Mar 04, 2024 at 02:25:45PM +0100, Jan Beulich wrote: > On 04.03.2024 11:02, Roger Pau Monné wrote: > > On Mon, Mar 04, 2024 at 08:32:22AM +0100, Jan Beulich wrote: > >> BARs of size 2Gb and up can't possibly fit below 4Gb: Both the bottom of > >> the lower 2Gb range and the top of the highe

Re: [PATCH] hvmloader/PCI: skip huge BARs in certain calculations

2024-03-04 Thread Jan Beulich
On 04.03.2024 11:02, Roger Pau Monné wrote: > On Mon, Mar 04, 2024 at 08:32:22AM +0100, Jan Beulich wrote: >> BARs of size 2Gb and up can't possibly fit below 4Gb: Both the bottom of >> the lower 2Gb range and the top of the higher 2Gb range have special >> purpose. Don't even have them influence w

Re: [PATCH] hvmloader/PCI: skip huge BARs in certain calculations

2024-03-04 Thread Alejandro Vallejo
Hi, On 04/03/2024 07:32, Jan Beulich wrote: > BARs of size 2Gb and up can't possibly fit below 4Gb: Both the bottom of > the lower 2Gb range and the top of the higher 2Gb range have special > purpose. Don't even have them influence whether to (perhaps) relocate > low RAM. > > Reported-by: Neowutra

Re: [PATCH] hvmloader/PCI: skip huge BARs in certain calculations

2024-03-04 Thread Roger Pau Monné
On Mon, Mar 04, 2024 at 08:32:22AM +0100, Jan Beulich wrote: > BARs of size 2Gb and up can't possibly fit below 4Gb: Both the bottom of > the lower 2Gb range and the top of the higher 2Gb range have special > purpose. Don't even have them influence whether to (perhaps) relocate > low RAM. Here you