lkml.org 
[lkml]   [2024]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v19 105/130] KVM: TDX: handle KVM hypercall with TDG.VP.VMCALL
    On Wed, Apr 17, 2024 at 02:16:57PM +0800,
    Binbin Wu <binbin.wu@linux.intel.com> wrote:

    >
    >
    > On 4/4/2024 9:27 AM, Isaku Yamahata wrote:
    > > On Tue, Apr 02, 2024 at 04:52:46PM +0800,
    > > Chao Gao <chao.gao@intel.com> wrote:
    > >
    > > > > +static int tdx_emulate_vmcall(struct kvm_vcpu *vcpu)
    > > > > +{
    > > > > + unsigned long nr, a0, a1, a2, a3, ret;
    > > > > +
    > > > do you need to emulate xen/hyper-v hypercalls here?
    > >
    > > No. kvm_emulate_hypercall() handles xen/hyper-v hypercalls,
    > > __kvm_emulate_hypercall() doesn't.
    > So for TDX, kvm doesn't support xen/hyper-v, right?
    >
    > Then, should KVM_CAP_XEN_HVM and KVM_CAP_HYPERV be filtered out for TDX?

    That's right. We should update kvm_vm_ioctl_check_extension() and
    kvm_vcpu_ioctl_enable_cap(). I didn't pay attention to them.
    --
    Isaku Yamahata <isaku.yamahata@intel.com>

    \
     
     \ /
      Last update: 2024-05-27 16:41    [W:4.458 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site