[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <CYBAYMHESW3Z.1EVW4Q0W0FHEC@suppilovahvero>
Date: Wed, 10 Jan 2024 22:18:37 +0200
From: "Jarkko Sakkinen" <jarkko@...nel.org>
To: "Borislav Petkov" <bp@...en8.de>, "Michael Roth" <michael.roth@....com>
Cc: <x86@...nel.org>, <kvm@...r.kernel.org>, <linux-coco@...ts.linux.dev>,
<linux-mm@...ck.org>, <linux-crypto@...r.kernel.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>, <tobin@....com>, <vbabka@...e.cz>,
<kirill@...temov.name>, <ak@...ux.intel.com>, <tony.luck@...el.com>,
<sathyanarayanan.kuppuswamy@...ux.intel.com>, <alpergun@...gle.com>,
<ashish.kalra@....com>, <nikunj.dadhania@....com>, <pankaj.gupta@....com>,
<liam.merwick@...cle.com>, <zhi.a.wang@...el.com>, "Brijesh Singh"
<brijesh.singh@....com>
Subject: Re: [PATCH v1 07/26] x86/fault: Add helper for dumping RMP entries
On Wed Jan 10, 2024 at 11:59 AM EET, Borislav Petkov wrote:
> On Sat, Dec 30, 2023 at 10:19:35AM -0600, Michael Roth wrote:
> > +void snp_dump_hva_rmpentry(unsigned long hva)
> > +{
> > + unsigned int level;
> > + pgd_t *pgd;
> > + pte_t *pte;
> > +
> > + pgd = __va(read_cr3_pa());
> > + pgd += pgd_index(hva);
> > + pte = lookup_address_in_pgd(pgd, hva, &level);
> > +
> > + if (!pte) {
> > + pr_info("Can't dump RMP entry for HVA %lx: no PTE/PFN found\n", hva);
~~~~~~~
is this correct log level?
BR, Jarkko
Powered by blists - more mailing lists