enarx-archive / sev

Library for AMD SEV
Apache License 2.0
20 stars 15 forks source link

launch/sev: Derive policy struct from u32 #94

Closed tylerfanelli closed 2 years ago

tylerfanelli commented 2 years ago

QEMU/libvirt represent launch policies as simple unsigned ints. For better interoperability, allow for the conversion of u32 to Policy structs.

Signed-off-by: Tyler Fanelli tfanelli@redhat.com