Comments (7)
It looks like the PR was already merged, so I will open a second one to address the file check.
from sevctl.
@cclaudio I have a branch with a patch proposal. Would you mind giving it a run to see if you see FAIL
now?
from sevctl.
@larrydewey I tested your branch in another milan system. It has hardware support for SEV, SEV-ES and SEV-SNP, and they are all enabled in the BIOS.
With your branch, sevctl ok
is failing and skipping some test cases, see below. With the main branch, no tests is skipped and they all pass.
cclaudio@milan:~/src/larry/sevctl$ sudo ./target/debug/sevctl ok
[ PASS ] - AMD CPU
[ PASS ] - Microcode support
[ FAIL ] - Secure Memory Encryption (SME)
[ PASS ] - Secure Encrypted Virtualization (SEV)
[ PASS ] - Encrypted State (SEV-ES)
[ FAIL ] - Secure Nested Paging (SEV-SNP)
[ SKIP ] - VM Permission Levels
[ SKIP ] - Number of VMPLs
[ PASS ] - Physical address bit reduction: 5
[ PASS ] - C-bit location: 51
[ PASS ] - Number of encrypted guests supported simultaneously: 509
[ PASS ] - Minimum ASID value for SEV-enabled, SEV-ES disabled guest: 100
[ PASS ] - SEV enabled in KVM: enabled
[ PASS ] - SEV-ES enabled in KVM: enabled
[ PASS ] - Reading /dev/sev: /dev/sev readable
[ PASS ] - Writing /dev/sev: /dev/sev writable
[ PASS ] - Page flush MSR: ENABLED
[ PASS ] - KVM supported: API version: 12
[ PASS ] - Memlock resource limit: Soft: 67108864 | Hard: 67108864
Error: One or more tests in sevctl-ok reported a failure
from sevctl.
I was discussing this with @larrydewey and we got to the following conclusion.
- The tests were failing because the
msr
kernel module was not loaded. - To test if the module is loaded, his patch just needs to check if the
/dev/cpu/0/msr
file exists.
Thank you @larrydewey!
from sevctl.
Added a change in the msru pr which will return a specific error when the device file is not present.
from sevctl.
PR merged, and msru v0.2.0 released. Just waiting on the next release of sevctl
from sevctl.
@larrydewey @cclaudio Releasing a new sevctl version now. Has this issue been fixed?
from sevctl.
Related Issues (16)
- Write a man-page
- New subcommand: sevctl-attest (with initial support for QEMU)
- Create and Tag Releases of Minor Versions
- Add full flag to cert export command documentation HOT 2
- About Launch_blob format
- sevctl export fails with HTTP400 error HOT 4
- Improve Microcode Support Identification HOT 3
- SNP-related commands HOT 4
- Test: VM Page Flush MSR Change
- sevctl export: unable to create output file HOT 2
- Measurement parameters HOT 1
- Add build documentation HOT 2
- Add build documentation HOT 1
- How to export/extract different certs? HOT 1
- Not working on Standard DCads v5 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sevctl.