[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <681bfe9ab3090_1229d6294c0@dwillia2-xfh.jf.intel.com.notmuch>
Date: Wed, 7 May 2025 17:45:14 -0700
From: Dan Williams <dan.j.williams@...el.com>
To: Cedric Xing <cedric.xing@...el.com>, Dan Williams
<dan.j.williams@...el.com>, "Kirill A. Shutemov"
<kirill.shutemov@...ux.intel.com>, Dave Hansen <dave.hansen@...ux.intel.com>,
Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>,
Borislav Petkov <bp@...en8.de>, <x86@...nel.org>, "H. Peter Anvin"
<hpa@...or.com>
CC: <linux-kernel@...r.kernel.org>, <linux-coco@...ts.linux.dev>, "Dionna
Amalie Glaze" <dionnaglaze@...gle.com>, Guorui Yu
<guorui.yu@...ux.alibaba.com>, James Bottomley
<James.Bottomley@...senpartnership.com>, Dan Middleton
<dan.middleton@...ux.intel.com>, Mikko Ylinen <mikko.ylinen@...ux.intel.com>,
Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@...ux.intel.com>,
Cedric Xing <cedric.xing@...el.com>
Subject: Re: [PATCH v6 5/7] virt: tdx-guest: Expose TDX MRs as sysfs
attributes
Cedric Xing wrote:
> @@ -339,6 +485,7 @@ module_init(tdx_guest_init);
>
> static void __exit tdx_guest_exit(void)
> {
> + tdx_mr_deinit(tdx_attr_groups[0]);
> tsm_unregister(&tdx_tsm_ops);
> free_quote_buf(quote_data);
> misc_deregister(&tdx_misc_dev);
One thing I noticed when merging this series for linux-next is that the
exit release order is broken. tdx_mr_deinit cannot be called while the
attributes are still live. The order needs to be:
tsm_unregister(&tdx_tsm_ops);
free_quote_buf(quote_data);
misc_deregister(&tdx_misc_dev);
tdx_mr_deinit(tdx_attr_groups[0]);
...I will send an incremental patch to fix this up.
Powered by blists - more mailing lists