Skip to content

virtio/block: fix another deadlock#282

Open
dreamliner787-9 wants to merge 1 commit into
mainfrom
virtio_blk_fix
Open

virtio/block: fix another deadlock#282
dreamliner787-9 wants to merge 1 commit into
mainfrom
virtio_blk_fix

Conversation

@dreamliner787-9

@dreamliner787-9 dreamliner787-9 commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

The arena allocator in sDDF is used for allocating variable sized chunks in unit of sDDF transfer window size within the sDDF Block data region for servicing read and write requests.

Previously there is a bug in this allocator where it would report that there are no free space while there are plenty remaining. That would cause the a block request from the guest to fail over and over. Which can deadlock the guest.

That bug has now been fixed in sDDF and this commit update sDDF to contain the fix.

Closes #263.

Thanks @Courtney3141 for implementing the fix on sDDF.

au-ts/sddf#741 will need to be merged and hardware CI passing before this can me merged.

@dreamliner787-9

Copy link
Copy Markdown
Collaborator Author

Hmm that's annoying, the virtio block tests pass in the hardware CI now. But a couple of other tests in release configuration is failing, presumably due to this #231.

@dreamliner787-9 dreamliner787-9 changed the title virtio/block: fix another deadlock aarch64/vgic & virtio/block: various fixes Jun 24, 2026
@dreamliner787-9 dreamliner787-9 changed the title aarch64/vgic & virtio/block: various fixes virtio/block: fix another deadlock Jun 25, 2026
The arena allocator in sDDF is used for allocating variable
sized chunks in unit of sDDF transfer window size within the sDDF Block
data region for servicing read and write requests.

Previously there is a bug in this allocator where it would report that
there are no free space while there are plenty remaining. That would
cause the a block request from the guest to fail over and over. Which
can deadlock the guest.

That bug has now been fixed in sDDF and this commit update sDDF to
contain the fix.

Signed-off-by: Bill Nguyen <bill.nguyen@unsw.edu.au>
@dreamliner787-9

Copy link
Copy Markdown
Collaborator Author

Great hardware CI seems stable now that #284 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VirtIO Block: occasional hang

1 participant