lkml.org 
[lkml]   [2023]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH v5 09/14] x86/sev: Add Secure TSC support for SNP guests
    From
    On 10/31/2023 1:56 AM, Tom Lendacky wrote:
    >> diff --git a/include/linux/cc_platform.h b/include/linux/cc_platform.h
    >> index cb0d6cd1c12f..e081ca4d5da2 100644
    >> --- a/include/linux/cc_platform.h
    >> +++ b/include/linux/cc_platform.h
    >> @@ -90,6 +90,14 @@ enum cc_attr {
    >>        * Examples include TDX Guest.
    >>        */
    >>       CC_ATTR_HOTPLUG_DISABLED,
    >> +
    >> +    /**
    >> +     * @CC_ATTR_GUEST_SECURE_TSC: Secure TSC is active.
    >> +     *
    >> +     * The platform/OS is running as a guest/virtual machine and actively
    >> +     * using AMD SEV-SNP Secure TSC feature.
    >
    > I think TDX also has a secure TSC like feature, so can this be generic?

    Yes, we can do that. In SNP case SecureTSC is an optional feature, not sure if that is the case for TDX as well.

    Kirill any inputs ?

    >
    > Thanks,
    > Tom
    >
    >> +     */
    >> +    CC_ATTR_GUEST_SECURE_TSC,
    >>   };
    >>     #ifdef CONFIG_ARCH_HAS_CC_PLATFORM

    Regards
    Nikunj

    \
     
     \ /
      Last update: 2023-11-02 06:43    [W:2.886 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site