Re: [PATCH v1] virtio-mem: Simplify bitmap handling and virtio_mem_set_block_state()

2023-06-26 Thread David Hildenbrand
On 25.06.23 23:06, Michael S. Tsirkin wrote: On Fri, Jun 23, 2023 at 02:51:11PM +0200, David Hildenbrand wrote: On 23.05.23 20:30, David Hildenbrand wrote: Let's separate plug and unplug handling to prepare for future changes and make the code a bit easier to read -- working on block states (pl

Re: [PATCH v1] virtio-mem: Simplify bitmap handling and virtio_mem_set_block_state()

2023-06-25 Thread Michael S. Tsirkin
On Fri, Jun 23, 2023 at 02:51:11PM +0200, David Hildenbrand wrote: > On 23.05.23 20:30, David Hildenbrand wrote: > > Let's separate plug and unplug handling to prepare for future changes > > and make the code a bit easier to read -- working on block states > > (plugged/unplugged) instead of on a bi

Re: [PATCH v1] virtio-mem: Simplify bitmap handling and virtio_mem_set_block_state()

2023-06-23 Thread David Hildenbrand
On 23.05.23 20:30, David Hildenbrand wrote: Let's separate plug and unplug handling to prepare for future changes and make the code a bit easier to read -- working on block states (plugged/unplugged) instead of on a bitmap. Cc: "Michael S. Tsirkin" Cc: Gavin Shan Signed-off-by: David Hildenbra

[PATCH v1] virtio-mem: Simplify bitmap handling and virtio_mem_set_block_state()

2023-05-23 Thread David Hildenbrand
Let's separate plug and unplug handling to prepare for future changes and make the code a bit easier to read -- working on block states (plugged/unplugged) instead of on a bitmap. Cc: "Michael S. Tsirkin" Cc: Gavin Shan Signed-off-by: David Hildenbrand --- hw/virtio/virtio-mem.c | 116