Re: [PATCH v8 09/11] i386/pc: bounds check phys-bits against max used GPA

2022-07-18 Thread Joao Martins
On 7/18/22 14:56, Igor Mammedov wrote: > On Mon, 18 Jul 2022 15:16:22 +0200 > Igor Mammedov wrote: > >> On Fri, 15 Jul 2022 18:16:26 +0100 >> Joao Martins wrote: >> >>> Calculate max *used* GPA against the CPU maximum possible address >>> and error out if the former surprasses the latter. Thi

Re: [PATCH v8 09/11] i386/pc: bounds check phys-bits against max used GPA

2022-07-18 Thread Igor Mammedov
On Mon, 18 Jul 2022 15:16:22 +0200 Igor Mammedov wrote: > On Fri, 15 Jul 2022 18:16:26 +0100 > Joao Martins wrote: > > > Calculate max *used* GPA against the CPU maximum possible address > > and error out if the former surprasses the latter. This ensures > > max used GPA is reacheable by config

Re: [PATCH v8 09/11] i386/pc: bounds check phys-bits against max used GPA

2022-07-18 Thread Igor Mammedov
On Fri, 15 Jul 2022 18:16:26 +0100 Joao Martins wrote: > Calculate max *used* GPA against the CPU maximum possible address > and error out if the former surprasses the latter. This ensures > max used GPA is reacheable by configured phys-bits. Default phys-bits > on Qemu is TCG_PHYS_ADDR_BITS (40)

[PATCH v8 09/11] i386/pc: bounds check phys-bits against max used GPA

2022-07-15 Thread Joao Martins
Calculate max *used* GPA against the CPU maximum possible address and error out if the former surprasses the latter. This ensures max used GPA is reacheable by configured phys-bits. Default phys-bits on Qemu is TCG_PHYS_ADDR_BITS (40) which is enough for the CPU to address 1Tb (0xff ) or 1