xsave

Crates.ioxsave
lib.rsxsave
version2.0.2
sourcesrc
created_at2020-08-20 19:50:59.115994
updated_at2022-02-09 16:29:39.530844
descriptionAn implementation of x86 XSave semantics
homepagehttps://github.com/enarx/xsave
repositoryhttps://github.com/enarx/xsave
max_upload_size
id278882
size12,234
owners (github:enarx:owners)

documentation

README

Workflow Status Average time to resolve an issue Percentage of issues still open Maintenance

xsave

This crate contains a practical implementation of the x86 xsave semantics.

We do not intend to support all possible variations of the instructures, nor do we intend to calculate the size of the xsave area dynamically. Instead, our practical strategy will overallocate the size of the xsave area so that we get a constant size for the struct. This allows for substantially easier embedding in other contexts.

For example, clearing the extended CPU state is a simple:

use xsave::XSave;

XSave::default().load();

Likewise, you can save and restore the extended CPU state like this:

use xsave::XSave;

let mut xsave = XSave::default();
xsave.save();
xsave.load();

License: Apache-2.0

Commit count: 25

cargo fmt