Re: [PATCHv3.1 2.1/2] x86/coco: Add API to handle encryption mask

From: Kirill A. Shutemov
Date: Mon Feb 21 2022 - 18:25:33 EST


On Mon, Feb 21, 2022 at 11:36:55PM +0100, Borislav Petkov wrote:
> On Tue, Feb 22, 2022 at 01:10:49AM +0300, Kirill A. Shutemov wrote:
> > I'm not sure it is a good idea. It leaves room for code between these two
> > calls. I believe they conceptually has to initialized in one shot. That's
> > the only way we get consistent state.
>
> Really, where?

I'm talking about potential issue if cc_set_vendor() and cc_set_mask()
would drift apart.

But, okay, I see that you don't feel it an issue. Will do your way.

--
Kirill A. Shutemov