lkml.org 
[lkml]   [2022]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC PATCH v5 089/104] KVM: TDX: Add a placeholder for handler of TDX hypercalls (TDG.VP.VMCALL)
From
On 4/7/22 06:15, Kai Huang wrote:
>>
>> +static int handle_tdvmcall(struct kvm_vcpu *vcpu)
>> +{
>> + struct vcpu_tdx *tdx = to_tdx(vcpu);
>> +
>> + if (unlikely(tdx->tdvmcall.xmm_mask))
>> + goto unsupported;
> Put a comment explaining this logic?
>

This only seems to be necessary for Hyper-V hypercalls, which however
are not supported by this series in TDX guests (because the
kvm_hv_hypercall still calls kvm_*_read, likewise for Xen).

So for now this conditional can be dropped.

Since

\
 
 \ /
  Last update: 2022-04-07 17:32    [W:0.147 / U:0.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site