Re: [PATCH v6 06/16] x86/sev: Cache the secrets page address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>
> +static void __init set_secrets_pa(const struct cc_blob_sev_info *cc_info)
> +{
> +       if (cc_info && cc_info->secrets_phys && cc_info->secrets_len == PAGE_SIZE)
> +               secrets_pa = cc_info->secrets_phys;
> +}

I know failure leads to an -ENODEV later on init_platform, but a
missing secrets page as a symptom seems like a good thing to log,
right?

> -       if (!gpa)
> +       if (!secrets_pa)
>                 return -ENODEV;
>


-- 
-Dionna Glaze, PhD (she/her)




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux