[PATCH] qom: fix objects with improper parent type

2020-09-29 Thread Sergey Nizovtsev
Some objects accidentally inherit ObjectClass instead of Object. They compile silently but may crash after downcasting. In this patch, we introduce a coccinelle script to find broken declarations and fix them manually with proper base type. Signed-off-by: Sergey Nizovtsev --- scripts

[PATCH] qom: fix objects with improper parent type

2020-09-29 Thread Sergey Nizovtsev
Some objects accidentally inherit ObjectClass instead of Object. They compile silently but may crash after downcasting. In this patch, we introduce a coccinelle script to find broken declarations and fix them manually with proper base type. Signed-off-by: Sergey Nizovtsev --- scripts

[PATCH] qom: fix objects with improper parent type

2020-09-29 Thread Sergey Nizovtsev
Some objects accidentally inherit ObjectClass instead of Object. They compile silently but may crash after downcasting. In this patch, we introduce a coccinelle script to find broken declarations and fix them manually with proper base type. Signed-off-by: Sergey Nizovtsev --- scripts

[Bug 1502613] Re: [Feature Request] Battery Status / Virtual Battery

2020-05-18 Thread Sergey Nizovtsev
mizz, I'm worked on it and got a working draft on pre-5.0 codebase. It can react on QMP property changes to trigger ACPI events on x86 and arm- virt. However i've stuck on frontend/backend split. Keep calm, i'm still working on the task and will complete this soon. Philippe, thanks for advice!

[Bug 1502613] Re: [Feature Request] Battery Status / Virtual Battery

2020-02-10 Thread Sergey Nizovtsev
attachment/5327136/+files/qemu-battery-poc.png ** Changed in: qemu Assignee: (unassigned) => Sergey Nizovtsev (snizovtsev) ** Changed in: qemu Status: New => In Progress -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribe