[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <24b4c3dd-1975-492a-9b0c-83a08e2c2dcb@intel.com>
Date: Thu, 30 Nov 2023 09:20:03 -0800
From: Dave Hansen <dave.hansen@...el.com>
To: Kai Huang <kai.huang@...el.com>, linux-kernel@...r.kernel.org,
kvm@...r.kernel.org
Cc: x86@...nel.org, kirill.shutemov@...ux.intel.com,
peterz@...radead.org, tony.luck@...el.com, tglx@...utronix.de,
bp@...en8.de, mingo@...hat.com, hpa@...or.com, seanjc@...gle.com,
pbonzini@...hat.com, rafael@...nel.org, david@...hat.com,
dan.j.williams@...el.com, len.brown@...el.com, ak@...ux.intel.com,
isaku.yamahata@...el.com, ying.huang@...el.com, chao.gao@...el.com,
sathyanarayanan.kuppuswamy@...ux.intel.com, nik.borisov@...e.com,
bagasdotme@...il.com, sagis@...gle.com, imammedo@...hat.com
Subject: Re: [PATCH v15 21/23] x86/virt/tdx: Handle TDX interaction with ACPI
S3 and deeper states
On 11/9/23 03:55, Kai Huang wrote:
> #include <asm/page.h>
> @@ -1402,6 +1404,15 @@ static int __init tdx_init(void)
> return -ENODEV;
> }
>
> + /*
> + * At this point, hibernation_available() indicates whether or
> + * not hibernation support has been permanently disabled.
> + */
> + if (hibernation_available()) {
> + pr_err("initialization failed: Hibernation support is enabled\n");
> + return -ENODEV;
> + }
> +
> err = register_memory_notifier(&tdx_memory_nb);
> if (err) {
> pr_err("initialization failed: register_memory_notifier() failed (%d)\n",
> @@ -1417,6 +1428,11 @@ static int __init tdx_init(void)
> return -ENODEV;
> }
>
> +#if defined(CONFIG_ACPI) && defined(CONFIG_SUSPEND)
> + pr_info("Disable ACPI S3. Turn off TDX in the BIOS to use ACPI S3.\n");
> + acpi_suspend_lowlevel = NULL;
> +#endif
Rafael, are you OK with how this patch ended up? An ack would be much
appreciated if so.
Powered by blists - more mailing lists