Re: [RFC PATCH v3 4/4] hw/arm/virt: Parse -smp cluster parameter in virt_smp_parse

2021-05-18 Thread Andrew Jones
Philippe > > > Mathieu-Daudé ; wangyanan (Y) ; > > > Zengtao (B) ; Wanghaibin (D) > > > ; yuzenghui ; yangyicong > > > ; zhukeqian > > > Subject: [RFC PATCH v3 4/4] hw/arm/virt: Parse -smp cluster parameter in > > > virt_smp_parse > > >

RE: [RFC PATCH v3 4/4] hw/arm/virt: Parse -smp cluster parameter in virt_smp_parse

2021-05-17 Thread Salil Mehta
ngyanan (Y) ; > >> Zengtao (B) ; Wanghaibin (D) > >> ; yuzenghui ; yangyicong > >> ; zhukeqian > >> Subject: [RFC PATCH v3 4/4] hw/arm/virt: Parse -smp cluster parameter in > >> virt_smp_parse > >> > >> There is a separate function virt_

Re: [RFC PATCH v3 4/4] hw/arm/virt: Parse -smp cluster parameter in virt_smp_parse

2021-05-17 Thread wangyanan (Y)
; qemu-devel@nongnu.org; qemu-...@nongnu.org Cc: Song Bao Hua (Barry Song) ; Philippe Mathieu-Daudé ; wangyanan (Y) ; Zengtao (B) ; Wanghaibin (D) ; yuzenghui ; yangyicong ; zhukeqian Subject: [RFC PATCH v3 4/4] hw/arm/virt: Parse -smp cluster parameter in virt_smp_parse There is a separate function

RE: [RFC PATCH v3 4/4] hw/arm/virt: Parse -smp cluster parameter in virt_smp_parse

2021-05-17 Thread Salil Mehta
u-devel@nongnu.org; qemu-...@nongnu.org > Cc: Song Bao Hua (Barry Song) ; Philippe > Mathieu-Daudé ; wangyanan (Y) ; > Zengtao (B) ; Wanghaibin (D) > ; yuzenghui ; yangyicong > ; zhukeqian > Subject: [RFC PATCH v3 4/4] hw/arm/virt: Parse -smp cluster parameter in > virt_smp_parse > &g

Re: [RFC PATCH v3 4/4] hw/arm/virt: Parse -smp cluster parameter in virt_smp_parse

2021-05-17 Thread wangyanan (Y)
Hi Drew, On 2021/5/17 17:12, Andrew Jones wrote: On Sun, May 16, 2021 at 06:32:28PM +0800, Yanan Wang wrote: There is a separate function virt_smp_parse() in hw/virt/arm.c used to parse cpu topology for the ARM machines. So add parsing of -smp cluster parameter in it, then total number of logic

Re: [RFC PATCH v3 4/4] hw/arm/virt: Parse -smp cluster parameter in virt_smp_parse

2021-05-17 Thread Andrew Jones
On Sun, May 16, 2021 at 06:32:28PM +0800, Yanan Wang wrote: > There is a separate function virt_smp_parse() in hw/virt/arm.c used > to parse cpu topology for the ARM machines. So add parsing of -smp > cluster parameter in it, then total number of logical cpus will be > calculated like: max_cpus = s

[RFC PATCH v3 4/4] hw/arm/virt: Parse -smp cluster parameter in virt_smp_parse

2021-05-16 Thread Yanan Wang
There is a separate function virt_smp_parse() in hw/virt/arm.c used to parse cpu topology for the ARM machines. So add parsing of -smp cluster parameter in it, then total number of logical cpus will be calculated like: max_cpus = sockets * clusters * cores * threads. Note, we will assume multi-clu