Re: [PATCH 1/4] x86/tdx: Introduce tdg_vm_wr()

From: Kirill A. Shutemov
Date: Mon Mar 11 2024 - 08:00:29 EST


On Sat, Mar 09, 2024 at 04:02:58PM -0800, Kuppuswamy Sathyanarayanan wrote:
> > + /* Old value */
> > + return args.r8;
>
> Since the update failure will panic, any use for returning the old value?

I don't have any immediate users for the old value, but I can imagine
situation when you need to do something else if your write result in
actual change of setting.

--
Kiryl Shutsemau / Kirill A. Shutemov