Re: [Qemu-devel] [PATCH v2 03/10] cpu/topology: replace global smp variables by MachineState in general path

2019-05-17 Thread Igor Mammedov
On Mon, 6 May 2019 16:33:09 +0800 Like Xu wrote: > Basically, the context could get the MachineState reference via call > chains or unrecommend qdev_get_machine() in !CONFIG_USER_ONLY mode. > > A new variable of the same name would be introduced in the declaration > phase out of less effort OR

Re: [Qemu-devel] [PATCH v2 03/10] cpu/topology: replace global smp variables by MachineState in general path

2019-05-09 Thread Alistair Francis
On Mon, May 6, 2019 at 1:34 AM Like Xu wrote: > > Basically, the context could get the MachineState reference via call > chains or unrecommend qdev_get_machine() in !CONFIG_USER_ONLY mode. > > A new variable of the same name would be introduced in the declaration > phase out of less effort OR

[Qemu-devel] [PATCH v2 03/10] cpu/topology: replace global smp variables by MachineState in general path

2019-05-06 Thread Like Xu
Basically, the context could get the MachineState reference via call chains or unrecommend qdev_get_machine() in !CONFIG_USER_ONLY mode. A new variable of the same name would be introduced in the declaration phase out of less effort OR replace it on the spot if it's only used once in the context.