On Tue, Apr 02, 2024 at 04:52:46PM +0800,So for TDX, kvm doesn't support xen/hyper-v, right?
Chao Gao <chao.gao@xxxxxxxxx> wrote:
+static int tdx_emulate_vmcall(struct kvm_vcpu *vcpu)do you need to emulate xen/hyper-v hypercalls here?
+{
+ unsigned long nr, a0, a1, a2, a3, ret;
+
No. kvm_emulate_hypercall() handles xen/hyper-v hypercalls,
__kvm_emulate_hypercall() doesn't.
Nothing tells userspace that xen/hyper-v hypercalls are not supported and
so userspace may expose related CPUID leafs to TD guests.