Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(library): Introduce Bun as library #79

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

razvand
Copy link
Contributor

@razvand razvand commented Mar 8, 2024

Introduce Bun image (ELF Loader) for bincompat runs.

Add Kraftfile to build for QMEU and Firecracker on x86_64 using initrd for volume support. The current build uses embedded initrd to build a single image consisting of both the kernel and the initial ramdisk.

Add GitHub workflow to build and deploy the image. Add success badge in README.md.

@razvand razvand linked an issue Mar 8, 2024 that may be closed by this pull request
@razvand razvand added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 9, 2024
Copy link
Member

@StefanJum StefanJum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After ukrandom_devfs is set, the application fails with

[    0.653380] CRIT: [libukvmem] Cannot handle read page fault at 0x0 (ec: 0x0): Bad address (14).
[    0.653988] CRIT: [libkvmplat] RIP: 000000100d6746f9 CS: 0008
[    0.654379] CRIT: [libkvmplat] RSP: 00000010020b6eb0 SS: 0010 EFLAGS: 00010202
[    0.654909] CRIT: [libkvmplat] RAX: 0000000000000000 RBX: 0000001001de6f20 RCX: 0000000000000000
[    0.655543] CRIT: [libkvmplat] RDX: 0000000000000001 RSI: 000000100ec6a1d8 RDI: 0000000000000000
[    0.656153] CRIT: [libkvmplat] RBP: 00000010020b6ec0 R08: 0000000000000000 R09: 0000000000000000
[    0.656742] CRIT: [libkvmplat] R10: 0000000000000000 R11: 00000010020b6c20 R12: 0000001001ee7600
[    0.657325] CRIT: [libkvmplat] R13: 00000010020b7090 R14: 00000010020b8460 R15: 00000010020b70c0
[    0.657934] CRIT: [libkvmplat] base is 0x10020b6ec0 caller is 0x100c2b47e3
[    0.658394] CRIT: [libkvmplat] base is 0x10020b6f70 caller is 0x100a98c385
[    0.658850] CRIT: [libkvmplat] base is 0x10020b8ce0 caller is 0x100d69dd45
[    0.659307] CRIT: [libkvmplat] base is 0x10020b8d10 caller is 0x100a75914c
[    0.659760] CRIT: [libkvmplat] base is 0x10020b8f80 caller is 0x100b730260
[    0.660223] CRIT: [libkvmplat] base is 0x10020b9850 caller is 0x100b730469
[    0.660656] CRIT: [libkvmplat] base is 0x10020b98b0 caller is 0x100d84ec1f
[    0.661086] CRIT: [libkvmplat] 
[    0.661299] CRIT: [libkvmplat] 10020b6ea0: d0 6e 0b 02 10 00 00 00 61 0e 69 0d 10 00 00 00
[    0.661854] CRIT: [libkvmplat] 10020b6eb0: 60 84 0b 02 10 00 00 00 d7 dc 8c 0d 10 00 00 00
[    0.662387] CRIT: [libkvmplat] 10020b6ec0: 70 6f 0b 02 10 00 00 00 e3 47 2b 0c 10 00 00 00
[    0.662940] CRIT: [libkvmplat] 10020b6ed0: f0 6e 0b 02 10 00 00 00 e1 0e 69 0d 10 00 00 00
[    0.663504] CRIT: [libkvmplat] 
[    0.663786] CRIT: [libkvmplat] 10020b6eb0: 60 84 0b 02 10 00 00 00 d7 dc 8c 0d 10 00 00 00
[    0.664354] CRIT: [libkvmplat] 10020b6ec0: 70 6f 0b 02 10 00 00 00 e3 47 2b 0c 10 00 00 00
[    0.664907] CRIT: [libkvmplat] 10020b6ed0: f0 6e 0b 02 10 00 00 00 e1 0e 69 0d 10 00 00 00
[    0.665452] CRIT: [libkvmplat] 10020b6ee0: 90 f6 dc 01 10 00 00 00 38 6f 0b 02 10 00 00 00
[    0.666010] CRIT: [libkvmplat] 
[    0.666213] CRIT: [libkvmplat] 100d6746e0: 55 48 89 f0 48 8d 35 ed 5a 5f 01 48 89 e5 53 48
[    0.666758] CRIT: [libkvmplat] 100d6746f0: 89 fb 48 89 c7 48 83 ec 08 ff 10 48 89 c7 31 c0
[    0.667301] CRIT: [libkvmplat] 100d674700: 48 85 ff 74 0b 48 8d 73 0c ff d2 b8 01 00 00 00
[    0.667846] CRIT: [libkvmplat] 100d674710: 48 83 c4 08 5b 5d c3 66 0f 1f 84 00 00 00 00 00
[    0.668399] CRIT: [libkvmplat] Crashing

Similar with the java crash at #67

library/bun/1/Kraftfile Outdated Show resolved Hide resolved
Introduce Bun image (ELF Loader) for bincompat runs.

Add `Kraftfile` to build for QMEU and Firecracker on x86_64 using initrd
for volume support. The current build uses embedded initrd to build a
single image consisting of both the kernel and the initial ramdisk.

Add GitHub workflow to build and deploy the image. Add success badge in
`README.md`.

Signed-off-by: Razvan Deaconescu <[email protected]>
Copy link
Member

@StefanJum StefanJum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed-by: Stefan Jumarea [email protected]
Approved-by: Stefan Jumarea [email protected]

@StefanJum StefanJum merged commit 6bf0012 into unikraft:main Aug 22, 2024
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

bun/1: Client connection doesn't work
2 participants