Re: [PATCH 8/9] hw/core: Add qdev stub for user-mode

2020-03-15 Thread Philippe Mathieu-Daudé
On 3/14/20 11:57 AM, Paolo Bonzini wrote: On 14/03/20 11:49, Philippe Mathieu-Daudé wrote: diff --git a/hw/core/Makefile.objs b/hw/core/Makefile.objs index 6215e7c208..89bf247173 100644 --- a/hw/core/Makefile.objs +++ b/hw/core/Makefile.objs @@ -8,6 +8,7 @@ common-obj-y += vmstate-if.o   # irq

Re: [PATCH 8/9] hw/core: Add qdev stub for user-mode

2020-03-14 Thread Paolo Bonzini
On 14/03/20 11:49, Philippe Mathieu-Daudé wrote: >>> >>> diff --git a/hw/core/Makefile.objs b/hw/core/Makefile.objs >>> index 6215e7c208..89bf247173 100644 >>> --- a/hw/core/Makefile.objs >>> +++ b/hw/core/Makefile.objs >>> @@ -8,6 +8,7 @@ common-obj-y += vmstate-if.o >>>   # irq.o needed for qdev

Re: [PATCH 8/9] hw/core: Add qdev stub for user-mode

2020-03-14 Thread Philippe Mathieu-Daudé
On 3/14/20 10:46 AM, Philippe Mathieu-Daudé wrote: On 3/13/20 7:46 PM, Philippe Mathieu-Daudé wrote: While user-mode does not use peripherals (devices), it uses a CPU which is a device. In the next commit we will reduce the QAPI generated code for user-mode. Since qdev.c calls qapi_event_send_de

Re: [PATCH 8/9] hw/core: Add qdev stub for user-mode

2020-03-14 Thread Philippe Mathieu-Daudé
On 3/13/20 7:46 PM, Philippe Mathieu-Daudé wrote: While user-mode does not use peripherals (devices), it uses a CPU which is a device. In the next commit we will reduce the QAPI generated code for user-mode. Since qdev.c calls qapi_event_send_device_deleted(), let's add a stub for it. Signed-off

[PATCH 8/9] hw/core: Add qdev stub for user-mode

2020-03-13 Thread Philippe Mathieu-Daudé
While user-mode does not use peripherals (devices), it uses a CPU which is a device. In the next commit we will reduce the QAPI generated code for user-mode. Since qdev.c calls qapi_event_send_device_deleted(), let's add a stub for it. Signed-off-by: Philippe Mathieu-Daudé --- hw/core/qdev-stubs