Re: [PATCH] virtio/virtio-balloon: Prefer Object* over void* parameter

2022-02-27 Thread Michael S. Tsirkin
On Fri, Feb 25, 2022 at 08:40:00PM +, Bernhard Beschow wrote: > Am 17. Februar 2022 22:53:50 UTC schrieb Bernhard Beschow : > >*opaque is an alias to *obj. Using the ladder makes the code consistent with > >with other devices, e.g. accel/kvm/kvm-all and accel/tcg/tcg-all. It also > >makes the

Re: [PATCH] virtio/virtio-balloon: Prefer Object* over void* parameter

2022-02-26 Thread David Hildenbrand
On 17.02.22 23:53, Bernhard Beschow wrote: > *opaque is an alias to *obj. Using the ladder makes the code consistent with > with other devices, e.g. accel/kvm/kvm-all and accel/tcg/tcg-all. It also > makes the cast more typesafe. > > Signed-off-by: Bernhard Beschow > --- >

Re: [PATCH] virtio/virtio-balloon: Prefer Object* over void* parameter

2022-02-25 Thread Bernhard Beschow
Am 17. Februar 2022 22:53:50 UTC schrieb Bernhard Beschow : >*opaque is an alias to *obj. Using the ladder makes the code consistent with >with other devices, e.g. accel/kvm/kvm-all and accel/tcg/tcg-all. It also >makes the cast more typesafe. > >Signed-off-by: Bernhard Beschow >--- >

[PATCH] virtio/virtio-balloon: Prefer Object* over void* parameter

2022-02-17 Thread Bernhard Beschow
*opaque is an alias to *obj. Using the ladder makes the code consistent with with other devices, e.g. accel/kvm/kvm-all and accel/tcg/tcg-all. It also makes the cast more typesafe. Signed-off-by: Bernhard Beschow --- hw/virtio/virtio-balloon.c | 10 +- 1 file changed, 5 insertions(+), 5