xapi-project / blktap

blktap, vhd stuff
Other
43 stars 81 forks source link

Increase MAX_RING_PAGE_ORDER value #298

Open Wescoeur opened 5 years ago

Wescoeur commented 5 years ago

Hi, I have a issue concerning the ring size, I would like to modify the default value of MAX_RING_PAGE_ORDER to 4, in theory it's ok it's the max authorized value by the blkfront module. https://github.com/xapi-project/blktap/blob/d2f49df6580a891a1317398b9e63f87ea0189571/include/xen_blkif.h#L133

But I don't understand why I can't boot correctly:

xenbus_probe_frontend: Waiting for devices to initialise: 25s...20s...15s...10s...5s...0s...

Should I change something else? Or is there a bug in blktap when MAX_RING_PAGE_ORDER is equal to 4? Thank you!

andyhhp commented 3 years ago

There isn't any inherent limit. Order 3 is 8 pages, and order 4 is 16. However, you do have to draw a boundary somewhere, because resources aren't unlimited for the domains.

To diagnose the problems further, you need to see what is going wrong in the guest. Get dmesg from the VM, and/or xl dmesg from Xen which might identify if the VM has run out of grants.