[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <80555977208f10df437696bac0f2354fd8f6ff61.camel@intel.com>
Date: Thu, 12 Sep 2024 15:12:57 +0000
From: "Edgecombe, Rick P" <rick.p.edgecombe@...el.com>
To: "Li, Xiaoyao" <xiaoyao.li@...el.com>, "kvm@...r.kernel.org"
<kvm@...r.kernel.org>, "pbonzini@...hat.com" <pbonzini@...hat.com>,
"nik.borisov@...e.com" <nik.borisov@...e.com>, "seanjc@...gle.com"
<seanjc@...gle.com>
CC: "tony.lindgren@...ux.intel.com" <tony.lindgren@...ux.intel.com>, "Huang,
Kai" <kai.huang@...el.com>, "isaku.yamahata@...il.com"
<isaku.yamahata@...il.com>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 10/25] KVM: TDX: Initialize KVM supported capabilities
when module setup
On Thu, 2024-09-12 at 17:07 +0800, Xiaoyao Li wrote:
> > I.e if we disable SEPT_VE_DISABLE without having ATTR_DEBUG it results
> > in a panic.
>
> I see now.
>
> It's linux TD guest's implementation, which requires SEPT_VE_DISABLE
> must be set unless it's a debug TD.
>
> Yes, it can be the motivation to request KVM to add the support of
> ATTRIBUTES.DEBUG. But the support of ATTRIBUTES.DEBUG is not just
> allowing this bit to be set to 1. For DEBUG TD, VMM is allowed to
> read/write the private memory content, cpu registers, and MSRs, VMM is
> allowed to trap the exceptions in TD, VMM is allowed to manipulate the
> VMCS of TD vcpu, etc.
>
> IMHO, for upstream, no need to support all the debug capability as
> described above.
I think you mean for the first upstream support. I don't see why it would not be
suitable for upstream if we have upstream users doing it.
Nikolay, is this hypothetical or something that you have been doing with some
other TDX tree? We can factor it into the post-base support roadmap.
> But we need firstly define a subset of them as the
> starter of supporting ATTRIBUTES.DEBUG. Otherwise, what is the meaning
> of KVM to allow the DEBUG to be set without providing any debug capability?
>
> For debugging purpose, you can just hack guest kernel to allow
> spet_ve_disable to be 0 without DEBUG bit set, or hack KVM to allow
> DEBUG bit to be set.
Powered by blists - more mailing lists