Re: [Qemu-devel] [PATCH] vl.c: make current_machine as non-global variable

2019-04-02 Thread Thomas Huth
On 02/04/2019 07.55, Like Xu wrote: > This patch makes the remaining dozen or so uses of the global > current_machine outside vl.c use qdev_get_machine() instead, > and then make current_machine local to vl.c instead of global. > > Signed-off-by: Like Xu > --- [...] > --- a/vl.c > +++ b/vl.c > @@

[Qemu-devel] [PATCH] vl.c: make current_machine as non-global variable

2019-04-01 Thread Like Xu
This patch makes the remaining dozen or so uses of the global current_machine outside vl.c use qdev_get_machine() instead, and then make current_machine local to vl.c instead of global. Signed-off-by: Like Xu --- accel/kvm/kvm-all.c | 6 -- device-hotplug.c| 3 ++- device_tree.c |