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: Add Xen support #1240

Open
wants to merge 4 commits into
base: staging
Choose a base branch
from
Open

Conversation

andreistan26
Copy link
Contributor

@andreistan26 andreistan26 commented Feb 11, 2024

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran make fmt on your commit series before opening this PR;
  • Updated relevant documentation.

Description of changes

GitHub-Closes: #990

Comment on lines +67 to +71
for {
if peekAndRead(f, reader, &logs, &errs) {
break
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can get multi-line writes with one event triggered.
IMO something better would be for peekAndRead to look ahead for the last newline so we end up with a single write.

@razvand razvand requested a review from nderjung April 9, 2024 05:41
@andreistan26 andreistan26 force-pushed the xen branch 3 times, most recently from f32e678 to 9b5e55a Compare April 10, 2024 21:59
@andreistan26 andreistan26 changed the title Add xen support for kraftkit feat(machine/xen): Add Xen support Apr 10, 2024
@andreistan26 andreistan26 force-pushed the xen branch 2 times, most recently from 4726be4 to c67465b Compare April 16, 2024 10:02
Copy link
Member

@craciunoiuc craciunoiuc left a comment

Choose a reason for hiding this comment

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

Some style comments from my side, I did not try it yet

buildenvs/xen.Dockerfile Outdated Show resolved Hide resolved
buildenvs/xen.Dockerfile Outdated Show resolved Hide resolved
buildenvs/xen.Dockerfile Outdated Show resolved Hide resolved
machine/platform/register_linux.go Show resolved Hide resolved
machine/xen/stub.go Outdated Show resolved Hide resolved
machine/xen/v1alpha1.go Show resolved Hide resolved
machine/xen/v1alpha1.go Outdated Show resolved Hide resolved
machine/xen/v1alpha1.go Show resolved Hide resolved
machine/xen/v1alpha1.go Outdated Show resolved Hide resolved
machine/xen/v1alpha1.go Show resolved Hide resolved
@nderjung nderjung changed the title feat(machine/xen): Add Xen support feat: Add Xen support Apr 16, 2024
@andreistan26 andreistan26 force-pushed the xen branch 2 times, most recently from cb8812c to 96a6886 Compare April 23, 2024 20:02
@andreistan26 andreistan26 force-pushed the xen branch 3 times, most recently from 029891f to 08c224c Compare May 7, 2024 16:06
buildenvs/xen.Dockerfile Outdated Show resolved Hide resolved
internal/cli/kraft/logs/logs.go Show resolved Hide resolved
machine/platform/register_linux.go Show resolved Hide resolved
@andreistan26 andreistan26 force-pushed the xen branch 3 times, most recently from 77bcc05 to 53b93b4 Compare May 30, 2024 10:59
@craciunoiuc
Copy link
Member

Hey @andreistan26

any new updates here?

@andreistan26
Copy link
Contributor Author

Hey @andreistan26

any new updates here?

Will finish it up this week

@craciunoiuc
Copy link
Member

sure thing, no hurry, just wanted to get a status update

@andreistan26 andreistan26 force-pushed the xen branch 2 times, most recently from 6deb6e0 to c9ecb1b Compare July 6, 2024 12:48
@andreistan26 andreistan26 marked this pull request as ready for review July 6, 2024 13:24
@craciunoiuc
Copy link
Member

Can you also add this? thanks:

diff --git a/Makefile b/Makefile
index 2b5d0ac0..18f88386 100644
--- a/Makefile
+++ b/Makefile
@@ -272,6 +272,7 @@ buildenv-myself-full: ## OCI image containing the build environment for KraftKit
 buildenv-myself: ## OCI image containing KraftKit binaries.
 buildenv-qemu: ## OCI image containing a Unikraft-centric build of QEMU.
 buildenv-github-action: ## OCI image used when building Unikraft unikernels in GitHub Actions.
+buildenv-xen: ## OCI image containing a Unikraft-centric build of Xen.
 tools: ## Build all tools.
 kraft: ## The kraft binary.
 runu: ## The runu binary.

In the case of Xen, on fast applications, the logs
would have been called when the machine was already
in the exit state.

Signed-off-by: Andrei Stan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🧊 Icebox
Development

Successfully merging this pull request may close these issues.

Xen Hypervisor
2 participants