[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAH4kHY6jm9PHjuGj18eyCC8H4oksuNkVL=igAh4P4BTsKs2xA@mail.gmail.com>
Date: Wed, 1 Mar 2023 17:41:11 -0800
From: Dionna Amalie Glaze <dionnaglaze@...gle.com>
To: Zhi Wang <zhi.wang.linux@...il.com>
Cc: Michael Roth <michael.roth@....com>, kvm@...r.kernel.org,
linux-coco@...ts.linux.dev, linux-mm@...ck.org,
linux-crypto@...r.kernel.org, x86@...nel.org,
linux-kernel@...r.kernel.org, tglx@...utronix.de, mingo@...hat.com,
jroedel@...e.de, thomas.lendacky@....com, hpa@...or.com,
ardb@...nel.org, pbonzini@...hat.com, seanjc@...gle.com,
vkuznets@...hat.com, jmattson@...gle.com, luto@...nel.org,
dave.hansen@...ux.intel.com, slp@...hat.com, pgonda@...gle.com,
peterz@...radead.org, srinivas.pandruvada@...ux.intel.com,
rientjes@...gle.com, dovmurik@...ux.ibm.com, tobin@....com,
bp@...en8.de, vbabka@...e.cz, kirill@...temov.name,
ak@...ux.intel.com, tony.luck@...el.com, marcorr@...gle.com,
sathyanarayanan.kuppuswamy@...ux.intel.com, alpergun@...gle.com,
dgilbert@...hat.com, jarkko@...nel.org, ashish.kalra@....com,
nikunj.dadhania@....com
Subject: Re: [PATCH RFC v8 54/56] x86/sev: Add KVM commands for instance certs
> > @@ -2089,6 +2089,7 @@ static void *snp_context_create(struct kvm *kvm, struct kvm_sev_cmd *argp)
> > goto e_free;
> >
> > sev->snp_certs_data = certs_data;
> > + sev->snp_certs_len = 0;
> >
> > return context;
> >
>
> Better to move the fix to PATCH 45.
>
This part isn't a fix, but part of the implementation since
snp_certs_len is added in this patch here
> > diff --git a/arch/x86/kvm/svm/svm.h b/arch/x86/kvm/svm/svm.h
> > index 221b38d3c845..dced46559508 100644
> > --- a/arch/x86/kvm/svm/svm.h
> > +++ b/arch/x86/kvm/svm/svm.h
> > @@ -94,6 +94,7 @@ struct kvm_sev_info {
> > u64 snp_init_flags;
> > void *snp_context; /* SNP guest context page */
> > void *snp_certs_data;
> > + unsigned int snp_certs_len; /* Size of instance override for certs */
> > struct mutex guest_req_lock; /* Lock for guest request handling */
> >
> > u64 sev_features; /* Features set at VMSA creation */
--
-Dionna Glaze, PhD (she/her)
Powered by blists - more mailing lists