-
Notifications
You must be signed in to change notification settings - Fork 1.2k
KVM/s390x Support: Add support for KVM on s390x architecture #10038
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
KVM/s390x Support: Add support for KVM on s390x architecture #10038
Conversation
Signed-off-by: Niyam Siwach <[email protected]> Signed-off-by: Himanshu Mishra <[email protected]>
|
Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
|
| features.addFeatures(PAE); | ||
| features.addFeatures(APIC); | ||
| features.addFeatures(ACPI); | ||
| if (!"s390x".equals(System.getProperty("os.arch"))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may be better to create a method like
private boolean isHostS390x() {
return S390X.equals(System.getProperty("os.arch");
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reused existing isGuestS390x() method for this.
|
great to see this integration effort @niyamsw , welcome to the crowd. |
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree with @weizhouapache 's rmark, but code looks good. Please realize that test facilities for this are not wide spread as much as some other platforms, so this is up to the author.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10038 +/- ##
============================================
- Coverage 16.06% 16.06% -0.01%
- Complexity 12860 12865 +5
============================================
Files 5640 5641 +1
Lines 493753 493808 +55
Branches 59854 59867 +13
============================================
+ Hits 79323 79327 +4
- Misses 405649 405692 +43
- Partials 8781 8789 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@niyamsw it checks if the host is s390x, is it same as |
...ypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
Outdated
Show resolved
Hide resolved
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11757 |
This PR is only for introducing support for KVM on s390x host and s390x guests. |
JoaoJandre
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CLGTM
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-11892)
|
|
Just following up on this PR. Any feedback or next steps? |
|
Awesome work, congrats on your first merged pull request! |
Based on changes from apache#10289 s390x support was added paritally with apache#10038 Signed-off-by: Abhishek Kumar <[email protected]>
…10038) Signed-off-by: Niyam Siwach <[email protected]> Signed-off-by: Himanshu Mishra <[email protected]>
Description
This PR introduces support for cloudstack-agent on KVM on the s390x and cloudstack-management-server on s390x architecture.
KVM is supported on s390x (IBM Z and LinuxONE) architecture, Linux KVM Processor Support Page.
I have built a new s390x version of the System VM template: [ Refer: s390x Build instructions and System VM Template guide.]
I have tested the deployment of VMs and confirmed that the Virtual Router (VR), SSVM, Console Proxy functionalities worked as expected.
Testing was performed with Debian 11 templates that are compatible with s390x in CloudStack.
I have tested with agent and management server on the following distributions:
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?