Re: [PATCH v4] target/arm/monitor: query-cpu-model-expansion crashed qemu when using machine type none

2020-02-03 Thread Liang Yan
On 2/3/20 8:54 AM, Peter Maydell wrote: > On Mon, 3 Feb 2020 at 13:44, Liang Yan wrote: >> >> Commit e19afd566781 mentioned that target-arm only supports queryable >> cpu models 'max', 'host', and the current type when KVM is in use. >> The logic works well until using machine type none. >> >>

Re: [PATCH v4] target/arm/monitor: query-cpu-model-expansion crashed qemu when using machine type none

2020-02-03 Thread Peter Maydell
On Mon, 3 Feb 2020 at 13:44, Liang Yan wrote: > > Commit e19afd566781 mentioned that target-arm only supports queryable > cpu models 'max', 'host', and the current type when KVM is in use. > The logic works well until using machine type none. > > For machine type none, cpu_type will be null if

[PATCH v4] target/arm/monitor: query-cpu-model-expansion crashed qemu when using machine type none

2020-02-03 Thread Liang Yan
Commit e19afd566781 mentioned that target-arm only supports queryable cpu models 'max', 'host', and the current type when KVM is in use. The logic works well until using machine type none. For machine type none, cpu_type will be null if cpu option is not set by command line, strlen(cpu_type) will