Coder Social home page Coder Social logo

Comments (7)

larrydewey avatar larrydewey commented on June 16, 2024 1

It looks like the PR was already merged, so I will open a second one to address the file check.

from sevctl.

larrydewey avatar larrydewey commented on June 16, 2024

@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.

cclaudio avatar cclaudio commented on June 16, 2024

@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.

cclaudio avatar cclaudio commented on June 16, 2024

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.

larrydewey avatar larrydewey commented on June 16, 2024

Added a change in the msru pr which will return a specific error when the device file is not present.

from sevctl.

larrydewey avatar larrydewey commented on June 16, 2024

PR merged, and msru v0.2.0 released. Just waiting on the next release of sevctl

from sevctl.

tylerfanelli avatar tylerfanelli commented on June 16, 2024

@larrydewey @cclaudio Releasing a new sevctl version now. Has this issue been fixed?

from sevctl.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.